35 void Foam::areaWrite::writeSurface
38 const Field<Type>* fieldPtr,
58 template<
class GeoField>
59 void Foam::areaWrite::performAction
62 const faMesh& areaMesh,
63 const IOobjectList& objects
70 fieldNames = objects.names<GeoField>(fieldSelection_,
true);
74 fieldNames = areaMesh.thisDb().names<GeoField>(fieldSelection_);
81 for (
const word& fieldName : fieldNames)
85 Info<<
"write: " << fieldName <<
endl;
88 refPtr<GeoField> tfield;
108 tfield.cref(areaMesh.thisDb().cfindObject<GeoField>(fieldName));
111 writeSurface(
writer, tfield.get(), fieldName);
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
static const Field< Type > & null() noexcept
Return a null Field (reference to a nullObject). Behaves like an empty Field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName relativePath(const fileName &input, const bool caseTag=false) const
Return the input relative to the globalPath by stripping off a leading value of the globalPath...
Ignore writing from objectRegistry::writeObject()
IOdictionary propsDict(dictIO)
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
word outputName("finiteArea-edges.obj")
void sort(UList< T > &list)
Sort the list.
static void combineReduce(T &value, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce inplace (cf. MPI Allreduce) applying cop to inplace combine value from different processors...
void setProperty(const word &entryName, const Type &value)
Add generic property.
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Do not request registration (bool: false)
const Time & time_
Reference to the time database.