Namespace for handling VTK input/output. More...
Namespaces | |
legacy | |
Namespace for legacy VTK output constants and functions. | |
Tools | |
A collection of static methods to assist converting OpenFOAM data structures into VTK internal data structures. | |
Classes | |
class | appendBase64Formatter |
Appended base-64 encoded binary output. Uses an output filter layer to write base-64 encoded content. More... | |
class | appendRawFormatter |
Appended raw binary output. More... | |
class | asciiFormatter |
Inline ASCII output. Adds spaces between entries and a newline every 9 items (for consistency with what VTK itself outputs). More... | |
class | base64Formatter |
Inline base-64 encoded binary output. Uses an output filter layer to write base-64 encoded content. More... | |
struct | Caching |
Bookkeeping for internal caching. More... | |
class | coordSetWriter |
Write as points/lines, optionally with fields, as a vtp file or a legacy vtk file. More... | |
class | fileWriter |
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data). These output formats are structured as DECLARED, FIELD_DATA, PIECE followed by any CELL_DATA or POINT_DATA. More... | |
class | foamVtkBase64Layer |
Base-64 encoded output layer - normally only used indirectly by formatters. More... | |
class | formatter |
Abstract class for a VTK output stream formatter. More... | |
class | GenericPatchGeoFieldsWriter |
A Foam::vtk::GenericPatchWriter with support for geometric fields. More... | |
class | GenericPatchWriter |
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file. The patch type is limited to representations of polygon faces and 3D points and must support the following methods: More... | |
class | internalMeshWriter |
Write an OpenFOAM volume (internal) geometry and internal fields as a vtu file or a legacy vtk file. More... | |
class | internalWriter |
Write an OpenFOAM volume (internal) geometry and internal fields as a vtu file or a legacy vtk file. More... | |
class | lagrangianWriter |
Write lagrangian (cloud) positions and fields (as PointData) in VTP format. Legacy VTK format is intentionally not supported since the VTP format provides much better field selection in ParaView, and for consistency with the Foam::functionObjects::vtkCloud function object. More... | |
class | legacyAsciiFormatter |
Formatting as per Foam::vtk::asciiFormatter, but with naming for legacy output. More... | |
class | legacyRawFormatter |
Binary output for the VTK legacy format, always written as big-endian and with 32-bit integers. More... | |
class | lineWriter |
Write edge/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
class | outputOptions |
Encapsulated combinations of output format options. This is primarily useful when defining the output type based on some command-line arguments or dictionary contents. However, it can also be a useful alternative to using the underlying enumeration directly, since this class provides additional methods not possible with an enum. More... | |
class | patchMeshWriter |
Write OpenFOAM patches and patch fields in VTP or legacy vtk format. More... | |
class | patchWriter |
Write OpenFOAM patches and patch fields in VTP or legacy vtk format. More... | |
class | polyWriter |
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
class | seriesWriter |
Provides a means of accumulating and generating VTK file series. More... | |
class | surfaceFieldWriter |
Write surfaces fields (as PointData) in VTP format. Legacy VTK format is intentionally not supported. More... | |
class | surfaceWriter |
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
class | vtmWriter |
Provides a means of accumulating file entries for generating a vtkMultiBlockDataSet (.vtm) file. More... | |
class | vtuAdaptor |
Bookkeeping for vtkUnstructuredGrid. More... | |
class | vtuCells |
A deep-copy description of an OpenFOAM volume mesh in data structures suitable for VTK UnstructuredGrid, including the possibility of decomposing polyhedral cells into primitive cell types. More... | |
class | vtuSizing |
Sizing descriptions and routines for transcribing an OpenFOAM volume mesh into a VTK unstructured grid, with possible decomposition of polyhedral cells into primitive cell types. More... | |
Typedefs | |
typedef GenericPatchGeoFieldsWriter< indirectPrimitivePatch > | indirectPatchGeoFieldsWriter |
Write indirectPrimitivePatch faces/points as a vtp file or a legacy vtk file with support for geometric fields. More... | |
typedef GenericPatchGeoFieldsWriter< uindirectPrimitivePatch > | uindirectPatchGeoFieldsWriter |
Write uindirectPrimitivePatch faces/points as a vtp file or a legacy vtk file with support for geometric fields. More... | |
typedef indirectPatchGeoFieldsWriter | surfaceMeshWriter |
typedef GenericPatchWriter< indirectPrimitivePatch > | indirectPatchWriter |
Write indirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
typedef GenericPatchWriter< uindirectPrimitivePatch > | uindirectPatchWriter |
Write uindirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
typedef GenericPatchWriter< primitivePatch > | primitivePatchWriter |
Write primitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file. More... | |
Functions | |
bool | isAppend (enum formatType fmt) noexcept |
Test for vtk append format (xml) More... | |
bool | isLegacy (enum formatType fmt) noexcept |
Test for vtk legacy format. More... | |
template<class Type , direction nComp = 1> | |
uint64_t | sizeofData (label count) |
Commonly used calculation for header and payload sizes. More... | |
autoPtr< vtk::formatter > | newFormatter (std::ostream &os, unsigned prec=IOstream::defaultPrecision()) |
Return a default asciiFormatter. More... | |
autoPtr< vtk::formatter > | newFormatter (std::ostream &os, const enum formatType fmtType, unsigned prec=IOstream::defaultPrecision()) |
Return a new formatter based on the specified format type. More... | |
void | writeIdentity (vtk::formatter &fmt, const label len, label start=0) |
Write an identity list of labels. More... | |
void | writeList (vtk::formatter &fmt, const UList< uint8_t > &values) |
Write a list of uint8_t values. More... | |
template<class Type > | |
void | write (vtk::formatter &fmt, const Type &val, const label n=1) |
Component-wise write of a value (N times) More... | |
template<class Type > | |
void | writeValueParallel (vtk::formatter &fmt, const Type &val, const label count=1) |
Component-wise write of a value (N times) in parallel. More... | |
template<class Type > | |
void | writeList (vtk::formatter &fmt, const UList< Type > &values) |
Write a list of values. More... | |
template<class Type , unsigned N> | |
void | writeList (vtk::formatter &fmt, const FixedList< Type, N > &values) |
Write a list of values. More... | |
template<class Type > | |
void | writeList (vtk::formatter &fmt, const UList< Type > &values, const labelUList &addressing) |
Write a list of values via indirect addressing. More... | |
template<class Type > | |
void | writeList (vtk::formatter &fmt, const UList< Type > &values, const bitSet &selected) |
Write a list of values via indirect addressing. More... | |
template<class Type > | |
void | writeLists (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing) |
Write a list of values and a list of values via indirect addressing. More... | |
template<class Type > | |
void | writeListParallel (vtk::formatter &fmt, const UList< Type > &values) |
Write a list of values. More... | |
void | writeListParallel (vtk::formatter &fmt, const UList< label > &values, const globalIndex &procOffset) |
Write a list of values, with constant per-processor offset. More... | |
template<class Type > | |
void | writeListParallel (vtk::formatter &fmt, const UList< Type > &values, const labelUList &addressing) |
Write a list of values via indirect addressing. More... | |
template<class Type > | |
void | writeListParallel (vtk::formatter &fmt, const UList< Type > &values, const bitSet &selected) |
Write a list of values via indirect addressing. More... | |
template<class Type > | |
void | writeListsParallel (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2) |
Write a list of values and another list of values. More... | |
template<class Type > | |
void | writeListsParallel (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing) |
Write a list of values and a list of values via indirect addressing. More... | |
template<> | |
void | write< label > (vtk::formatter &fmt, const label &val, const label n) |
Template specialization for label. More... | |
template<> | |
void | write< float > (vtk::formatter &fmt, const float &val, const label n) |
Template specialization for float. More... | |
template<> | |
void | write< double > (vtk::formatter &fmt, const double &val, const label n) |
Template specialization for double. More... | |
template<> | |
void | write (vtk::formatter &fmt, const symmTensor &val, const label n) |
Template specialization for symmTensor ordering. More... | |
bool | writeTopoSet (const polyMesh &mesh, const topoSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun()) |
Dispatch to vtk::writeCellSetFaces, vtk::writeFaceSet, vtk::writePointSet. More... | |
bool | writeFaceSet (const polyMesh &mesh, const faceSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun()) |
Write faceSet as VTK polydata file. More... | |
bool | writeCellSetFaces (const polyMesh &mesh, const cellSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun()) |
Write perimeter faces of cellset to vtk polydata file. More... | |
bool | writePointSet (const polyMesh &mesh, const pointSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun()) |
Write pointSet to VTK polydata file. More... | |
Variables | |
const Foam::Enum< fileTag > | fileExtension |
File extension (without ".") for some vtk XML file content types. More... | |
const Foam::Enum< fileTag > | fileContentVersions |
Version string for some vtk XML file content types. More... | |
const Foam::Enum< fileTag > | fileTagNames |
Strings corresponding to the vtk XML tags. More... | |
const Foam::Enum< fileAttr > | fileAttrNames |
Strings corresponding to the vtk XML attributes. More... | |
const Foam::Enum< dataArrayAttr > | dataArrayAttrNames |
Strings corresponding to the vtk XML DataArray attributes. More... | |
Namespace for handling VTK input/output.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
Write indirectPrimitivePatch faces/points as a vtp file or a legacy vtk file with support for geometric fields.
Definition at line 59 of file foamVtkIndPatchGeoFieldsWriter.H.
Write uindirectPrimitivePatch faces/points as a vtp file or a legacy vtk file with support for geometric fields.
Definition at line 63 of file foamVtkIndPatchGeoFieldsWriter.H.
Definition at line 37 of file foamVtkSurfaceMeshWriter.H.
Write indirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file.
Definition at line 57 of file foamVtkIndPatchWriter.H.
Write uindirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file.
Definition at line 61 of file foamVtkIndPatchWriter.H.
Write primitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file.
Definition at line 49 of file foamVtkPrimitivePatchWriter.H.
enum OutputContext : uint8_t |
The context when outputting a VTK file (XML or legacy).
Enumerator | |
---|---|
INLINE | Generate header and inline data. |
HEADER | Generate header only. |
APPEND | Generate append-data. |
Definition at line 53 of file foamVtkCore.H.
|
strong |
The output format type for file contents.
Upper bits for output type, lower bits for the format itself.
Enumerator | |
---|---|
INLINE_ASCII | XML inline ASCII, asciiFormatter. |
INLINE_BASE64 | XML inline base64, base64Formatter. |
APPEND_BASE64 | XML append base64, appendBase64Formatter. |
APPEND_BINARY | XML append raw binary, appendRawFormatter. |
LEGACY_ASCII | Legacy ASCII, legacyAsciiFormatter. |
LEGACY_BINARY | Legacy raw binary, legacyRawFormatter. |
Definition at line 66 of file foamVtkCore.H.
enum cellType : uint8_t |
Equivalent to enumeration in "vtkCellType.h" (should be uint8_t)
Definition at line 96 of file foamVtkCore.H.
|
strong |
Some common XML tags for vtk files.
Definition at line 122 of file foamVtkCore.H.
|
strong |
Some common XML attributes for vtk files.
Definition at line 160 of file foamVtkCore.H.
|
strong |
Some common names for XML DataArray entries.
Enumerator | |
---|---|
POINTS | "Points" |
OFFSETS | "offsets" |
CONNECTIVITY | "connectivity" |
TYPES | "types" |
FACES | "faces" |
FACEOFFSETS | "faceoffsets" |
Definition at line 180 of file foamVtkCore.H.
|
inlinenoexcept |
Test for vtk append format (xml)
Definition at line 79 of file foamVtkCore.H.
|
inlinenoexcept |
Test for vtk legacy format.
Definition at line 87 of file foamVtkCore.H.
|
inline |
Commonly used calculation for header and payload sizes.
Definition at line 733 of file foamVtkFormatter.H.
References Foam::BitOps::count().
Foam::autoPtr< Foam::vtk::formatter > newFormatter | ( | std::ostream & | os, |
unsigned | prec = IOstream::defaultPrecision() |
||
) |
Return a default asciiFormatter.
Definition at line 41 of file foamVtkOutput.C.
References os().
Referenced by outputOptions::newFormatter(), vtmWriter::write(), lumpedPointMovement::writeForcesAndMomentsVTP(), and lumpedPointState::writeVTP().
Foam::autoPtr< Foam::vtk::formatter > newFormatter | ( | std::ostream & | os, |
const enum formatType | fmtType, | ||
unsigned | prec = IOstream::defaultPrecision() |
||
) |
Return a new formatter based on the specified format type.
Definition at line 49 of file foamVtkOutput.C.
References os(), and autoPtr< T >::reset().
void writeIdentity | ( | vtk::formatter & | fmt, |
const label | len, | ||
label | start = 0 |
||
) |
Write an identity list of labels.
The output does not include the payload size.
Definition at line 89 of file foamVtkOutput.C.
References formatter::write().
Referenced by lumpedPointMovement::writeForcesAndMomentsVTP(), and lumpedPointState::writeVTP().
void writeList | ( | vtk::formatter & | fmt, |
const UList< uint8_t > & | values | ||
) |
Write a list of uint8_t values.
The output does not include the payload size.
Definition at line 105 of file foamVtkOutput.C.
References Foam::HashTableOps::values(), and formatter::write().
Referenced by VTKsurfaceFormat< Face >::write(), VTPsurfaceFormat< Face >::write(), internalWriter::write(), patchWriter::write(), surfaceFieldWriter::write(), fileWriter::writeBasicField(), VTKsurfaceFormatCore::writeCellData(), VTPsurfaceFormatCore::writeCellData(), internalMeshWriter::writeCellData(), internalMeshWriter::writeCellIDs(), lumpedPointMovement::writeData(), lumpedPointMovement::writeForcesAndMomentsVTP(), surfaceFieldWriter::writeGeometry(), lagrangianWriter::writeGeometry(), externalCoupled::writeGeometry(), VTKsurfaceFormatCore::writeHeader(), VTPsurfaceFormatCore::writeHeader(), writeListParallel(), writeLists(), writeListsParallel(), coordSetWriter::writePointData(), internalMeshWriter::writePointData(), internalMeshWriter::writePointIDs(), patchMeshWriter::writePoints(), writePointSet(), patchMeshWriter::writePolys(), patchMeshWriter::writePolysLegacy(), exprDriver::writeVariableStrings(), and lumpedPointState::writeVTP().
|
inline |
Component-wise write of a value (N times)
Definition at line 29 of file foamVtkOutputTemplates.C.
References Foam::component(), n, and formatter::write().
Referenced by meshRefinement::baffleAndSplitMesh(), meshRefinement::balanceAndRefine(), Ostream::beginBlock(), ensightGeoFile::beginCoordinates(), ensightFile::beginPart(), ensightFile::beginParticleCoordinates(), meshRefinement::blockLeakFaces(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedSend(), meshRefinement::createZoneBaffles(), lagrangianFieldDecomposer::decomposeFieldFields(), dimFieldDecomposer::decomposeFields(), lagrangianFieldDecomposer::decomposeFields(), pointFieldDecomposer::decomposeFields(), faFieldDecomposer::decomposeFields(), fvFieldDecomposer::decomposeFields(), metisLikeDecomp::decomposeGeneral(), mapDistributeBase::distribute(), Ostream::endBlock(), Ostream::endEntry(), OSstream::endl(), mapDistributeBase::exchangeMasks(), Foam::FOAM_DEPRECATED_FOR(), GAMGSolver::GAMGSolver(), Pstream::gather(), globalIndex::gather(), Pstream::gatherList(), globalIndex::gatherValues(), processorFvPatchField< Type >::initEvaluate(), calculatedProcessorFvPatchField< Type >::initEvaluate(), calculatedProcessorGAMGInterfaceField::initInterfaceMatrixUpdate(), processorGAMGInterfaceField::initInterfaceMatrixUpdate(), lduCalculatedProcessorField< Type >::initInterfaceMatrixUpdate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), calculatedProcessorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), lagrangianFieldDecomposer::lagrangianFieldDecomposer(), Pstream::listCombineGather(), Pstream::listCombineScatter(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), CloudFunctionObject< CloudType >::postEvolve(), regionModelFunctionObject::postEvolveRegion(), lagrangianReconstructor::reconstructPositions(), codedMixedFvPatchField< Type >::redirectPatchField(), meshRefinement::refineAndBalance(), meshRefinement::removeLimitShells(), Pstream::scatter(), globalIndex::scatter(), Pstream::scatterList(), processorLduInterface::send(), LUscalarMatrix::solve(), ParSortableList< Type >::sort(), FLMAsurfaceFormat< Face >::write(), IOPosition< CloudType >::write(), foamVtkBase64Layer::write(), List< Foam::glTF::accessor >::write(), legacyRawFormatter::write(), appendRawFormatter::write(), edgeMeshFormat::write(), freeSurfaceVelocityFvPatchVectorField::write(), OTstream::write(), DispersionRASModel< CloudType >::write(), asciiFormatter::write(), cellMotionFvPatchField< Type >::write(), CloudSubModelBase< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::write(), timeVaryingAlphaContactAngleFvPatchScalarField::write(), MeshedSurfaceProxy< Face >::write(), internalWriter::write(), Tatsumoto::write(), STLtriangle::write(), coupledFaePatchField< Type >::write(), KocamustafaogullariIshii::write(), constantAlphaContactAngleFvPatchScalarField::write(), calculatedFaePatchField< Type >::write(), OBJstream::write(), fixedValueFaePatchField< Type >::write(), HuaXu::write(), Spiegler::write(), fixedNormalSlipPointPatchField< Type >::write(), BreenWestwater::write(), Jeschar::write(), alphaContactAngleTwoPhaseFvPatchScalarField::write(), timeVaryingUniformFixedValuePointPatchField< Type >::write(), LemmertChawla::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), Schroeder::write(), tabulatedSolidTransport< Thermo >::write(), FLMAZsurfaceFormat< Face >::write(), UOPstreamBase::write(), fixedFluxPressureFvPatchScalarField::write(), Shirai::write(), solidBodyMotionDisplacementPointPatchVectorField::write(), tabulatedTransport< Thermo >::write(), inletOutletFaPatchField< Type >::write(), exponential::write(), tabulatedAnIsoSolidTransport< Thermo >::write(), proxyWriter::write(), scene::write(), wideBandDiffusiveRadiationMixedFvPatchScalarField::write(), Bromley::write(), ensightFaMesh::write(), fixedMeanFvPatchField< Type >::write(), edgeNormalFixedValueFaPatchVectorField::write(), TolubinskiKostanchuk::write(), IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), WLFTransport< Thermo >::write(), kqRWallFunctionFvPatchField< scalar >::write(), perfectGas< Specie >::write(), calculatedFaPatchField< Type >::write(), sutherlandTransport< Thermo >::write(), rhoConst< Specie >::write(), fixedValueFaPatchField< Type >::write(), fixedValueOutflowFaPatchField< Type >::write(), exprValuePointPatchField< Type >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), valuePointPatchField< vector >::write(), Kutadeladze::write(), mappedFixedInternalValueFvPatchField< Type >::write(), uniformFixedGradientFvPatchField< Type >::write(), fixedMeanOutletInletFvPatchField< Type >::write(), gradientEnergyFvPatchScalarField::write(), exprFixedValueFvPatchField< Type >::write(), outletInletFvPatchField< Type >::write(), icoTabulated< Specie >::write(), uniformJumpAMIFvPatchField< Type >::write(), calculatedFvPatchField< Type >::write(), uniformJumpFvPatchField< Type >::write(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), hConstThermo< EquationOfState >::write(), hTabulatedThermo< EquationOfState >::write(), temperatureDependentAlphaContactAngleFvPatchScalarField::write(), mappedFixedPushedInternalValueFvPatchField< Type >::write(), linear< Type >::write(), exprMixedFvPatchField< Type >::write(), incompressiblePerfectGas< Specie >::write(), perfectFluid< Specie >::write(), uniformFixedValuePointPatchField< Type >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), fixedIncidentRadiationFvPatchScalarField::write(), variableHeightFlowRateInletVelocityFvPatchVectorField::write(), inletOutletFvPatchField< Type >::write(), filmFlux::write(), polynomialTransport< Thermo, PolySize >::write(), MarshakRadiationFvPatchScalarField::write(), fixedJumpAMIFvPatchField< scalar >::write(), eConstThermo< EquationOfState >::write(), x3dWriter::write(), uniformFixedValueFvPatchField< Type >::write(), starcdWriter::write(), mappedFixedValueFvPatchField< Type >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::write(), PengRobinsonGas< Specie >::write(), timeVaryingUniformFixedValueFaPatchField< Type >::write(), logPolynomialTransport< Thermo, PolySize >::write(), scaledFixedValueFvPatchField< Type >::write(), ensightFile::write(), fixedGradientFaPatchField< Type >::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), primitiveEntry::write(), fixedValueFvPatchField< scalar >::write(), edgeMesh::write(), uniformInletOutletFvPatchField< Type >::write(), MarshakRadiationFixedTemperatureFvPatchScalarField::write(), janafThermo< EquationOfState >::write(), timeVaryingMappedFixedValueFvPatchField< Type >::write(), freestreamFvPatchField< Type >::write(), directionMixedFvPatchField< Type >::write(), icoPolynomial< Specie, PolySize >::write(), surfaceDisplacementPointPatchVectorField::write(), rPolynomial< Specie >::write(), fixedProfileFvPatchField< Type >::write(), coupledFaPatchField< Type >::write(), mappedMixedFvPatchField< Type >::write(), mappedMixedFieldFvPatchField< Type >::write(), slicedFvPatchField< Type >::write(), greyDiffusiveRadiationMixedFvPatchScalarField::write(), graph::write(), mappedFieldFvPatchField< Type >::write(), atmOmegaWallFunctionFvPatchScalarField::write(), atmEpsilonWallFunctionFvPatchScalarField::write(), mixedFaPatchField< Type >::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), fixedJumpFvPatchField< vector >::write(), ensightMesh::write(), cyclicFvPatchField< Type >::write(), coupledFvPatchField< Type >::write(), partialSlipFvPatchField< Type >::write(), limitFields::write(), fixedGradientFvPatchField< Type >::write(), fixedNormalSlipFvPatchField< Type >::write(), thermalBaffle1DFvPatchScalarField< solidType >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), pressurePermeableAlphaInletOutletVelocityFvPatchVectorField::write(), atmTurbulentHeatFluxTemperatureFvPatchScalarField::write(), fanFvPatchField< Type >::write(), cyclicAMIFvPatchField< Type >::write(), externalCoupledTemperatureMixedFvPatchScalarField::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), codedFixedValueFvPatchField< Type >::write(), codedFixedValuePointPatchField< Type >::write(), codedMixedFvPatchField< Type >::write(), cyclicACMIFvPatchField< Type >::write(), turbulentInletFvPatchField< Type >::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), oversetFvPatchField< Type >::write(), mixedFvPatchField< vector >::write(), outletMappedUniformInletFvPatchField< Type >::write(), UnsortedMeshedSurface< Face >::write(), dimensionSet::write(), thermo< Thermo, Type >::write(), surfMesh::write(), sorptionWallFunctionFvPatchScalarField::write(), turbulentDigitalFilterInletFvPatchField< Type >::write(), MeshedSurface< Foam::face >::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), triSurface::write(), meshRefinement::write(), faMeshReconstructor::writeAddressing(), decomposedBlockData::writeBlocks(), VTKsurfaceFormatCore::writeCellData(), VTPsurfaceFormatCore::writeCellData(), Foam::writeCellGraph(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Sampled< Type >::writeData(), faMeshDecomposition::writeDecomposition(), OBJstream::writeFace(), Foam::ensightOutput::Detail::writeFieldComponents(), ensightFile::writeKeyword(), Ostream::writeKeyword(), ensightFile::writeLabels(), OBJstream::writeLine(), writeList(), ensightFile::writeList(), writeListParallel(), writeListsParallel(), faMeshReconstructor::writeMesh(), patchMeshWriter::writeNeighIDs(), Time::writeNow(), Foam::writePatchGraph(), patchMeshWriter::writePatchIDs(), fileWriter::writeProcIDs(), foamVtkBase64Layer::writeSize(), appendRawFormatter::writeSize(), ensightFile::writeString(), nastranWriter::writeTemplate(), foamWriter::writeTemplate(), starcdWriter::writeTemplate(), vtkWriter::writeTemplate(), x3dWriter::writeTemplate(), ensightFile::writeUndef(), fileWriter::writeUniform(), writeValueParallel(), volFieldValue::writeValues(), and lumpedPointState::writeVTP().
|
inline |
Component-wise write of a value (N times) in parallel.
The value and count may differ on each processor
Definition at line 121 of file foamVtkOutputTemplates.C.
References Foam::BitOps::count(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::HashTableOps::values(), and write().
Referenced by fileWriter::writeUniform().
void writeList | ( | vtk::formatter & | fmt, |
const UList< Type > & | values | ||
) |
Write a list of values.
The output does not include the payload size.
Definition at line 49 of file foamVtkOutputTemplates.C.
References Foam::HashTableOps::values(), and write().
void writeList | ( | vtk::formatter & | fmt, |
const FixedList< Type, N > & | values | ||
) |
Write a list of values.
The output does not include the payload size.
Definition at line 63 of file foamVtkOutputTemplates.C.
References Foam::HashTableOps::values(), and write().
void writeList | ( | vtk::formatter & | fmt, |
const UList< Type > & | values, | ||
const labelUList & | addressing | ||
) |
Write a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 77 of file foamVtkOutputTemplates.C.
References Foam::HashTableOps::values(), and write().
void writeList | ( | vtk::formatter & | fmt, |
const UList< Type > & | values, | ||
const bitSet & | selected | ||
) |
Write a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 92 of file foamVtkOutputTemplates.C.
References Foam::HashTableOps::values(), and write().
void writeLists | ( | vtk::formatter & | fmt, |
const UList< Type > & | values1, | ||
const UList< Type > & | values2, | ||
const labelUList & | addressing | ||
) |
Write a list of values and a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 107 of file foamVtkOutputTemplates.C.
References Foam::HashTableOps::values(), and writeList().
Referenced by internalWriter::write().
void writeListParallel | ( | vtk::formatter & | fmt, |
const UList< Type > & | values | ||
) |
Write a list of values.
The output does not include the payload size.
Definition at line 152 of file foamVtkOutputTemplates.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, procAddr(), Foam::blockMeshTools::read(), Foam::HashTableOps::values(), write(), and writeList().
Referenced by surfaceFieldWriter::write(), fileWriter::writeBasicField(), internalMeshWriter::writeCellData(), internalMeshWriter::writeCellIDs(), vtkCloud::writeFields(), surfaceFieldWriter::writeGeometry(), lagrangianWriter::writeGeometry(), internalMeshWriter::writePointData(), internalMeshWriter::writePointIDs(), writePointSet(), patchMeshWriter::writePolys(), and patchMeshWriter::writePolysLegacy().
void writeListParallel | ( | vtk::formatter & | fmt, |
const UList< label > & | values, | ||
const globalIndex & | procOffset | ||
) |
Write a list of values, with constant per-processor offset.
The output does not include the payload size.
Definition at line 119 of file foamVtkOutput.C.
References globalIndex::localStart(), procAddr(), Foam::blockMeshTools::read(), Foam::HashTableOps::values(), and write().
void writeListParallel | ( | vtk::formatter & | fmt, |
const UList< Type > & | values, | ||
const labelUList & | addressing | ||
) |
Write a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 214 of file foamVtkOutputTemplates.C.
References UList< T >::cdata_bytes(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, procAddr(), Foam::blockMeshTools::read(), UList< T >::size(), UList< T >::size_bytes(), Foam::HashTableOps::values(), write(), and writeList().
void writeListParallel | ( | vtk::formatter & | fmt, |
const UList< Type > & | values, | ||
const bitSet & | selected | ||
) |
Write a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 283 of file foamVtkOutputTemplates.C.
References UList< T >::cdata_bytes(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, procAddr(), Foam::blockMeshTools::read(), UList< T >::size(), UList< T >::size_bytes(), Foam::subset(), Foam::HashTableOps::values(), write(), and writeList().
void writeListsParallel | ( | vtk::formatter & | fmt, |
const UList< Type > & | values1, | ||
const UList< Type > & | values2 | ||
) |
Write a list of values and another list of values.
The output does not include the payload size.
Definition at line 353 of file foamVtkOutputTemplates.C.
References UList< T >::cdata_bytes(), UList< T >::data_bytes(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::max(), Foam::blockMeshTools::read(), DynamicList< T, SizeMin >::resize_nocopy(), UList< T >::size(), UList< T >::size_bytes(), write(), and writeList().
Referenced by internalWriter::write().
void writeListsParallel | ( | vtk::formatter & | fmt, |
const UList< Type > & | values1, | ||
const UList< Type > & | values2, | ||
const labelUList & | addressing | ||
) |
Write a list of values and a list of values via indirect addressing.
The output does not include the payload size.
Definition at line 449 of file foamVtkOutputTemplates.C.
References UList< T >::cdata_bytes(), UList< T >::data_bytes(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::max(), Foam::blockMeshTools::read(), DynamicList< T, SizeMin >::resize_nocopy(), UList< T >::size(), UList< T >::size_bytes(), write(), and writeList().
|
inline |
|
inline |
|
inline |
|
inline |
Template specialization for symmTensor ordering.
VTK order is (XX, YY, ZZ, XY, YZ, XZ)
Definition at line 73 of file foamVtkOutputI.H.
References Foam::component(), n, formatter::write(), SymmTensor< scalar >::XX, SymmTensor< scalar >::XY, SymmTensor< scalar >::XZ, SymmTensor< scalar >::YY, SymmTensor< scalar >::YZ, and SymmTensor< scalar >::ZZ.
bool writeTopoSet | ( | const polyMesh & | mesh, |
const topoSet & | set, | ||
const vtk::outputOptions | opts, | ||
const fileName & | file, | ||
bool | parallel = UPstream::parRun() |
||
) |
Dispatch to vtk::writeCellSetFaces, vtk::writeFaceSet, vtk::writePointSet.
The file name is with/without an extension.
Definition at line 31 of file foamVtkWriteTopoSet.C.
References Foam::endl(), mesh, Foam::nl, WarningInFunction, writeCellSetFaces(), writeFaceSet(), and writePointSet().
bool writeFaceSet | ( | const polyMesh & | mesh, |
const faceSet & | set, | ||
const vtk::outputOptions | opts, | ||
const fileName & | file, | ||
bool | parallel = UPstream::parRun() |
||
) |
Write faceSet as VTK polydata file.
Only one CELL_DATA, which is the original faceID The file name is with/without an extension.
————————————————————————
Definition at line 30 of file foamVtkWriteFaceSet.C.
References mesh, Foam::name(), and writer().
Referenced by if(), and writeTopoSet().
bool writeCellSetFaces | ( | const polyMesh & | mesh, |
const cellSet & | set, | ||
const vtk::outputOptions | opts, | ||
const fileName & | file, | ||
bool | parallel = UPstream::parRun() |
||
) |
Write perimeter faces of cellset to vtk polydata file.
The data are the original cell ids The file name is with/without an extension.
————————————————————————
————————————————————————
————————————————————————
Definition at line 30 of file foamVtkWriteCellSetFaces.C.
References forAll, found, HashTable< T, Key, Hash >::insert(), mesh, Foam::name(), HashTable< T, Key, Hash >::sortedToc(), and writer().
Referenced by writeTopoSet().
bool writePointSet | ( | const polyMesh & | mesh, |
const pointSet & | set, | ||
const vtk::outputOptions | opts, | ||
const fileName & | file, | ||
bool | parallel = UPstream::parRun() |
||
) |
Write pointSet to VTK polydata file.
Only one CELL_DATA, which is the original pointID The file name is with/without an extension.
————————————————————————
————————————————————————
Definition at line 31 of file foamVtkWritePointSet.C.
References outputOptions::append(), Foam::vtk::legacy::beginPointData(), Foam::vtk::legacy::beginPoints(), fileExtension, format(), fileName::has_ext(), outputOptions::legacy(), fileName::lessExt(), mesh, Foam::mkDir(), outputOptions::newFormatter(), fileName::path(), pointLabels(), Foam::reduce(), Foam::BitOps::sortedToc(), writeList(), and writeListParallel().
Referenced by if(), and writeTopoSet().
const Foam::Enum< Foam::vtk::fileTag > fileExtension |
File extension (without ".") for some vtk XML file content types.
Referenced by vtmWriter::append(), outputOptions::ext(), surfaceFieldWriter::ext(), lagrangianWriter::ext(), vtmWriter::ext(), if(), fileWriter::open(), and writePointSet().
const Foam::Enum< Foam::vtk::fileTag > fileContentVersions |
Version string for some vtk XML file content types.
Referenced by formatter::beginVTKFile().
const Foam::Enum< Foam::vtk::fileTag > fileTagNames |
Strings corresponding to the vtk XML tags.
Referenced by Foam::vtk::legacy::beginCellData(), Foam::vtk::legacy::beginLines(), Foam::vtk::legacy::beginPointData(), Foam::vtk::legacy::beginPoints(), Foam::vtk::legacy::beginPolys(), Foam::vtk::legacy::beginVerts(), formatter::beginVTKFile(), formatter::endTag(), fileWriter::exit_File(), formatter::openTag(), and formatter::tag().
const Foam::Enum< Foam::vtk::fileAttr > fileAttrNames |
Strings corresponding to the vtk XML attributes.
Referenced by formatter::xmlAttr().
const Foam::Enum< Foam::vtk::dataArrayAttr > dataArrayAttrNames |
Strings corresponding to the vtk XML DataArray attributes.
Referenced by formatter::beginDataArray().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.