35void Foam::areaWrite::writeSurface
38 const Field<Type>* fieldPtr,
58template<
class GeoField>
59void 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_);
88 for (
const word& fieldName : fieldNames)
92 Info<<
"write: " << fieldName <<
endl;
113 const auto* fieldPtr =
114 areaMesh.thisDb().cfindObject<GeoField>(fieldName);
116 writeSurface(
writer, fieldPtr, fieldName);
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
static const Field< Type > & null()
Return nullObject reference Field.
static void combineGather(const List< commsStruct > &comms, T &value, const CombineOp &cop, const int tag, const label comm)
static void broadcast(Type &value, const label comm=UPstream::worldComm)
fileName relativePath(const fileName &input, const bool caseTag=false) const
static bool & parRun() noexcept
Test if this a parallel run.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
void setProperty(const word &entryName, const Type &value)
Add generic property.
const Time & time_
Reference to the time database.
word outputName("finiteArea-edges.obj")
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
List< word > wordList
A List of words.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void sort(UList< T > &list)
Sort the list.
IOdictionary propsDict(dictIO)