40 #ifndef Foam_fvMeshSubsetProxy_H 41 #define Foam_fvMeshSubsetProxy_H 83 label exposedPatchId_;
122 const word& selectionName,
123 label exposedPatchId = -1
131 label exposedPatchId = -1
139 label exposedPatchId = -1
168 return type_ != subsetType::NONE;
172 inline const fvMesh&
mesh()
const 191 return selectedCells_;
202 bool correct(
bool verbose =
false);
239 template<
class GeoField>
248 template<
class GeoField>
278 template<
class GeoField>
283 template<
class GeoField>
const bitSet & selectedCells() const noexcept
The current cell selection, when subsetting is active.
const fvMesh & subMesh() const
Return reference to subset mesh.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const word & name() const noexcept
The associated (set or zone) name if any.
const fvMesh & baseMesh() const noexcept
The entire base mesh.
void resetZones(const wordRes &zoneNames)
Define the zones selection, subset the mesh accordingly.
A class for handling words, derived from Foam::string.
A List of wordRe with additional matching capabilities.
const fvMeshSubset & subsetter() const noexcept
The mesh subsetter.
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const fvMeshSubset &subsetter, const DimensionedField< Type, volMesh > &df)
Convert an internal field to a volume field (with zeroGradient)
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
bool useSubMesh() const noexcept
True if sub-mesh should be used.
subsetType
Internal bookkeeping for subset type.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
const fvMesh & mesh() const
Access either base-mesh or sub-mesh.
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))
polyMesh::readUpdateState readUpdate()
Read mesh. Correct on topo-change.
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
Construct volField (with zeroGradient) from an internal field.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool correct(bool verbose=false)
Update of mesh subset.
readUpdateState
Enumeration defining the state of the mesh after a read update.
A class for managing temporary objects.
Subset with multiple cellZones.