31 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
32 void Foam::rawTopoChangerFvMesh::setUnmappedValues
34 GeometricField<Type, PatchField, GeoMesh>& fld,
35 const PackedList<1>& mappedFace,
36 const GeometricField<Type, PatchField, GeoMesh>& baseFld
41 forAll(fld.boundaryField(), patchI)
43 PatchField<Type>& fvp =
const_cast<PatchField<Type>&
>
45 fld.boundaryField()[patchI]
48 label start = fvp.patch().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 PackedList<1>& mappedFace
70 typedef GeometricField<Type, PatchField, GeoMesh> FieldType;
72 const wordList fldNames(names(FieldType::typeName));
78 FieldType& fld =
const_cast<FieldType&
>
80 lookupObject<FieldType>(fldNames[i])
99 dimensioned<Type>(
"0", fld.dimensions(), pTraits<Type>::zero)