55 const Field<Type>&
fld 76 const Field<Type>&
fld 79 auto tresult = tmp<Field<Type>>
::New(
fld.size());
90 const tmp<Field<Type>>& tfld
93 tmp<Field<Type>> tresult =
New(tfld);
104 const tmp<tensorField>& trot,
105 const Field<Type>&
fld 108 auto tresult = tmp<Field<Type>>
::New(
fld.size());
119 const tmp<tensorField>& trot,
120 const tmp<Field<Type>>& tfld
123 tmp<Field<Type>> tresult =
New(tfld);
124 transform(tresult.ref(), trot(), tfld());
136 const Field<Type>&
fld 139 auto tresult = tmp<Field<Type>>
::New(
fld.size());
150 const tmp<Field<Type>>& tfld
153 tmp<Field<Type>> tresult =
New(tfld);
165 const Field<Type>&
fld 181 const Field<Type>&
fld 202 const Field<Type>&
fld 205 auto tresult = tmp<Field<Type>>
::New(
fld.size());
216 const tmp<Field<Type>>& tfld
219 tmp<Field<Type>> tresult =
New(tfld);
230 const tmp<tensorField>& trot,
231 const Field<Type>&
fld 234 auto tresult = tmp<Field<Type>>
::New(
fld.size());
245 const tmp<tensorField>& trot,
246 const tmp<Field<Type>>& tfld
249 tmp<Field<Type>> tresult =
New(tfld);
262 const Field<Type>&
fld 265 auto tresult = tmp<Field<Type>>
::New(
fld.size());
276 const tmp<Field<Type>>& tfld
279 tmp<Field<Type>> tresult =
New(tfld);
286 template<
class Type1,
class Type2>
293 template<
class Type1,
class Type2>
297 return tmp<Field<Type1>>(tfld.ptr());
#define TFOR_ALL_F_OP_FUNC_F_F(typeF1, f1, OP, FUNC, typeF2, f2, typeF3, f3)
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))
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
tmp< Field< Type1 > > transformFieldMask(const Field< Type2 > &fld)
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
#define TFOR_ALL_F_OP_FUNC_S_F(typeF1, f1, OP, FUNC, typeS, s, typeF2, f2)
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
void clear()
Clear exponents - resets to be dimensionless.
A class for managing temporary objects.
Declaration macros for Field<Type> algebra.
Tensor of scalars, i.e. Tensor<scalar>.