Go to the documentation of this file.
43 #ifndef MeshedSurfaceProxy_H
44 #define MeshedSurfaceProxy_H
58 template<
class Face>
class MeshedSurface;
65 class MeshedSurfaceProxy
67 public fileFormats::surfaceFormatsCore
73 const UList<Face>& faces_;
75 const UList<surfZone>& zones_;
77 const UList<label>& faceMap_;
79 const UList<label>& faceIds_;
137 (
name, surf, streamOpt, options)
154 const word& fileType,
168 return faces_.size();
206 return faceMap_.size() == faces_.size();
212 return faceIds_.size() == faces_.size();
237 const word& fileType,
242 write(
name, fileType, *
this, streamOpt, options);
ClassName("MeshedSurfaceProxy")
Declare type-name (with debug switch)
vectorField pointField
pointField is a vectorField.
MeshedSurfaceProxy(const pointField &pointLst, const UList< Face > &faceLst, const UList< surfZone > &zoneLst=UList< surfZone >::null(), const labelUList &faceMap=labelUList::null(), const labelUList &faceIdLst=labelUList::null())
Construct from component references.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
A class for handling file names.
bool useFaceMap() const
Can/should use faceMap?
label nTriangles() const
Count number of triangles.
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
label size() const
The surface size is the number of faces.
point point_type
The point type.
const pointField & points() const
Return const access to the points.
static void write(const fileName &name, const MeshedSurfaceProxy &surf, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
Write to file, select based on its extension.
virtual ~MeshedSurfaceProxy()=default
Destructor.
bool useFaceIds() const
Possible to use faceIds?
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const labelUList & faceMap() const
Const access to the faceMap, zero-sized when unused.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
The IOstreamOption is a simple container for options an IOstream can normally have.
declareMemberFunctionSelectionTable(void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf, IOstreamOption streamOpt, const dictionary &options),(name, surf, streamOpt, options))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const labelUList & faceIds() const
Const access to the faceIds, zero-sized when unused.
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
Face face_type
The face type.
Macros to ease declaration of run-time selection tables.
static const word null
An empty word.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Macros to ease declaration of member function selection tables.
const UList< Face > & surfFaces() const
Return const access to the faces.
static const UList< T > & null()
Return a UList reference to a nullObject.
static bool canWriteType(const word &fileType, bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
const UList< surfZone > & surfZones() const
Const access to the surface zones.