Go to the documentation of this file.
38 #ifndef writeVolFields_H
39 #define writeVolFields_H
50 template<
class GeoField>
63 const auto&
field = tfield();
82 template<
class GeoField>
99 const auto&
field = tfield();
123 template<
class GeoField>
139 writeVolField<GeoField>
143 getField<GeoField>(proxy, objects, fieldName, syncPar)
155 template<
class GeoField>
175 writeVolField<GeoField>
179 getField<GeoField>(proxy, objects, fieldName, syncPar)
196 const fvMeshSubsetProxy& proxy,
197 const IOobjectList& objects,
201 #undef foamToVtk_WRITE_FIELD
202 #define foamToVtk_WRITE_FIELD(FieldType) \
203 writeVolFields<FieldType> \
219 #undef foamToVTK_WRITE_FIELD
227 const autoPtr<volPointInterpolation>&
pInterp,
230 const UPtrList<PrimitivePatchInterpolation<primitivePatch>>&
patchInterps,
232 const fvMeshSubsetProxy& proxy,
233 const IOobjectList& objects,
237 #undef foamToVtk_WRITE_FIELD
238 #define foamToVtk_WRITE_FIELD(FieldType) \
239 writeVolFields<FieldType> \
241 internalWriter, pInterp, \
242 patchWriters, patchInterps, \
256 #undef foamToVtk_WRITE_FIELD
GeometricField< tensor, fvPatchField, volMesh > volTensorField
A class for handling words, derived from Foam::string.
void clear() const noexcept
A class for managing temporary objects.
autoPtr< vtk::internalWriter > internalWriter
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
wordList sortedNames() const
PtrList< vtk::patchWriter > patchWriters
bool writeVolField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tfield, const bool nearCellValue=false)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Base class for graphics format writing. Entry points are.
List of IOobjects with searching and retrieving facilities.
label writeVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
Helper routines for reading a field or fields, optionally with a mesh subset (using fvMeshSubsetProxy...
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
GeometricField< vector, fvPatchField, volMesh > volVectorField
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
unsigned int count(const UList< bool > &bools, const bool val=true)
#define foamToVtk_WRITE_FIELD(FieldType)
GeometricField< sphericalTensor, fvPatchField, volMesh > volSphericalTensorField
bool valid() const noexcept
Generic GeometricField class.
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
autoPtr< volPointInterpolation > pInterp