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_);
84 for (
const word& fieldName : fieldNames)
88 Info<<
"write: " << fieldName <<
endl;
109 const auto* fieldPtr =
110 areaMesh.thisDb().cfindObject<GeoField>(fieldName);
112 writeSurface(
writer, fieldPtr, fieldName);
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool & parRun() noexcept
Test if this a parallel run.
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...
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(const List< commsStruct > &comms, 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...
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
void setProperty(const word &entryName, const Type &value)
Add generic property.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
List< word > wordList
A List of words.
static const Field< Type > & null()
Return nullObject reference Field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const Time & time_
Reference to the time database.