Go to the documentation of this file.
40 #ifndef fvMeshSubsetProxy_H
41 #define 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;
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>
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...
const fvMeshSubset & subsetter() const noexcept
The mesh subsetter.
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.
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)
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
const bitSet & selectedCells() const noexcept
The current cell selection, when subsetting is active.
const fvMesh & subMesh() const
Return reference to subset mesh.
fvMeshSubset & subsetter() noexcept
The mesh subsetter.
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.
bool useSubMesh() const noexcept
True if sub-mesh should be used.
Mesh data needed to do the Finite Volume discretisation.
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.
const word & name() const noexcept
The associated (set or zone) name if any.
void resetZones(const wordRes &zoneNames)
Define the zones selection, subset the mesh accordingly.
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...
const fvMesh & baseMesh() const noexcept
The entire base mesh.