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();
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
#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;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))