Public Member Functions | Private Attributes
patchWriter Class Reference

Write patch fields. More...

Collaboration diagram for patchWriter:
Collaboration graph
[legend]

Public Member Functions

 patchWriter (const vtkMesh &, const bool binary, const bool nearCellValue, const fileName &, const labelList &patchIDs)
 Construct from components. More...
 
std::ofstream & os ()
 
label nPoints () const
 
label nFaces () const
 
void writePatchIDs ()
 Write cellIDs. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Write volFields. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &)
 Write pointFields. More...
 
template<class Type >
void write (const PrimitivePatchInterpolation< primitivePatch > &, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Interpolate and write volFields. More...
 
 patchWriter (const vtkMesh &, const bool binary, const bool nearCellValue, const fileName &, const labelList &patchIDs)
 Construct from components. More...
 
std::ofstream & os ()
 
label nPoints () const
 
label nFaces () const
 
void writePatchIDs ()
 Write cellIDs. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Write volFields. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &)
 Write pointFields. More...
 
template<class Type >
void write (const PrimitivePatchInterpolation< primitivePatch > &, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Interpolate and write volFields. More...
 
 patchWriter (const vtkMesh &, const bool binary, const bool nearCellValue, const fileName &, const labelList &patchIDs)
 Construct from components. More...
 
std::ofstream & os ()
 
label nPoints () const
 
label nFaces () const
 
void writePatchIDs ()
 Write cellIDs. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Write volFields. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &)
 Write pointFields. More...
 
template<class Type >
void write (const PrimitivePatchInterpolation< primitivePatch > &, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Interpolate and write volFields. More...
 
 patchWriter (const vtkMesh &, const bool binary, const bool nearCellValue, const fileName &, const labelList &patchIDs)
 Construct from components. More...
 
std::ofstream & os ()
 
label nPoints () const
 
label nFaces () const
 
void writePatchIDs ()
 Write cellIDs. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Write volFields. More...
 
template<class Type >
void write (const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &)
 Write pointFields. More...
 
template<class Type >
void write (const PrimitivePatchInterpolation< primitivePatch > &, const PtrList< GeometricField< Type, fvPatchField, volMesh > > &)
 Interpolate and write volFields. More...
 

Private Attributes

const vtkMeshvMesh_
 
const bool binary_
 
const bool nearCellValue_
 
const fileName fName_
 
const labelList patchIDs_
 
std::ofstream os_
 
label nPoints_
 
label nFaces_
 

Detailed Description

Write patch fields.

Source files

Source files

Source files

Source files

Definition at line 59 of file patchWriter.H.

Constructor & Destructor Documentation

◆ patchWriter() [1/4]

patchWriter ( const vtkMesh vMesh,
const bool  binary,
const bool  nearCellValue,
const fileName fName,
const labelList patchIDs 
)

◆ patchWriter() [2/4]

patchWriter ( const vtkMesh ,
const bool  binary,
const bool  nearCellValue,
const fileName ,
const labelList patchIDs 
)

Construct from components.

◆ patchWriter() [3/4]

patchWriter ( const vtkMesh ,
const bool  binary,
const bool  nearCellValue,
const fileName ,
const labelList patchIDs 
)

Construct from components.

◆ patchWriter() [4/4]

patchWriter ( const vtkMesh ,
const bool  binary,
const bool  nearCellValue,
const fileName ,
const labelList patchIDs 
)

Construct from components.

Member Function Documentation

◆ os() [1/4]

std::ofstream& os ( )
inline

Definition at line 94 of file patchWriter.H.

References patchWriter::os_.

◆ nPoints() [1/4]

label nPoints ( ) const
inline

Definition at line 99 of file patchWriter.H.

References patchWriter::nPoints_.

◆ nFaces() [1/4]

label nFaces ( ) const
inline

Definition at line 104 of file patchWriter.H.

References patchWriter::nFaces_.

◆ writePatchIDs() [1/4]

void writePatchIDs ( )

◆ write() [1/12]

void write ( const PtrList< GeometricField< Type, fvPatchField, volMesh > > &  flds)

Write volFields.

Definition at line 33 of file patchWriterTemplates.C.

References Foam::endl(), fld(), forAll, insert(), fvPatchField::patchInternalField(), and write().

Here is the call graph for this function:

◆ write() [2/12]

void write ( const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &  flds)

Write pointFields.

Definition at line 68 of file patchWriterTemplates.C.

References Foam::endl(), fld(), forAll, insert(), pointPatchField::patchInternalField(), and write().

Here is the call graph for this function:

◆ write() [3/12]

void write ( const PrimitivePatchInterpolation< primitivePatch > &  pInter,
const PtrList< GeometricField< Type, fvPatchField, volMesh > > &  flds 
)

Interpolate and write volFields.

Definition at line 97 of file patchWriterTemplates.C.

References Foam::endl(), PrimitivePatchInterpolation< Patch >::faceToPointInterpolate(), fld(), forAll, insert(), fvPatchField::patchInternalField(), and write().

Here is the call graph for this function:

◆ os() [2/4]

std::ofstream& os ( )
inline

Definition at line 94 of file patchWriter.H.

References patchWriter::os_.

◆ nPoints() [2/4]

label nPoints ( ) const
inline

Definition at line 99 of file patchWriter.H.

References patchWriter::nPoints_.

◆ nFaces() [2/4]

label nFaces ( ) const
inline

Definition at line 104 of file patchWriter.H.

References patchWriter::nFaces_.

◆ writePatchIDs() [2/4]

void writePatchIDs ( )

Write cellIDs.

◆ write() [4/12]

void write ( const PtrList< GeometricField< Type, fvPatchField, volMesh > > &  )

Write volFields.

◆ write() [5/12]

void write ( const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &  )

Write pointFields.

◆ write() [6/12]

void write ( const PrimitivePatchInterpolation< primitivePatch > &  ,
const PtrList< GeometricField< Type, fvPatchField, volMesh > > &   
)

Interpolate and write volFields.

◆ os() [3/4]

std::ofstream& os ( )
inline

Definition at line 94 of file patchWriter.H.

References patchWriter::os_.

◆ nPoints() [3/4]

label nPoints ( ) const
inline

Definition at line 99 of file patchWriter.H.

References patchWriter::nPoints_.

◆ nFaces() [3/4]

label nFaces ( ) const
inline

Definition at line 104 of file patchWriter.H.

References patchWriter::nFaces_.

◆ writePatchIDs() [3/4]

void writePatchIDs ( )

Write cellIDs.

◆ write() [7/12]

void write ( const PtrList< GeometricField< Type, fvPatchField, volMesh > > &  )

Write volFields.

◆ write() [8/12]

void write ( const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &  )

Write pointFields.

◆ write() [9/12]

void write ( const PrimitivePatchInterpolation< primitivePatch > &  ,
const PtrList< GeometricField< Type, fvPatchField, volMesh > > &   
)

Interpolate and write volFields.

◆ os() [4/4]

std::ofstream& os ( )
inline

Definition at line 94 of file patchWriter.H.

References patchWriter::os_.

◆ nPoints() [4/4]

label nPoints ( ) const
inline

Definition at line 99 of file patchWriter.H.

References patchWriter::nPoints_.

◆ nFaces() [4/4]

label nFaces ( ) const
inline

Definition at line 104 of file patchWriter.H.

References patchWriter::nFaces_.

◆ writePatchIDs() [4/4]

void writePatchIDs ( )

Write cellIDs.

◆ write() [10/12]

void write ( const PtrList< GeometricField< Type, fvPatchField, volMesh > > &  )

Write volFields.

◆ write() [11/12]

void write ( const PtrList< GeometricField< Type, pointPatchField, pointMesh > > &  )

Write pointFields.

◆ write() [12/12]

void write ( const PrimitivePatchInterpolation< primitivePatch > &  ,
const PtrList< GeometricField< Type, fvPatchField, volMesh > > &   
)

Interpolate and write volFields.

Field Documentation

◆ vMesh_

const vtkMesh & vMesh_
private

Definition at line 61 of file patchWriter.H.

Referenced by patchWriter::writePatchIDs().

◆ binary_

const bool binary_
private

Definition at line 63 of file patchWriter.H.

Referenced by patchWriter::writePatchIDs().

◆ nearCellValue_

const bool nearCellValue_
private

Definition at line 65 of file patchWriter.H.

◆ fName_

const fileName fName_
private

Definition at line 67 of file patchWriter.H.

◆ patchIDs_

const labelList patchIDs_
private

Definition at line 69 of file patchWriter.H.

Referenced by patchWriter::writePatchIDs().

◆ os_

std::ofstream os_
private

Definition at line 71 of file patchWriter.H.

Referenced by patchWriter::os(), and patchWriter::writePatchIDs().

◆ nPoints_

label nPoints_
private

Definition at line 73 of file patchWriter.H.

Referenced by patchWriter::nPoints().

◆ nFaces_

label nFaces_
private

Definition at line 75 of file patchWriter.H.

Referenced by patchWriter::nFaces(), and patchWriter::writePatchIDs().


The documentation for this class was generated from the following files: