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>&
> 44 fld.boundaryField()[
patchi]
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
69 typedef GeometricField<Type, PatchField, GeoMesh> FieldType;
71 const wordList fldNames(
mesh().names(FieldType::typeName));
95 dimensioned<Type>(
"0", fld.dimensions(),
Zero)
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fvMesh & mesh()
Return the fvMesh.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
List< word > wordList
A List of words.