34 #ifndef MeshToMeshMapGeometricFields_H
35 #define MeshToMeshMapGeometricFields_H
64 if (fvMeshToFvMesh::debug)
93 if (fvMeshToFvMesh::debug)
95 Info<<
"Mapping " << field.typeName <<
' ' << field.name()
99 field.reset(mapper.
srcToTgt<Type>(field));
101 field.instance() = field.time().
name();
106 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
119 GField& field =
fields[i];
122 field.clearOldTimes();
124 if (fvMeshToFvMesh::debug)
126 Info<<
"Setting to NaN " << field.typeName <<
' ' << field.name()
130 const typename GField::Mesh& mesh = field.
mesh();
132 field.primitiveFieldRef().setSize(GeoMesh::size(mesh));
135 field.boundaryFieldRef().setSize(mesh.boundary().size());
139 if (isA<processorPolyPatch>(mesh().boundaryMesh()[
patchi]))
141 field.boundaryFieldRef().set
154 typename GField::Patch& pf = field.boundaryFieldRef()[
patchi];
161 field.instance() = field.time().name();
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
void reset(const tmp< GeometricField< Type, PatchField, GeoMesh >> &)
Reset the field contents to the given field.
const Time & time() const
Return time.
fileName & instance() const
Return the instance directory, constant, system, <time> etc.
const word & name() const
Return name.
virtual const fileName & name() const
Return the name of the stream.
void clearOldTimes()
Clear old time fields.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
const word & name() const
Return const reference to name.
tmp< VolField< Type > > srcToTgt(const VolField< Type > &srcFld) const
Interpolate a source vol field to the target with no left.
Mesh data needed to do the Finite Volume discretisation.
UPtrList< GeoField > fields(const bool strict=false) const
Return the list of fields of type GeoField.
UPtrList< GeoField > curFields() const
Return the list of current fields of type GeoField.
const polyMesh & mesh() const
Return reference to polyMesh.
Traits class for primitives.
Mapper which sets the field size. It does not actually map values.
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void MeshToMeshMapVolFields(const fvMesh &mesh, const fvMeshToFvMesh &mapper)
void NaNGeometricFields(const fvMesh &mesh, const fvMeshToFvMesh &mapper)
typename VolField< Type >::Internal VolInternalField
void MeshToMeshMapVolInternalFields(const fvMesh &mesh, const fvMeshToFvMesh &mapper)