34 bool Foam::functionObjects::ensightWrite::updateSubset
36 fvMeshSubset& subsetter
39 if (selection_.empty())
49 subsetter.reset(selectedCells);
55 bool Foam::functionObjects::ensightWrite::update()
64 if (meshSubset_.hasSubMesh())
75 updateSubset(meshSubset_);
79 ensMesh_.reset(
new ensightMesh(meshSubset_.mesh(), writeOpts_));
81 else if (ensMesh_->needsUpdate())
93 bool Foam::functionObjects::ensightWrite::readSelection(
const dictionary&
dict)
101 selectFields_.clear();
102 dict.readEntry(
"fields", selectFields_);
103 selectFields_.uniq();
105 blockFields_.clear();
106 dict.readIfPresent(
"excludeFields", blockFields_);
110 selection_ =
dict.subOrEmptyDict(
"selection");
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void movePoints(const polyMesh &mpm)
Update for mesh point-motion.
static bitSet select(const polyMesh &mesh, const dictionary &dict, const bool verbosity=false)
Return a cell selection according to the dictionary specification of actions.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
Mesh consisting of general polyhedral cells.