43#ifndef Foam_MeshedSurfaceProxy_H
44#define Foam_MeshedSurfaceProxy_H
137 (
name, surf, streamOpt, options)
154 const word& fileType,
188 return faceMap_.size() == faces_.size();
194 return faceIds_.size() == faces_.size();
219 const word& fileType,
224 write(
name, fileType, *
this, streamOpt, options);
A simple container for options an IOstream can normally have.
Face face_type
The face type.
virtual void write(const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
Write to file, choosing writer based on the file extension.
const UList< surfZone > & surfZones() const noexcept
Const access to the surface zones.
static bool canWriteType(const word &fileType, bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
ClassName("MeshedSurfaceProxy")
Declare type-name (with debug switch).
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
const UList< Face > & surfFaces() const noexcept
Return const access to the faces.
declareMemberFunctionSelectionTable(void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf, IOstreamOption streamOpt, const dictionary &options),(name, surf, streamOpt, options))
virtual void write(const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
Write to file with given format type.
const labelUList & faceIds() const noexcept
Const access to the faceIds, zero-sized when unused.
virtual ~MeshedSurfaceProxy()=default
Destructor.
const labelUList & faceMap() const noexcept
Const access to the faceMap, zero-sized when unused.
const pointField & points() const noexcept
Return const access to the points.
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.
label nTriangles() const
Count number of triangles.
label size() const noexcept
The surface size is the number of faces.
bool useFaceIds() const noexcept
Possible to use faceIds?
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.
point point_type
The point type.
bool useFaceMap() const noexcept
Can/should use faceMap?
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static const UList< T > & null() noexcept
Return a null UList (reference to a nullObject). Behaves like an empty UList.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
A class for handling file names.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
Macros to ease declaration of member function selection tables.
#define declareMemberFunctionSelectionTable(returnType, baseType, funcName, argNames, argList, parListUnused)
Declare a run-time member-function selection (variables and adder classes).
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
vector point
Point is a vector.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
vectorField pointField
pointField is a vectorField.
UList< label > labelUList
A UList of labels.
Macros to ease declaration of run-time selection tables.