30 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
31 void Foam::fvMeshTopoChangers::raw::setUnmappedValues
33 GeometricField<Type, PatchField, GeoMesh>&
fld,
34 const PackedBoolList& mappedFace,
35 const GeometricField<Type, PatchField, GeoMesh>& baseFld
42 PatchField<Type>& fvp =
const_cast<PatchField<Type>&
>
47 const label start = fvp.patch().start();
50 if (!mappedFace[start+i])
56 fvp[i] = baseFld.boundaryField()[
patchi][i];
63 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
64 void Foam::fvMeshTopoChangers::raw::zeroUnmappedValues
66 const PackedBoolList& mappedFace
78 GeometricField<Type, PatchField, GeoMesh>&
fld =
79 mesh().lookupObjectRef<GeometricField<Type, PatchField, GeoMesh>>
88 GeometricField<Type, PatchField, GeoMesh>
100 dimensioned<Type>(
"0",
fld.dimensions(),
Zero)
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
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))
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.