Write patch fields. More...
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 vtkMesh & | vMesh_ |
const bool | binary_ |
const bool | nearCellValue_ |
const fileName | fName_ |
const labelList | patchIDs_ |
std::ofstream | os_ |
label | nPoints_ |
label | nFaces_ |
Write patch fields.
Definition at line 59 of file patchWriter.H.
patchWriter | ( | const vtkMesh & | vMesh, |
const bool | binary, | ||
const bool | nearCellValue, | ||
const fileName & | fName, | ||
const labelList & | patchIDs | ||
) |
Construct from components.
Definition at line 32 of file patchWriter.C.
References DynamicList::append(), polyMesh::boundaryMesh(), Foam::endl(), f(), forAll, insert(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), mesh, Foam::name(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), patches, List::size(), and write().
patchWriter | ( | const vtkMesh & | , |
const bool | binary, | ||
const bool | nearCellValue, | ||
const fileName & | , | ||
const labelList & | patchIDs | ||
) |
Construct from components.
patchWriter | ( | const vtkMesh & | , |
const bool | binary, | ||
const bool | nearCellValue, | ||
const fileName & | , | ||
const labelList & | patchIDs | ||
) |
Construct from components.
patchWriter | ( | const vtkMesh & | , |
const bool | binary, | ||
const bool | nearCellValue, | ||
const fileName & | , | ||
const labelList & | patchIDs | ||
) |
Construct from components.
|
inline |
Definition at line 94 of file patchWriter.H.
References patchWriter::os_.
|
inline |
Definition at line 99 of file patchWriter.H.
References patchWriter::nPoints_.
|
inline |
Definition at line 104 of file patchWriter.H.
References patchWriter::nFaces_.
void writePatchIDs | ( | ) |
Write cellIDs.
Definition at line 119 of file patchWriter.C.
References patchWriter::binary_, polyMesh::boundaryMesh(), Foam::endl(), forAll, writeFuns::insert(), mesh, vtkMesh::mesh(), patchWriter::nFaces_, patchWriter::os_, patchWriter::patchIDs_, patchWriter::vMesh_, and writeFuns::write().
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().
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().
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().
|
inline |
Definition at line 94 of file patchWriter.H.
References patchWriter::os_.
|
inline |
Definition at line 99 of file patchWriter.H.
References patchWriter::nPoints_.
|
inline |
Definition at line 104 of file patchWriter.H.
References patchWriter::nFaces_.
void writePatchIDs | ( | ) |
Write cellIDs.
void write | ( | const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | ) |
Write volFields.
void write | ( | const PtrList< GeometricField< Type, pointPatchField, pointMesh > > & | ) |
Write pointFields.
void write | ( | const PrimitivePatchInterpolation< primitivePatch > & | , |
const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | |||
) |
Interpolate and write volFields.
|
inline |
Definition at line 94 of file patchWriter.H.
References patchWriter::os_.
|
inline |
Definition at line 99 of file patchWriter.H.
References patchWriter::nPoints_.
|
inline |
Definition at line 104 of file patchWriter.H.
References patchWriter::nFaces_.
void writePatchIDs | ( | ) |
Write cellIDs.
void write | ( | const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | ) |
Write volFields.
void write | ( | const PtrList< GeometricField< Type, pointPatchField, pointMesh > > & | ) |
Write pointFields.
void write | ( | const PrimitivePatchInterpolation< primitivePatch > & | , |
const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | |||
) |
Interpolate and write volFields.
|
inline |
Definition at line 94 of file patchWriter.H.
References patchWriter::os_.
|
inline |
Definition at line 99 of file patchWriter.H.
References patchWriter::nPoints_.
|
inline |
Definition at line 104 of file patchWriter.H.
References patchWriter::nFaces_.
void writePatchIDs | ( | ) |
Write cellIDs.
void write | ( | const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | ) |
Write volFields.
void write | ( | const PtrList< GeometricField< Type, pointPatchField, pointMesh > > & | ) |
Write pointFields.
void write | ( | const PrimitivePatchInterpolation< primitivePatch > & | , |
const PtrList< GeometricField< Type, fvPatchField, volMesh > > & | |||
) |
Interpolate and write volFields.
|
private |
Definition at line 61 of file patchWriter.H.
Referenced by patchWriter::writePatchIDs().
|
private |
Definition at line 63 of file patchWriter.H.
Referenced by patchWriter::writePatchIDs().
|
private |
Definition at line 65 of file patchWriter.H.
|
private |
Definition at line 67 of file patchWriter.H.
|
private |
Definition at line 69 of file patchWriter.H.
Referenced by patchWriter::writePatchIDs().
|
private |
Definition at line 71 of file patchWriter.H.
Referenced by patchWriter::os(), and patchWriter::writePatchIDs().
|
private |
Definition at line 73 of file patchWriter.H.
Referenced by patchWriter::nPoints().
|
private |
Definition at line 75 of file patchWriter.H.
Referenced by patchWriter::nFaces(), and patchWriter::writePatchIDs().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.