37 const List<Type>& source,
38 DynamicList<floatScalar>& dest
69 const GeometricField<Type, fvPatchField, volMesh>& vvf,
73 const fvMesh&
mesh = vMesh.mesh();
75 const labelList& superCells = vMesh.topo().superCells();
77 label nValues = mesh.nCells() + superCells.
size();
79 os << vvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
82 DynamicList<floatScalar> fField(pTraits<Type>::nComponents*nValues);
84 insert(vvf.internalField(), fField);
86 forAll(superCells, superCellI)
88 label origCellI = superCells[superCellI];
90 insert(vvf[origCellI], fField);
92 write(os, binary, fField);
101 const GeometricField<Type, pointPatchField, pointMesh>& pvf,
105 const fvMesh& mesh = vMesh.mesh();
106 const vtkTopo& topo = vMesh.topo();
108 const labelList& addPointCellLabels = topo.addPointCellLabels();
109 const label nTotPoints = mesh.nPoints() + addPointCellLabels.
size();
111 os << pvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
114 DynamicList<floatScalar> fField(pTraits<Type>::nComponents*nTotPoints);
118 forAll(addPointCellLabels, api)
120 label origCellI = addPointCellLabels[api];
124 write(os, binary, fField);
133 const GeometricField<Type, fvPatchField, volMesh>& vvf,
134 const GeometricField<Type, pointPatchField, pointMesh>& pvf,
138 const fvMesh& mesh = vMesh.mesh();
139 const vtkTopo& topo = vMesh.topo();
141 const labelList& addPointCellLabels = topo.addPointCellLabels();
142 const label nTotPoints = mesh.nPoints() + addPointCellLabels.
size();
144 os << vvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
147 DynamicList<floatScalar> fField(pTraits<Type>::nComponents*nTotPoints);
151 forAll(addPointCellLabels, api)
153 label origCellI = addPointCellLabels[api];
155 insert(vvf[origCellI], fField);
157 write(os, binary, fField);
161 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
166 const PtrList<GeometricField<Type, PatchField, GeoMesh> >& flds,
172 write(os, binary, flds[i], vMesh);
182 const volPointInterpolation& pInterp,
183 const PtrList<GeometricField<Type, fvPatchField, volMesh> >& flds,
189 write(os, binary, flds[i], pInterp.interpolate(flds[i])(), vMesh);