36 #ifndef tecplotWriter_H
37 #define tecplotWriter_H
75 const string& varNames,
77 INTEGER4 tecplotFileType
84 const INTEGER4 strandID,
94 const INTEGER4 strandID,
102 const word& zoneName,
125 const bool nearCellValue,
139 template<
class GeoField>
151 template<
class GeoField>
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Pre-declare SubField and related Field type.
Generic GeometricField class.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling file names.
Mesh data needed to do the Finite Volume discretisation.
Write binary tecplot files using tecio.
tmp< Field< Type > > getFaceField(const SurfaceField< Type > &, const labelList &faceLabels) const
Get mixed field: fvsPatchField for boundary faces and.
tmp< Field< Type > > getPatchField(const bool nearCellValue, const VolField< Type > &vfld, const label patchi) const
Get either fvPatchField or patchInternalField.
static void getTecplotNames(const wordList &names, const INTEGER4 loc, string &varNames, DynamicList< INTEGER4 > &varLocation)
void writePolyhedralZone(const word &zoneName, const INTEGER4 strandID, const fvMesh &mesh, const List< INTEGER4 > &varLocArray, INTEGER4 nFaceNodes) const
Write mesh as polyhedral zone.
void writeConnectivity(const fvMesh &mesh) const
Write mesh.
void writeInit(const word &name, const string &varNames, const fileName &, INTEGER4 tecplotFileType) const
void writeField(const Field< Type > &fld) const
Write generic Field.
void writePolygonalZone(const word &zoneName, const INTEGER4 strandID, const indirectPrimitivePatch &pp, const List< INTEGER4 > &varLocArray) const
Write surface as polygonal zone.
void writeOrderedZone(const word &zoneName, INTEGER4 strandID, const label n, const List< INTEGER4 > &varLocArray) const
Write unordered data (or rather 1D ordered)
tecplotWriter(const Time &)
Construct from components.
static wordList getNames(const PtrList< GeoField > &)
A class for managing temporary objects.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.