33 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
34 void Foam::rawTopoChangerFvMesh::setUnmappedValues
36 GeometricField<Type, PatchField, GeoMesh>&
fld,
37 const bitSet& mappedFace,
38 const GeometricField<Type, PatchField, GeoMesh>& baseFld
45 PatchField<Type>& fvp =
const_cast<PatchField<Type>&
> 47 fld.boundaryField()[patchi]
50 const label start = fvp.patch().start();
53 if (!mappedFace[start+i])
59 fvp[i] = baseFld.boundaryField()[patchi][i];
66 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
67 void Foam::rawTopoChangerFvMesh::zeroUnmappedValues
69 const bitSet& mappedFace
72 typedef GeometricField<Type, PatchField, GeoMesh> FieldType;
80 FieldType&
fld = lookupObjectRef<FieldType>(fldNames[i]);
98 dimensioned<Type>(
fld.dimensions(),
Zero)
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
Ignore writing from objectRegistry::writeObject()
#define forAll(list, i)
Loop across all elements in list.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
List< word > wordList
List of word.
Do not request registration (bool: false)
static constexpr const zero Zero
Global zero (0)