62 fvMeshSubset subsetter_;
71 mutable autoPtr<vtkTopo> topoPtr_;
109 return setName_.size();
115 if (topoPtr_.empty())
127 return subsetter_.subMesh();
156 template<
class GeoField>
162 subFld.
ref().rename(
fld.name());
void size(const label)
Override size to be inconsistent with allocated storage.
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
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
const fvMesh & mesh() const
Access either mesh or submesh.
vtkMesh(fvMesh &baseMesh, const word &setName="")
Construct from components.
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;.
label nFieldCells() const
Number of field cells.
void operator=(const vtkMesh &)=delete
Disallow default bitwise assignment.
const vtkTopo & topo() const
VTK topology.
polyMesh::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.