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 =
49 fld.boundaryFieldRef();
51 if (patchFieldDict.found(fld.name()))
60 patchFieldDict.subDict(fld.name())
68 template<
class GeoField>
69 void Foam::fvMeshTools::setPatchFields
71 typename GeoField::Mesh& mesh,
73 const typename GeoField::value_type& value
76 objectRegistry& obr =
const_cast<objectRegistry&
>(mesh.thisDb());
78 HashTable<GeoField*> flds(obr.lookupClass<GeoField>());
80 forAllIter(
typename HashTable<GeoField*>, flds, iter)
82 GeoField& fld = *iter();
84 typename GeoField::Boundary& bfld =
85 fld.boundaryFieldRef();
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)