26 #include "writeFuns.H"
36 DynamicList<doubleScalar>& dest
67 const DimensionedField<Type, volMesh>& vvf,
71 const fvMesh&
mesh = vMesh.mesh();
73 const labelList& superCells = vMesh.topo().superCells();
77 os << vvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
80 DynamicList<doubleScalar> fField(pTraits<Type>::nComponents*nValues);
84 forAll(superCells, superCellI)
86 label origCellI = superCells[superCellI];
88 insert(vvf[origCellI], fField);
90 write(os, binary, fField);
99 const GeometricField<Type, pointPatchField, pointMesh>& pvf,
103 const fvMesh&
mesh = vMesh.mesh();
104 const vtkTopo& topo = vMesh.topo();
106 const labelList& addPointCellLabels = topo.addPointCellLabels();
109 os << pvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
112 DynamicList<doubleScalar> fField(pTraits<Type>::nComponents*nTotPoints);
116 forAll(addPointCellLabels, api)
118 label origCellI = addPointCellLabels[api];
122 write(os, binary, fField);
131 const DimensionedField<Type, volMesh>& vvf,
132 const DimensionedField<Type, pointMesh>& pvf,
136 const fvMesh&
mesh = vMesh.mesh();
137 const vtkTopo& topo = vMesh.topo();
139 const labelList& addPointCellLabels = topo.addPointCellLabels();
142 os << vvf.name() <<
' ' << pTraits<Type>::nComponents <<
' '
145 DynamicList<doubleScalar> fField(pTraits<Type>::nComponents*nTotPoints);
149 forAll(addPointCellLabels, api)
151 label origCellI = addPointCellLabels[api];
153 insert(vvf[origCellI], fField);
155 write(os, binary, fField);
159 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
164 const PtrList<GeometricField<Type, PatchField, GeoMesh> >& flds,
180 const PtrList<DimensionedField<Type, volMesh> >& flds,
186 write(os, binary, flds[i], vMesh);
196 const volPointInterpolation& pInterp,
197 const PtrList<GeometricField<Type, fvPatchField, volMesh> >& flds,
203 write(os, binary, flds[i], pInterp.interpolate(flds[i])(), vMesh);