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
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>
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const fvMeshSubset &subsetter, const tmp< DimensionedField< Type, volMesh > > &tdf)
Convert an internal field to a volume field (with zeroGradient)
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const tmp< DimensionedField< Type, volMesh > > &tdf) const
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.
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
Construct volField (with zeroGradient) from an internal field.
const fvMesh & baseMesh() const noexcept
The entire base mesh.
tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const DimensionedField< Type, volMesh > &df) const
Convert an internal field to a volume field (with zeroGradient)
tmp< GeoField > interpolate(const GeoField &fld) const
Wrapper for field or the subsetted field.
const bitSet & selectedCells() const noexcept
The current cell selection, when subsetting is active.
bool useSubMesh() const noexcept
True if sub-mesh should be used.
void resetZones(const wordRes &zoneNames)
Define the zones selection, subset the mesh accordingly.
const word & name() const noexcept
The associated (set or zone) name if any.
tmp< GeoField > interpolate(const tmp< GeoField > &fld) const
Wrapper for field or the subsetted field.
polyMesh::readUpdateState readUpdate()
Read mesh. Correct on topo-change.
const fvMesh & mesh() const
Access either base-mesh or sub-mesh.
const fvMeshSubset & subsetter() const noexcept
The mesh subsetter.
subsetType
Internal bookkeeping for subset type.
@ ZONES
Subset with multiple cellZones.
@ ZONE
Subset with a cellZone.
@ SET
Subset with a cellSet.
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const tmp< GeoField > &fld)
Wrapper for field or the subsetted field.
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)
fvMeshSubset & subsetter() noexcept
The mesh subsetter.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
const fvMesh & subMesh() const
Return reference to subset mesh.
Mesh data needed to do the Finite Volume discretisation.
readUpdateState
Enumeration defining the state of the mesh after a read update.
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.