Go to the documentation of this file.
58 class polySurfaceGeoMesh;
59 class polySurfacePointGeoMesh;
61 template<
class Face>
class MeshedSurface;
170 const word& surfName,
172 bool doCheckIn =
false
183 bool doCheckIn =
false
194 bool doCheckIn =
false
221 virtual label
nFaces()
const
223 return MeshReference::size();
227 virtual label
size()
const
229 return MeshReference::size();
329 const word& fieldName,
336 template<
class GeoMeshType =
void>
343 template<
class GeoMeshType =
void>
347 template<
class DataType>
368 template<
class Type,
class GeoMeshType = polySurfaceGeoMesh>
371 const word& fieldName,
380 template<
class Type,
class GeoMeshType = polySurfaceGeoMesh>
383 const word& fieldName,
420 const regIOobject* polySurface::findFieldObject<polySurfaceGeoMesh>
422 const word& fieldName
428 const regIOobject* polySurface::findFieldObject<polySurfacePointGeoMesh>
430 const word& fieldName
437 const objectRegistry* polySurface::whichRegistry<polySurfaceGeoMesh>
439 const word& fieldName
445 const objectRegistry* polySurface::whichRegistry<polySurfaceGeoMesh>
447 const word& fieldName
454 polySurface::fieldData<polySurfacePointGeoMesh>()
const
const Field< point_type > & points() const noexcept
Return reference to global points.
List< label > labelList
A List of labels.
virtual const labelList & zoneIds() const
Const access to per-face zone/region information (demand-driven)
const scalarField & magSf() const
Return face area magnitudes.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void clearFields()
Clear stored fields.
Data associated with faces.
const faceList & storedFaces() const
Const access to the faces.
label nFaceData() const
Number of main entries, without PointData sub-registry.
A class for handling words, derived from Foam::string.
constexpr auto begin(C &c) -> decltype(c.begin())
Return iterator to the beginning of the container c.
const regIOobject * findFieldObject(const word &fieldName, const FieldAssociation association) const
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
const objectRegistry & faceData() const
Face data are stored directly on the registry.
virtual ~polySurface()
Destructor.
FieldAssociation
Enumeration for the field association.
void transfer(pointField &&points, faceList &&faces, labelList &&zoneIds=labelList())
Transfer the contents of the argument and annul the argument.
Abstract definition of a meshed surface defined by faces and points.
const vectorField & Cf() const
Face centres.
void storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named field as face or point data (template parameter).
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
void clearGeom()
Clear geometry.
TypeName("polySurface")
Runtime type information.
Registry of regIOobjects.
A surface mesh consisting of general polygon faces and capable of holding fields.
void copySurface(const pointField &points, const faceList &faces, bool unused=false)
Update with new contents.
const Field< point_type > & faceAreas() const
Return face area vectors for patch.
virtual label nFaces() const
Return the number of faces.
faceList & storedFaces()
Non-const access to the faces.
virtual const pointField & points() const
Return points.
The IOstreamOption is a simple container for options an IOstream can normally have.
pointField & storedPoints()
Non-const access to points.
static const word pointDataName
Name for point fields sub-registry.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
constexpr auto cend(const C &c) -> decltype(c.end())
Return const_iterator to the end of the container c.
FieldAssociation queryFieldAssociation(const word &fieldName) const
Query the field association (FACE or POINT)
const objectRegistry & fieldData() const
Regular data are stored directly on the registry.
Data associated with points.
bool BoundaryMesh
Placeholder only, for GeoMesh.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
constexpr auto cbegin(const C &c) -> decltype(c.begin())
Return const_iterator to the beginning of the container c.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Data associated with faces or points.
void clearAddressing()
Clear addressing.
const Field< scalar > & magFaceAreas() const
Return face area magnitudes for patch.
const objectRegistry & pointData() const
Point data are stored in a sub-registry.
virtual const faceList & faces() const
Return faces.
virtual label size() const
Return number of faces.
void clearPrimitives()
Clear primitive data (points, faces and cells)
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write - this is a no-op.
StringType validate(const std::string &str, const UnaryPredicate &accept, const bool invert=false)
Return a copy of the input string with validated characters.
polySurface Mesh
Typedef required for GeoMesh.
const Field< point_type > & faceCentres() const
Return face centres for patch.
virtual label nPoints() const
Return the number of points.
const objectRegistry * whichRegistry(const word &fieldName) const
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
A list of faces which address into the list of points.
label nPointData() const
Number of entries on PointData sub-registry (if it exists)
The field association for mesh (patch/volume) values.
const vectorField & Sf() const
Return face area vectors (normals)