35 using reportFields = foamToVtkReportFields;
39 (doInternal || doBoundary)
40 ? objects.count(stringListOps::foundOp<word>(fieldTypes::volume))
46 (doInternal || doBoundary)
47 ? objects.count(stringListOps::foundOp<word>(fieldTypes::internal))
54 ? objects.count(stringListOps::foundOp<word>(fieldTypes::point))
59 reportFields::volume(Info, objects);
60 reportFields::internal(Info, objects);
85 if (vtuMeshCells.empty())
88 vtuMeshCells.reset(meshProxy.mesh());
90 if (doPointValues && vtuMeshCells.manifold())
92 doPointValues =
false;
96 <<
"Manifold cells detected (eg, AMI) - disabling PointData"
123 Info<<
" Internal : "
151 auto writer = autoPtr<vtk::patchWriter>::New
163 / (meshProxy.useSubMesh() ? meshProxy.name() :
"boundary")
178 Info<<
" Boundaries: "
181 writer->writeTimeValue(timeValue);
200 label nPatchInterps = 0;
206 auto writer = autoPtr<vtk::patchWriter>::New
209 labelList(one{}, pp.index()),
218 / (meshProxy.useSubMesh() ? meshProxy.name() : pp.name())
244 Info<<
" Boundary : "
247 writer->writeTimeValue(timeValue);
258 new PrimitivePatchInterpolation<primitivePatch>(pp)
299 (withMeshIds ? 2 : 0)
343 + (withPointIds ? 1 : 0)
354 const label nPatchFields =
418 if (Pstream::master())
423 if (writeOpts.legacy())
431 fileName seriesName(vtk::seriesWriter::base(
outputName));
433 vtk::seriesWriter& series = vtkSeries(seriesName);
440 series.load(seriesName,
true, timeValue);
443 series.append(timeValue, timeDesc);
444 series.write(seriesName);
455 fileName seriesName(vtk::seriesWriter::base(
outputName));
462 vtk::seriesWriter& series = vtkSeries(seriesName);
469 series.load(seriesName,
true, timeValue);
473 series.write(seriesName);
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
fileName relativePath(const fileName &input, const bool caseTag=false) const
Foam::word regionName(Foam::polyMesh::defaultRegion)
word outputName("finiteArea-edges.obj")
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
fileName vtmOutputBase(outputDir/regionDir/vtkName+timeDesc)
writeAllDimFields(internalWriter, meshProxy, objects, true)
autoPtr< vtk::internalWriter > internalWriter
autoPtr< volPointInterpolation > pInterp
PtrList< vtk::patchWriter > patchWriters
const polyBoundaryMesh & patches
vtk::vtmWriter vtmBoundaries
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
Foam::argList args(argc, argv)
#define forAll(list, i)
Loop across all elements in list.