39template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
62template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
65 GeometricField<Type, PatchField, GeoMesh>& result,
66 const GeometricField<tensor, PatchField, GeoMesh>& rot,
67 const GeometricField<Type, PatchField, GeoMesh>&
fld
72 result.primitiveFieldRef(),
78 result.boundaryFieldRef(),
85template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
89 const GeometricField<tensor, PatchField, GeoMesh>& rot,
90 const GeometricField<Type, PatchField, GeoMesh>&
fld
93 auto tresult = GeometricField<Type, PatchField, GeoMesh>::New
95 "transform(" + rot.name() +
',' +
fld.name() +
')',
106template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
110 const GeometricField<tensor, PatchField, GeoMesh>& rot,
111 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
120template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
124 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
125 const GeometricField<Type, PatchField, GeoMesh>&
fld
134template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
138 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
139 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
142 auto tresult =
transform(trot(), tfld());
149template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
153 const dimensionedTensor& rot,
154 const GeometricField<Type, PatchField, GeoMesh>&
fld
157 auto tresult = GeometricField<Type, PatchField, GeoMesh>::New
159 "transform(" + rot.name() +
',' +
fld.name() +
')',
170template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
174 const dimensionedTensor& rot,
175 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
186template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
189 GeometricField<Type, PatchField, GeoMesh>& result,
190 const dimensionedTensor& rot,
191 const GeometricField<Type, PatchField, GeoMesh>&
fld
196 result.primitiveFieldRef(),
202 result.boundaryFieldRef(),
209template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
212 GeometricField<Type, PatchField, GeoMesh>& result,
213 const GeometricField<tensor, PatchField, GeoMesh>& rot,
214 const GeometricField<Type, PatchField, GeoMesh>&
fld
219 result.primitiveFieldRef(),
220 rot.primitiveField(),
225 result.boundaryFieldRef(),
232template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
236 const GeometricField<tensor, PatchField, GeoMesh>& rot,
237 const GeometricField<Type, PatchField, GeoMesh>&
fld
240 auto tresult = GeometricField<Type, PatchField, GeoMesh>::New
242 "invTransform(" + rot.name() +
',' +
fld.name() +
')',
253template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
257 const GeometricField<tensor, PatchField, GeoMesh>& rot,
258 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
267template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
271 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
272 const GeometricField<Type, PatchField, GeoMesh>&
fld
281template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
285 const tmp<GeometricField<tensor, PatchField, GeoMesh>>& trot,
286 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
296template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
300 const dimensionedTensor& rot,
301 const GeometricField<Type, PatchField, GeoMesh>&
fld
304 auto tresult = GeometricField<Type, PatchField, GeoMesh>::New
306 "invTransform(" + rot.name() +
',' +
fld.name() +
')',
317template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
321 const dimensionedTensor& rot,
322 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tfld
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))
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
const Type & value() const noexcept
Return const reference to value.
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.
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.