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*> flds(obr.lookupClass<GeoField>());
44 forAllIter(
typename HashTable<GeoField*>, flds, iter)
46 GeoField&
fld = *iter();
48 typename GeoField::Boundary& bfld =
fld.boundaryFieldRef();
52 patchFieldDict.found(
fld.name())
63 patchFieldDict.subDict(
fld.name())
71 template<
class GeoField>
72 void Foam::fvMeshTools::setPatchFields
74 typename GeoField::Mesh& mesh,
76 const typename GeoField::value_type& value
79 objectRegistry& obr =
const_cast<objectRegistry&
>(mesh.thisDb());
81 HashTable<GeoField*> flds(obr.lookupClass<GeoField>());
83 forAllIter(
typename HashTable<GeoField*>, flds, iter)
85 GeoField&
fld = *iter();
87 typename GeoField::Boundary& bfld =
fld.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.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
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.