38 #ifndef Foam_transformGeometricField_H 39 #define Foam_transformGeometricField_H 53 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
56 GeometricField<Type, PatchField, GeoMesh>& result,
58 const GeometricField<Type, PatchField, GeoMesh>&
fld 61 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
64 GeometricField<Type, PatchField, GeoMesh>& result,
65 const GeometricField<tensor, PatchField, GeoMesh>& rot,
66 const GeometricField<Type, PatchField, GeoMesh>&
fld 70 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
71 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 73 const GeometricField<tensor, PatchField, GeoMesh>& rot,
74 const GeometricField<Type, PatchField, GeoMesh>&
fld 77 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
78 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 80 const GeometricField<tensor, PatchField, GeoMesh>& rot,
81 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
84 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
85 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 87 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
88 const GeometricField<Type, PatchField, GeoMesh>&
fld 91 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
92 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 94 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
95 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
98 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
99 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 102 const GeometricField<Type, PatchField, GeoMesh>&
fld 105 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
106 tmp<GeometricField<Type, PatchField, GeoMesh>>
transform 109 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
116 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
119 GeometricField<Type, PatchField, GeoMesh>& result,
121 const GeometricField<Type, PatchField, GeoMesh>&
fld 124 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
127 GeometricField<Type, PatchField, GeoMesh>& result,
128 const GeometricField<tensor, PatchField, GeoMesh>& rot,
129 const GeometricField<Type, PatchField, GeoMesh>&
fld 132 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
133 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 135 const GeometricField<tensor, PatchField, GeoMesh>& rot,
136 const GeometricField<Type, PatchField, GeoMesh>&
fld 139 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
140 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 142 const GeometricField<tensor, PatchField, GeoMesh>& rot,
143 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
146 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
147 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 149 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
150 const GeometricField<Type, PatchField, GeoMesh>&
fld 153 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
154 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 156 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
157 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
161 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
162 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 165 const GeometricField<Type, PatchField, GeoMesh>&
fld 168 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
169 tmp<GeometricField<Type, PatchField, GeoMesh>>
invTransform 172 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
dimensionSet invTransform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
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))
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.