convertVolumeFields.H File Reference

Code chunk for converting volume and dimensioned fields included by foamToVTK. More...

Go to the source code of this file.

Functions

fileName vtmOutputBase (outputDir/regionDir/vtkName+timeDesc)
 
 if (doInternal)
 
 if (doBoundary)
 
 if (oneBoundary &&patchIds.size())
 
else if (patchIds.size())
 
 writeAllDimFields (internalWriter, meshProxy, objects, true)
 
 if (doPointValues)
 
 if (internalWriter)
 
 for (vtk::patchWriter &writer :patchWriters)
 
pInterp clear ()
 
 if (Pstream::master())
 

Variables

const label nVolFields
 
const label nDimFields
 
label nPointFields
 
vtk::vtmWriter vtmWriter
 
vtk::vtmWriter vtmBoundaries
 
autoPtr< vtk::internalWriter > internalWriter
 
autoPtr< volPointInterpolation > pInterp
 
const polyBoundaryMesh & patches = mesh.boundaryMesh()
 
PtrList< vtk::patchWriter > patchWriters
 
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
 
labelList patchIds
 

Detailed Description

Code chunk for converting volume and dimensioned fields included by foamToVTK.

Original source file convertVolumeFields.H

Definition in file convertVolumeFields.H.

Function Documentation

◆ vtmOutputBase()

fileName vtmOutputBase ( outputDir/regionDir/vtkName+  timeDesc)

Referenced by if().

Here is the caller graph for this function:

◆ if() [1/7]

if ( doInternal  )

Definition at line 83 of file convertVolumeFields.H.

References args, internalWriter, mesh, nPointFields, pInterp, argList::relativePath(), vtmOutputBase(), and vtmWriter.

Here is the call graph for this function:

◆ if() [2/7]

if ( doBoundary  )

Definition at line 144 of file convertVolumeFields.H.

References patches, and patchIds.

◆ if() [3/7]

if ( oneBoundary &&patchIds.  size())

Definition at line 149 of file convertVolumeFields.H.

References args, patchIds, patchInterps, patchWriters, regionDir, argList::relativePath(), vtmOutputBase(), vtmWriter, and writer().

Here is the call graph for this function:

◆ if() [4/7]

else if ( patchIds.  size())

Definition at line 191 of file convertVolumeFields.H.

References args, nPatchWriters, patches, patchId(), patchIds, patchInterps, patchWriters, regionDir, argList::relativePath(), vtmBoundaries, vtmOutputBase(), vtmWriter, and writer().

Here is the call graph for this function:

◆ writeAllDimFields()

writeAllDimFields ( internalWriter  ,
meshProxy  ,
objects  ,
true   
)

Referenced by if().

Here is the caller graph for this function:

◆ if() [5/7]

if ( doPointValues  )

Definition at line 335 of file convertVolumeFields.H.

References forAll, internalWriter, nDimFields, nPointFields, nVolFields, patchInterps, patchWriters, pInterp, and writeAllDimFields().

Here is the call graph for this function:

◆ if() [6/7]

if ( internalWriter  )

Definition at line 401 of file convertVolumeFields.H.

References internalWriter.

◆ for()

for ( vtk::patchWriter &writer :patchWriters  )

Definition at line 406 of file convertVolumeFields.H.

References writer().

Here is the call graph for this function:

◆ clear()

pInterp clear ( )

◆ if() [7/7]

if ( Pstream::master()  )

Definition at line 418 of file convertVolumeFields.H.

References outputName(), regionDir, regionName, vtmBoundaries, vtmOutputBase(), and vtmWriter.

Here is the call graph for this function:

Variable Documentation

◆ nVolFields

const label nVolFields
Initial value:
=
(
(doInternal || doBoundary)
? objects.count(stringListOps::foundOp<word>(fieldTypes::volume))
: 0
)

Definition at line 37 of file convertVolumeFields.H.

Referenced by if().

◆ nDimFields

const label nDimFields
Initial value:
=
(
(doInternal || doBoundary)
? objects.count(stringListOps::foundOp<word>(fieldTypes::internal))
: 0
)

Definition at line 44 of file convertVolumeFields.H.

Referenced by if(), and vtkWrite::write().

◆ nPointFields

label nPointFields
Initial value:
=
(
doPointValues
? objects.count(stringListOps::foundOp<word>(fieldTypes::point))
: 0
)

Definition at line 51 of file convertVolumeFields.H.

Referenced by if().

◆ vtmWriter

vtk::vtmWriter vtmWriter

Definition at line 72 of file convertVolumeFields.H.

Referenced by if(), and vtkWrite::write().

◆ vtmBoundaries

vtk::vtmWriter vtmBoundaries

Definition at line 75 of file convertVolumeFields.H.

Referenced by if(), and vtkWrite::write().

◆ internalWriter

autoPtr<vtk::internalWriter> internalWriter

Definition at line 78 of file convertVolumeFields.H.

Referenced by if().

◆ pInterp

◆ patches

const polyBoundaryMesh& patches = mesh.boundaryMesh()

Definition at line 138 of file convertVolumeFields.H.

Referenced by if().

◆ patchWriters

PtrList<vtk::patchWriter> patchWriters

Definition at line 140 of file convertVolumeFields.H.

Referenced by if().

◆ patchInterps

PtrList<PrimitivePatchInterpolation<primitivePatch> > patchInterps

◆ patchIds

labelList patchIds

Definition at line 143 of file convertVolumeFields.H.

Referenced by if().