32 using reportFields = foamToVtkReportFields;
38 PtrList<const surfaceScalarField>
sScalars;
39 PtrList<const surfaceVectorField>
sVectors;
46 sScalars = readFields<surfaceScalarField>(meshProxy, objects);
58 sVectors = readFields<surfaceVectorField>(meshProxy, objects);
82 tsvfPtr->
rename(ssf.name());
90 vtk::surfaceFieldWriter
writer 96 /
"surface-fields"/
"surfaceFields" + timeDesc
105 writer.writeTimeValue(timeValue);
119 if (Pstream::master())
123 fileName seriesName(vtk::seriesWriter::base(
outputName));
125 vtk::seriesWriter& series = vtkSeries(seriesName);
132 series.load(seriesName,
true, timeValue);
136 series.write(seriesName);
144 if (!selectedFaceZones.empty() && !
mesh.faceZones().empty())
148 sScalars = readFields<surfaceScalarField>(meshProxy, objects);
160 sVectors = readFields<surfaceVectorField>(meshProxy, objects);
170 for (
const faceZone& fz :
mesh.faceZones())
172 if (!selectedFaceZones.match(fz.name()))
186 / (meshProxy.useSubMesh() ? meshProxy.name() : fz.name())
192 Info<<
" FaceZone : " 196 writer.beginFile(fz.name());
197 writer.writeTimeValue(timeValue);
215 if (Pstream::master())
219 fileName seriesName(vtk::seriesWriter::base(
outputName));
221 vtk::seriesWriter& series = vtkSeries(seriesName);
228 series.load(seriesName,
true, timeValue);
232 series.write(seriesName);
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
constexpr char nl
The newline '\n' character (0x0a)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
PtrList< const surfaceVectorField > sVectors
word outputName("finiteArea-edges.obj")
label nSurfaceScalarField
label nSurfaceVectorField
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...
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
virtual void rename(const word &newName)
Rename.
PrimitivePatch< List< face >, const pointField & > primitiveFacePatch
A PrimitivePatch with List storage for the faces, const reference for the point field.
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))
PtrList< const surfaceScalarField > sScalars
messageStream Info
Information stream (stdout output on master, null elsewhere)
vtk::GenericPatchGeoFieldsWriter< primitiveFacePatch > vtkWriterType_faceZone
Foam::argList args(argc, argv)