33Foam::label Foam::functionObjects::ensightWrite::writeVolFields
45 for (
const word& fieldName : baseMesh.
sortedNames<GeoField>(acceptField))
47 const auto* fieldptr = baseMesh.
findObject<GeoField>(fieldName);
55 const auto&
field = tfield();
59 ensightOutput::writeVolField<Type>
67 Log <<
' ' << fieldName;
Generic GeometricField class.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bool nodeValues() const noexcept
Forced use of values per node instead of per element.
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
const fvMesh & baseMesh() const noexcept
Original mesh.
Mesh data needed to do the Finite Volume discretisation.
wordList sortedNames() const
The sorted names of all objects.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
bool interpolate() const noexcept
Same as isPointData()
A class for handling words, derived from Foam::string.
A collection of functions for writing volField content in ensight format.
OBJstream os(runTime.globalPath()/outputName)