Go to the documentation of this file.
40 #ifndef fvMeshSubsetProxy_H
41 #define fvMeshSubsetProxy_H
83 label exposedPatchId_;
119 const word& selectionName,
120 label exposedPatchId = -1
128 label exposedPatchId = -1
136 label exposedPatchId = -1
159 return type_ !=
NONE;
182 return selectedCells_;
190 bool correct(
bool verbose =
false);
227 template<
class GeoField>
236 template<
class GeoField>
266 template<
class GeoField>
271 template<
class GeoField>
A class for handling words, derived from Foam::string.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A class for managing temporary objects.
Given the original mesh and the list of selected cells, it creates the mesh consisting only of the de...
const fvMesh & mesh() const
Access either base-mesh or sub-mesh.
const fvMesh & baseMesh() const
The entire base mesh.
subsetType
Internal bookkeeping for subset type.
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)
const bitSet & selectedCells() const
The current cell selection, when subsetting is active.
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
bool useSubMesh() const
Check if a sub-mesh is being used.
const fvMesh & subMesh() const
Return reference to subset mesh.
const word & name() const
The associated (set or zone) name if any.
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
Construct volField (with zeroGradient) from an internal field.
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))
Subset with multiple cellZones.
Mesh data needed to do the Finite Volume discretisation.
const fvMeshSubset & subsetter() const
The mesh subsetter.
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
readUpdateState
Enumeration defining the state of the mesh after a read update.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
A List of wordRe with additional matching capabilities.
bool correct(bool verbose=false)
Update of mesh subset.
polyMesh::readUpdateState readUpdate()
Read mesh. Correct on topo-change.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...