34void Foam::domainDecompositionDryRun::writeVolField
37 const labelUList& procIds
59 cellDist[celli] = procIds[celli];
62 cellDist.correctBoundaryConditions();
65 Info<<
nl <<
"Wrote decomposition to "
66 << cellDist.objectRelPath()
67 <<
" (volScalarField) for visualization."
72void Foam::domainDecompositionDryRun::writeVTK
88 Info<<
"Wrote decomposition to "
90 <<
" for visualization."
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
@ NO_REGISTER
Do not request registration (bool: false).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
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.
const fvMesh & mesh() const noexcept
The mesh.
A class for handling file names.
const Time & time() const
Return the top-level database.
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
const fileName & output() const noexcept
The current output file name.
Write an OpenFOAM volume (internal) geometry and internal fields as a vtu file or a legacy vtk file.
virtual bool writeGeometry()
Write patch topology.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
A deep-copy description of an OpenFOAM volume mesh in data structures suitable for VTK UnstructuredGr...
static const word null
An empty word.
const dimensionSet dimless
Dimensionless.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
UList< label > labelUList
A UList of labels.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.