32 template<
class GeoField>
33 void Foam::fvMeshTools::setPatchFields
35 typename GeoField::Mesh& mesh,
37 const dictionary& patchFieldDict
40 objectRegistry& obr =
const_cast<objectRegistry&
>(mesh.thisDb());
42 HashTable<GeoField*>
fields(obr.lookupClass<GeoField>());
46 GeoField& field = *iter();
48 if (GeoField::Mesh::geometryFields.
found(field.name()))
continue;
50 typename GeoField::Boundary& bfield = field.boundaryFieldRef();
54 patchFieldDict.found(field.name())
65 patchFieldDict.subDict(field.name())
73 template<
class GeoField>
74 void Foam::fvMeshTools::setPatchFields
76 typename GeoField::Mesh& mesh,
78 const typename GeoField::value_type& value
81 objectRegistry& obr =
const_cast<objectRegistry&
>(mesh.thisDb());
83 HashTable<GeoField*>
fields(obr.lookupClass<GeoField>());
87 GeoField& field = *iter();
89 if (GeoField::Mesh::geometryFields.
found(field.name()))
continue;
91 typename GeoField::Boundary& bfield = field.boundaryFieldRef();
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
static bool constraintType(const word &pt)
Return true if the given type is a constraint type.
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.