22 using reportFields = foamToVtkReportFields;
26 (doInternal || doBoundary)
33 (doInternal || doBoundary)
46 if (doInternal || doBoundary)
74 autoPtr<volPointInterpolation>
pInterp;
78 if (vtuMeshCells.empty())
81 vtuMeshCells.reset(meshProxy.mesh());
83 if (doPointValues && vtuMeshCells.manifold())
85 doPointValues =
false;
89 <<
"Manifold cells detected (eg, AMI) - disabling PointData" 116 Info<<
" Internal : " 131 const polyBoundaryMesh&
patches =
mesh.boundaryMesh();
134 PtrList<PrimitivePatchInterpolation<primitivePatch>>
patchInterps;
156 / (meshProxy.useSubMesh() ? meshProxy.name() :
"boundary")
171 Info<<
" Boundaries: " 174 writer->writeTimeValue(timeValue);
193 label nPatchInterps = 0;
211 / (meshProxy.useSubMesh() ? meshProxy.name() :
pp.name())
237 Info<<
" Boundary : " 240 writer->writeTimeValue(timeValue);
251 new PrimitivePatchInterpolation<primitivePatch>(
pp)
279 IOobject::NO_REGISTER
312 (withMeshIds ? 2 : 0)
358 + (withPointIds ? 1 : 0)
369 const label nPatchFields =
435 if (UPstream::master())
440 if (writeOpts.legacy())
448 fileName seriesName(vtk::seriesWriter::base(
outputName));
450 vtk::seriesWriter& series = vtkSeries(seriesName);
457 series.load(seriesName,
true, timeValue);
460 series.append(timeValue, timeDesc);
461 series.write(seriesName);
472 fileName seriesName(vtk::seriesWriter::base(
outputName));
479 vtk::seriesWriter& series = vtkSeries(seriesName);
486 series.load(seriesName,
true, timeValue);
490 series.write(seriesName);
autoPtr< vtk::internalWriter > internalWriter
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
PtrList< vtk::patchWriter > patchWriters
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
std::unique_ptr< objectRegistry > cacheFieldsPtr
#define forAll(list, i)
Loop across all elements in list.
Foam::word regionName(Foam::polyMesh::defaultRegion)
word outputName("finiteArea-edges.obj")
fileName vtmOutputBase(outputDir/regionDir/vtkName+timeDesc)
const polyBoundaryMesh & patches
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 wordList volume
Standard volume field types (scalar, vector, tensor, etc)
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
vector point
Point is a vector.
const wordList internal
Standard dimensioned field types (scalar, vector, tensor, etc)
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
vtk::vtmWriter vtmBoundaries
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< label > labelList
A List of labels.
writeAllDimFields(internalWriter, meshProxy, objects, true, cacheFieldsPtr.get())
Foam::argList args(argc, argv)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
autoPtr< volPointInterpolation > pInterp