33template<
template<
class>
class Field,
class Type>
48template<
template<
class>
class Field,
class Type>
51 FieldField<Field, Type>& result,
52 const FieldField<Field, tensor>& rot,
53 const FieldField<Field, Type>&
fld
63template<
template<
class>
class Field,
class Type>
67 const FieldField<Field, tensor>& rot,
68 const FieldField<Field, Type>&
fld
71 tmp<FieldField<Field, Type>> tranf
73 FieldField<Field, Type>::NewCalculatedType(
fld)
80template<
template<
class>
class Field,
class Type>
84 const FieldField<Field, tensor>& rot,
85 const tmp<FieldField<Field, Type>>& tfld
88 tmp<FieldField<Field, Type>> tresult(tfld.ptr());
94template<
template<
class>
class Field,
class Type>
98 const tmp<FieldField<Field, tensor>>& trot,
99 const FieldField<Field, Type>&
fld
102 tmp<FieldField<Field, Type>> tresult
104 FieldField<Field, Type>::NewCalculatedType(
fld)
112template<
template<
class>
class Field,
class Type>
116 const tmp<FieldField<Field, tensor>>& trot,
117 const tmp<FieldField<Field, Type>>& tfld
120 tmp<FieldField<Field, Type>> tresult(tfld.ptr());
127template<
template<
class>
class Field,
class Type>
132 const FieldField<Field, Type>&
fld
135 tmp<FieldField<Field, Type>> tresult
137 FieldField<Field, Type>::NewCalculatedType(
fld)
144template<
template<
class>
class Field,
class Type>
149 const tmp<FieldField<Field, Type>>& tfld
158template<
template<
class>
class Field,
class Type>
161 FieldField<Field, Type>& result,
163 const FieldField<Field, Type>&
fld
173template<
template<
class>
class Field,
class Type>
176 FieldField<Field, Type>& result,
177 const FieldField<Field, tensor>& rot,
178 const FieldField<Field, Type>&
fld
188template<
template<
class>
class Field,
class Type>
192 const FieldField<Field, tensor>& rot,
193 const FieldField<Field, Type>&
fld
196 tmp<FieldField<Field, Type>> tranf
198 FieldField<Field, Type>::NewCalculatedType(
fld)
205template<
template<
class>
class Field,
class Type>
209 const FieldField<Field, tensor>& rot,
210 const tmp<FieldField<Field, Type>>& tfld
213 tmp<FieldField<Field, Type>> tresult(tfld.ptr());
219template<
template<
class>
class Field,
class Type>
223 const tmp<FieldField<Field, tensor>>& trot,
224 const FieldField<Field, Type>&
fld
227 tmp<FieldField<Field, Type>> tresult
229 FieldField<Field, Type>::NewCalculatedType(
fld)
237template<
template<
class>
class Field,
class Type>
241 const tmp<FieldField<Field, tensor>>& trot,
242 const tmp<FieldField<Field, Type>>& tfld
245 tmp<FieldField<Field, Type>> tresult(tfld.ptr());
252template<
template<
class>
class Field,
class Type>
257 const FieldField<Field, Type>&
fld
260 tmp<FieldField<Field, Type>> tresult
262 FieldField<Field, Type>::NewCalculatedType(
fld)
269template<
template<
class>
class Field,
class Type>
274 const tmp<FieldField<Field, Type>>& tfld
277 tmp<FieldField<Field, Type>> tresult(tfld.ptr());
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
A field of fields is a PtrList of fields with reference counting.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Tensor of scalars, i.e. Tensor<scalar>.
A class for managing temporary objects.
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
#define forAll(list, i)
Loop across all elements in list.