41 #ifndef Foam_polySurface_H 42 #define Foam_polySurface_H 57 class polySurfaceGeoMesh;
58 class polySurfacePointGeoMesh;
60 template<
class Face>
class MeshedSurface;
125 return static_cast<faceList&
>(
static_cast<MeshReference&
>(*this));
171 bool doCheckIn =
false 182 bool doCheckIn =
false 193 bool doCheckIn =
false 220 virtual label
nFaces()
const 226 virtual label
size()
const 328 const word& fieldName,
335 template<
class GeoMeshType =
void>
342 template<
class GeoMeshType =
void>
346 template<
class DataType>
367 template<
class Type,
class GeoMeshType = polySurfaceGeoMesh>
370 const word& fieldName,
379 template<
class Type,
class GeoMeshType = polySurfaceGeoMesh>
382 const word& fieldName,
419 const regIOobject* polySurface::findFieldObject<polySurfaceGeoMesh>
421 const word& fieldName
427 const regIOobject* polySurface::findFieldObject<polySurfacePointGeoMesh>
436 const objectRegistry* polySurface::whichRegistry<polySurfaceGeoMesh>
438 const word& fieldName
444 const objectRegistry* polySurface::whichRegistry<polySurfaceGeoMesh>
446 const word& fieldName
453 polySurface::fieldData<polySurfacePointGeoMesh>()
const A surface mesh consisting of general polygon faces and capable of holding fields. ...
Data associated with points.
const Field< point_type > & faceAreas() const
Return face area vectors for patch.
const_iterator cend() const noexcept
Return const_iterator to end traversing the constant UList.
const vectorField & Sf() const
Return face area vectors (normals)
TypeName("polySurface")
Runtime type information.
void clearAddressing()
Clear addressing.
const objectRegistry & fieldData() const
Regular data are stored directly on the registry.
virtual const faceList & faces() const
Return faces.
Data associated with faces or points.
List< face > faceList
A List of faces.
void clearGeom()
Clear geometry.
A simple container for options an IOstream can normally have.
virtual label nPoints() const
Return the number of points.
const vectorField & Cf() const
Face centres.
const Field< scalar > & magFaceAreas() const
Return face area magnitudes for patch.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write - this is a no-op.
Abstract definition of a meshed surface defined by faces and points.
FieldAssociation queryFieldAssociation(const word &fieldName) const
Query the field association (FACE or POINT)
const objectRegistry & pointData() const
Point data are stored in a sub-registry.
StringType validate(const std::string &str, const UnaryPredicate &accept, const bool invert=false)
Return a copy of the input string with validated characters.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
virtual label size() const
Return number of faces.
A list of faces which address into the list of points.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
bool BoundaryMesh
Placeholder only, for GeoMesh.
faceList & storedFaces()
Non-const access to the faces.
vectorField pointField
pointField is a vectorField.
void clearPrimitives()
Clear primitive data (points, faces and cells)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
label nPointData() const
Number of entries on PointData sub-registry (if it exists)
A class for handling words, derived from Foam::string.
void clearFields()
Clear stored fields.
const Field< point_type > & faceCentres() const
Return face centres for patch.
FieldAssociation
Enumeration for the field association.
label nFaceData() const
Number of main entries, without PointData sub-registry.
const Field< point_type > & points() const noexcept
Return reference to global points.
iterator begin() noexcept
Return an iterator to begin traversing the UList.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const objectRegistry & faceData() const
Face data are stored directly on the registry.
const objectRegistry * whichRegistry(const word &fieldName) const
General finding of the registry with the field object (FACE or POINT).
const regIOobject * findFieldObject(const word &fieldName, const FieldAssociation association) const
Find the field object with the given name and required FieldAssociation (FACE or POINT).
Data associated with faces.
virtual const labelList & zoneIds() const
Const access to per-face zone/region information (demand-driven)
const scalarField & magSf() const
Return face area magnitudes.
virtual ~polySurface()
Destructor.
polySurface Mesh
Typedef required for GeoMesh.
void transfer(pointField &&points, faceList &&faces, labelList &&zoneIds=labelList())
Transfer the contents of the argument and annul the argument.
void copySurface(const pointField &points, const faceList &faces, bool unused=false)
Update with new contents.
static const word pointDataName
Name for point fields sub-registry.
pointField & storedPoints()
Non-const access to points.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
label size() const noexcept
The number of elements in the UList.
const_iterator cbegin() const noexcept
Return const_iterator to begin traversing the constant UList.
iterator end() noexcept
Return an iterator to end traversing the UList.
List< label > labelList
A List of labels.
Registry of regIOobjects.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
void storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named field as face or point data (template parameter).
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual label nFaces() const
Return the number of faces.
virtual const pointField & points() const
Return points.