Foam::vtkWriteOps Namespace Reference

Functions

void swapWord (label &word32)
 Swap halves of word. More...
 
void swapWords (const label nWords, label *words32)
 Swap halves of word. More...
 
void writeHeader (std::ostream &, const bool isBinary, const std::string &title)
 Write header. More...
 
void writeCellDataHeader (std::ostream &, const label nCells, const label nFields)
 
void writePointDataHeader (std::ostream &, const label nPoints, const label nFields)
 
void write (std::ostream &os, const bool binary, List< floatScalar > &fField)
 Write floats ascii or binary. More...
 
void write (std::ostream &, const bool, DynamicList< floatScalar > &)
 Write floats ascii or binary. More...
 
void write (std::ostream &, const bool, labelList &)
 Write floats ascii or binary. More...
 
void write (std::ostream &, const bool, DynamicList< label > &)
 Write floats ascii or binary. More...
 
void insert (const scalar, DynamicList< floatScalar > &)
 Append scalar to given DynamicList. More...
 
void insert (const point &, DynamicList< floatScalar > &)
 Append point to given DynamicList. More...
 
void insert (const sphericalTensor &, DynamicList< floatScalar > &)
 Append sphericalTensor to given DynamicList. More...
 
void insert (const symmTensor &, DynamicList< floatScalar > &)
 Append symmTensor to given DynamicList. More...
 
void insert (const tensor &, DynamicList< floatScalar > &)
 Append tensor to given DynamicList. More...
 
void insert (const labelList &, DynamicList< label > &)
 Append elements to DynamicList. More...
 
template<class Type >
void insert (const List< Type > &, DynamicList< floatScalar > &)
 Append elements to DynamicList. More...
 
void insert (const labelList &map, const List< scalar > &source, DynamicList< floatScalar > &)
 Append elements of scalarList to given DynamicList using map. More...
 
void insert (const List< point > &source, DynamicList< floatScalar > &)
 Append points to given DynamicList of floats. More...
 
void insert (const labelList &map, const List< point > &source, DynamicList< floatScalar > &)
 Append points to given DynamicList of floats using map. More...
 
void writePatch (const bool binary, const word &setName, const primitiveFacePatch &fp, const word &fieldName, labelList &fieldValues, const fileName &fileName)
 Write patch. More...
 
void writePointSet (const bool binary, const primitiveMesh &mesh, const topoSet &set, const fileName &fileName)
 Write pointSet to vtk polydata file. More...
 
template<class Type >
void write (std::ostream &, const bool binary, const DimensionedField< Type, volMesh > &, const vtkMesh &)
 Write volField with cell values (including decomposed cells) More...
 
template<class Type >
void write (std::ostream &, const bool binary, const GeometricField< Type, pointPatchField, pointMesh > &, const vtkMesh &)
 Write pointField on all mesh points. Interpolate to cell centre. More...
 
template<class Type >
void write (std::ostream &, const bool binary, const GeometricField< Type, fvPatchField, volMesh > &, const GeometricField< Type, pointPatchField, pointMesh > &, const vtkMesh &)
 Write interpolated field on points and original cell values on. More...
 
template<class Type , template< class > class PatchField, class GeoMesh >
void write (std::ostream &, const bool binary, const PtrList< GeometricField< Type, PatchField, GeoMesh >> &, const vtkMesh &)
 Write generic GeometricFields. More...
 
template<class Type >
void write (std::ostream &, const bool binary, const volPointInterpolation &, const PtrList< GeometricField< Type, fvPatchField, volMesh >> &, const vtkMesh &)
 Interpolate and write volFields. More...
 

Function Documentation

◆ swapWord()

void Foam::vtkWriteOps::swapWord ( label word32)

Swap halves of word.

◆ swapWords()

void Foam::vtkWriteOps::swapWords ( const label  nWords,
label words32 
)

Swap halves of word.

◆ writeHeader()

◆ writeCellDataHeader()

void Foam::vtkWriteOps::writeCellDataHeader ( std::ostream &  ,
const label  nCells,
const label  nFields 
)

◆ writePointDataHeader()

void Foam::vtkWriteOps::writePointDataHeader ( std::ostream &  ,
const label  nPoints,
const label  nFields 
)

◆ write() [1/9]

void Foam::vtkWriteOps::write ( std::ostream &  os,
const bool  binary,
List< floatScalar > &  fField 
)

Write floats ascii or binary.

If binary optionally in-place swaps argument

Referenced by meshRefinement::balanceAndRefine(), interpolationCellPointWallModified< Type >::calcPointField(), codedFixedValueFvPatchField< Type >::clone(), codedFixedValuePointPatchField< Type >::clone(), codedMixedFvPatchField< Type >::clone(), Pstream::combineGather(), Pstream::combineScatter(), processorLduInterface::compressedSend(), constAnIsoSolidTransport< Thermo >::constAnIsoSolidTransport(), constIsoSolidTransport< Thermo >::constIsoSolidTransport(), constTransport< Thermo >::constTransport(), fvFieldDecomposer::decomposeFields(), mapDistributeBase::distribute(), ensightGeoFile::ensightGeoFile(), Pstream::exchange(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), GAMGSolver::GAMGSolver(), globalIndex::gather(), processorFvPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), Foam::stringOps::inplaceExpand(), dictionary::isNull(), Pstream::listCombineGather(), Pstream::listCombineScatter(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), masterUncollatedFileOperation::readDirOp::operator()(), regionModelFunctionObject::postEvolveRegion(), KinematicParcel< ParcelType >::readFields(), CollidingParcel< ParcelType >::readFields(), molecule::readFields(), SprayParcel< ParcelType >::readFields(), Foam::reconstructLagrangianPositions(), codedMixedFvPatchField< Type >::redirectPatchField(), meshRefinement::refineAndBalance(), globalIndex::scatter(), processorLduInterface::send(), LUscalarMatrix::solve(), time::time(), timeVaryingMappedFvPatchField< Type >::time(), triSurface::triSurfInstance(), thermo< Thermo, Type >::typeName(), AC3DsurfaceFormat< Face >::write(), thermophysicalFunction::write(), specieReactionRates< ChemistryModelType >::write(), OBJstream::write(), processorField::write(), starcdSurfaceWriter::write(), CloudSubModelBase< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::write(), edgeMeshFormat::write(), DispersionRASModel< CloudType >::write(), IOOutputFilter< OutputFilter >::write(), cellMotionFvPatchField< Type >::write(), timeVaryingAlphaContactAngleFvPatchScalarField::write(), constantAlphaContactAngleFvPatchScalarField::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), gradientEnergyFvPatchScalarField::write(), kqRWallFunctionFvPatchField< Type >::write(), fixedNormalSlipPointPatchField< Type >::write(), fixedFluxPressureFvPatchScalarField::write(), alphaContactAngleFvPatchScalarField::write(), solidBodyMotionDisplacementPointPatchVectorField::write(), perfectGas< Specie >::write(), rhoConst< Specie >::write(), sutherlandTransport< Thermo >::write(), writer< Foam::SphericalTensor >::write(), tabulatedTransport< Thermo >::write(), uniformFixedValuePointPatchField< Type >::write(), fixedMeanFvPatchField< Type >::write(), valuePointPatchField< vector >::write(), WLFTransport< Thermo >::write(), calculatedFvPatchField< Type >::write(), eConstThermo< EquationOfState >::write(), hConstThermo< EquationOfState >::write(), freestreamFvPatchField< Type >::write(), uniformFixedValueFvPatchField< Type >::write(), incompressiblePerfectGas< Specie >::write(), uniformFixedGradientFvPatchField< Type >::write(), polynomialTransport< Thermo, PolySize >::write(), hTabulatedThermo< EquationOfState >::write(), fixedMeanOutletInletFvPatchField< Type >::write(), linear< Type >::write(), mappedFixedInternalValueFvPatchField< Type >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), icoTabulated< Specie >::write(), outletInletFvPatchField< Type >::write(), perfectFluid< Specie >::write(), uniformJumpFvPatchField< Type >::write(), uniformJumpAMIFvPatchField< Type >::write(), outletMappedUniformInletFvPatchField< Type >::write(), waveInletOutletFvPatchField< Type >::write(), temperatureDependentAlphaContactAngleFvPatchScalarField::write(), PengRobinsonGas< Specie >::write(), variableHeightFlowRateInletVelocityFvPatchVectorField::write(), adiabaticPerfectFluid< Specie >::write(), inletOutletFvPatchField< Type >::write(), fixedJumpAMIFvPatchField< scalar >::write(), logPolynomialTransport< Thermo, PolySize >::write(), Boussinesq< Specie >::write(), fixedJumpFvPatchField< scalar >::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), wavePressureFvPatchScalarField::write(), fixedValueFvPatchField< scalar >::write(), wideBandDiffusiveRadiationMixedFvPatchScalarField::write(), cyclicFvPatchField< Type >::write(), MarshakRadiationFvPatchScalarField::write(), janafThermo< EquationOfState >::write(), icoPolynomial< Specie, PolySize >::write(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::write(), MarshakRadiationFixedTemperatureFvPatchScalarField::write(), surfaceDisplacementPointPatchVectorField::write(), uniformInletOutletFvPatchField< Type >::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), cyclicAMIFvPatchField< Type >::write(), fixedNormalSlipFvPatchField< Type >::write(), directionMixedFvPatchField< Type >::write(), partialSlipFvPatchField< Type >::write(), greyDiffusiveRadiationMixedFvPatchScalarField::write(), codedFixedValueFvPatchField< Type >::write(), mappedFixedValueFvPatchField< Type >::write(), slicedFvPatchField< Type >::write(), ReversibleReaction< ReactionThermo, ReactionRate >::write(), IrreversibleReaction< ReactionThermo, ReactionRate >::write(), codedFixedValuePointPatchField< Type >::write(), waveAlphaFvPatchScalarField::write(), fixedProfileFvPatchField< Type >::write(), rPolynomial< Specie >::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), codedMixedFvPatchField< Type >::write(), coupledFvPatchField< Type >::write(), ePolynomialThermo< EquationOfState, PolySize >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), NonEquilibriumReversibleReaction< ReactionThermo, ReactionRate >::write(), mappedFieldFvPatchField< Type >::write(), fanPressureJumpFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), thermalBaffle1DFvPatchScalarField< solidType >::write(), advectiveFvPatchField< Type >::write(), waveVelocityFvPatchVectorField::write(), fixedGradientFvPatchField< Type >::write(), UnsortedMeshedSurface< Face >::write(), timeVaryingMappedFixedValueFvPatchField< Type >::write(), turbulentInletFvPatchField< Type >::write(), MeshedSurface< Foam::face >::write(), mixedFvPatchField< scalar >::write(), thermo< Thermo, Type >::write(), externalCoupledMixedFvPatchField< scalar >::write(), meshRefinement::write(), Foam::writeCellGraph(), writer< Foam::SphericalTensor >::writeCoord(), KinematicParcel< ParcelType >::writeFields(), CollidingParcel< ParcelType >::writeFields(), molecule::writeFields(), SprayParcel< ParcelType >::writeFields(), Foam::writePatchGraph(), OBJstream::writeQuoted(), writer< Foam::SphericalTensor >::writeTable(), and volFieldValue::writeValues().

◆ write() [2/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  ,
DynamicList< floatScalar > &   
)

Write floats ascii or binary.

If binary optionally in-place swaps argument

◆ write() [3/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  ,
labelList  
)

Write floats ascii or binary.

If binary optionally in-place swaps argument

◆ write() [4/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  ,
DynamicList< label > &   
)

Write floats ascii or binary.

If binary optionally in-place swaps argument

◆ insert() [1/10]

◆ insert() [2/10]

void Foam::vtkWriteOps::insert ( const point ,
DynamicList< floatScalar > &   
)

Append point to given DynamicList.

◆ insert() [3/10]

void Foam::vtkWriteOps::insert ( const sphericalTensor ,
DynamicList< floatScalar > &   
)

Append sphericalTensor to given DynamicList.

◆ insert() [4/10]

void Foam::vtkWriteOps::insert ( const symmTensor ,
DynamicList< floatScalar > &   
)

Append symmTensor to given DynamicList.

◆ insert() [5/10]

void Foam::vtkWriteOps::insert ( const tensor ,
DynamicList< floatScalar > &   
)

Append tensor to given DynamicList.

◆ insert() [6/10]

void Foam::vtkWriteOps::insert ( const labelList ,
DynamicList< label > &   
)

Append elements to DynamicList.

◆ insert() [7/10]

void Foam::vtkWriteOps::insert ( const List< Type > &  ,
DynamicList< floatScalar > &   
)

Append elements to DynamicList.

◆ insert() [8/10]

void Foam::vtkWriteOps::insert ( const labelList map,
const List< scalar > &  source,
DynamicList< floatScalar > &   
)

Append elements of scalarList to given DynamicList using map.

◆ insert() [9/10]

void Foam::vtkWriteOps::insert ( const List< point > &  source,
DynamicList< floatScalar > &   
)

Append points to given DynamicList of floats.

◆ insert() [10/10]

void Foam::vtkWriteOps::insert ( const labelList map,
const List< point > &  source,
DynamicList< floatScalar > &   
)

Append points to given DynamicList of floats using map.

◆ writePatch()

void Foam::vtkWriteOps::writePatch ( const bool  binary,
const word setName,
const primitiveFacePatch fp,
const word fieldName,
labelList fieldValues,
const fileName fileName 
)

Write patch.

◆ writePointSet()

void Foam::vtkWriteOps::writePointSet ( const bool  binary,
const primitiveMesh mesh,
const topoSet set,
const fileName fileName 
)

Write pointSet to vtk polydata file.

Only one data which is original pointID.

◆ write() [5/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  binary,
const DimensionedField< Type, volMesh > &  ,
const vtkMesh  
)

Write volField with cell values (including decomposed cells)

◆ write() [6/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  binary,
const GeometricField< Type, pointPatchField, pointMesh > &  ,
const vtkMesh  
)

Write pointField on all mesh points. Interpolate to cell centre.

for decomposed cell centres.

◆ write() [7/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  binary,
const GeometricField< Type, fvPatchField, volMesh > &  ,
const GeometricField< Type, pointPatchField, pointMesh > &  ,
const vtkMesh  
)

Write interpolated field on points and original cell values on.

decomposed cell centres.

◆ write() [8/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  binary,
const PtrList< GeometricField< Type, PatchField, GeoMesh >> &  ,
const vtkMesh  
)

Write generic GeometricFields.

◆ write() [9/9]

void Foam::vtkWriteOps::write ( std::ostream &  ,
const bool  binary,
const volPointInterpolation ,
const PtrList< GeometricField< Type, fvPatchField, volMesh >> &  ,
const vtkMesh  
)

Interpolate and write volFields.