109 return setName_.size();
115 if (topoPtr_.
empty())
156 template<
class GeoField>
162 subFld.
ref().rename(
fld.name());
void size(const label)
Override size to be inconsistent with allocated storage.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool empty() const
Return true if the autoPtr is empty (ie, no pointer set)
void reset(T *=nullptr)
If object pointer already set, delete object and set to given.
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
const fvMesh & subMesh() const
Return reference to subset mesh.
static tmp< VolField< Type > > interpolate(const VolField< Type > &, const fvMesh &sMesh, const labelList &patchMap, const labelList &cellMap, const labelList &faceMap)
Map volume field.
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.
T & ref() const
Return non-const reference or generate a fatal error.
Encapsulation of VTK mesh data. Holds mesh or meshsubset and polyhedral-cell decomposition on it.
const fvMesh & baseMesh() const
Whole mesh.
const fvMeshSubset & subsetter() const
Subsetting engine.
const fvMesh & mesh() const
Access either mesh or submesh.
bool useSubMesh() const
Check if running subMesh.
label nFieldPoints() const
Number of field points.
tmp< GeoField > interpolate(const GeoField &fld) const
Map volume field (does in fact do very little interpolation;.
vtkMesh(fvMesh &baseMesh, const vtkTopo::vtkPolyhedra polyhedra=vtkTopo::vtkPolyhedra::none, const word &setName=word::null)
Construct from components.
label nFieldCells() const
Number of field cells.
void operator=(const vtkMesh &)=delete
Disallow default bitwise assignment.
const vtkTopo & topo() const
VTK topology.
fvMesh::readUpdateState readUpdate()
Read mesh.
Polyhedral cell decomposition for VTK.
const labelList & cellTypes() const
const labelList & addPointCellLabels() const
vtkPolyhedra
Groups of cell types retain as polyhedra.
A class for handling words, derived from string.
static const word null
An empty word.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.