97 return setName_.size();
122 template<
class GeoField>
128 subFld.
ref().rename(
fld.name());
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
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.
tmp< GeoField > interpolate(const GeoField &fld) const
Map volume field (does in fact do very little interpolation;.
void operator=(const vtkMesh &)=delete
Disallow default bitwise assignment.
polyMesh::readUpdateState readUpdate()
Read mesh.
A class for handling words, derived from string.
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))