31 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
32 void Foam::rawTopoChangerFvMesh::setUnmappedValues
34 GeometricField<Type, PatchField, GeoMesh>& fld,
35 const PackedBoolList& mappedFace,
36 const GeometricField<Type, PatchField, GeoMesh>& baseFld
43 PatchField<Type>& fvp =
const_cast<PatchField<Type>&
> 45 fld.boundaryField()[
patchi]
48 const label start = fvp.patch().start();
51 if (!mappedFace[start+i])
57 fvp[i] = baseFld.boundaryField()[
patchi][i];
64 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
65 void Foam::rawTopoChangerFvMesh::zeroUnmappedValues
67 const PackedBoolList& mappedFace
70 typedef GeometricField<Type, PatchField, GeoMesh> FieldType;
78 FieldType& fld = lookupObjectRef<FieldType>(fldNames[i]);
96 dimensioned<Type>(
"0", fld.dimensions(),
Zero)
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
wordList names() const
Return the list of names of the IOobjects.
const Time & time() const
Return the top-level database.
List< word > wordList
A List of words.