58template<
class Face>
class MeshedSurface;
110 void operator=(
const surfMesh&) =
delete;
222 virtual label
nFaces()
const;
225 virtual label
size()
const
315 template<
class Type,
class GeoMeshType = surfGeoMesh>
318 const word& fieldName,
326 template<
class Type,
class GeoMeshType = surfGeoMesh>
329 const word& fieldName,
362 const word& fileType,
A helper class for storing points and faces with IO capabilities.
faceCompactIOList & storedIOFaces()
Non-const access to the faces.
pointIOField & storedIOPoints()
Non-const access to the points.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
writeOption
Enumeration defining the write options.
The IOstreamOption is a simple container for options an IOstream can normally have.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
A list of faces which address into the list of points.
const Field< point_type > & faceAreas() const
Return face area vectors for patch.
const Field< point_type > & faceCentres() const
Return face centres for patch.
const Field< scalar > & magFaceAreas() const
Return face area magnitudes for patch.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A class for handling file names.
virtual bool write()
Write the output fields.
Abstract definition of a meshed surface defined by faces and points.
Registry of regIOobjects.
A surface mesh consisting of general polygon faces that has IO capabilities and a registry for storin...
virtual label size() const
Return number of faces.
autoPtr< MeshedSurface< face > > releaseGeom()
Release the geometry and return as a MeshedSurface<face>.
surfZoneList & storedZones()
Non-const access to the surface zones.
const fileName & facesInstance() const
Return the current instance directory for faces.
void copySurface(const pointField &points, const faceList &faces, bool validate=false)
Update with new contents.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
const vectorField & Sf() const
Return face area vectors (normals)
surfMesh Mesh
Typedef required for GeoMesh.
pointField & storedPoints()
Non-const access to global points.
virtual const faceList & faces() const
Return faces.
void clearGeom()
Clear geometry.
faceList & storedFaces()
Non-const access to the faces.
const scalarField & magSf() const
Return face area magnitudes.
readUpdateState
Enumeration defining the state of the mesh after a read update.
void clearPrimitives()
Clear primitive data (points, faces and cells)
virtual ~surfMesh()
Destructor.
virtual readUpdateState readUpdate()
Update mesh based on the files saved in time directories.
void updateRefs()
Update point/face references.
const fileName & pointsInstance() const
Return the current instance directory for points.
void setInstance(const fileName &inst, IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
const vectorField & Cf() const
Face centres.
TypeName("surfMesh")
Declare type-name, virtual type (with debug switch)
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write all components using given format, version and compression.
void checkZones(const bool verbose=true)
Check the surface zone definitions.
void clearAddressing()
Clear addressing.
void storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named field as face or point data (template parameter).
virtual const pointField & points() const
Return points.
void clearFields()
Clear stored fields.
void removeFiles() const
Remove all files from mesh instance()
virtual label nPoints() const
Return the number of raw points.
virtual const surfZoneList & surfZones() const
Return surface zones.
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
bool BoundaryMesh
Placeholder only, but do not remove - it is needed for GeoMesh.
void removeZones()
Remove surface zones.
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
void transfer(MeshedSurface< face > &surf, bool validate=false)
Transfer the contents of the argument and annul the argument.
void addZones(const surfZoneList &zones, bool validate=true)
Add surface zones, optionally validating the zone coverage.
void setWriteOption(IOobject::writeOption wOpt)
Adjust the write option for all components.
virtual label nFaces() const
Return the number of raw faces.
IOobject for a surfZoneList.
Wraps the normal objectRegistry with a local instance for surfaces.
A class for handling words, derived from Foam::string.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
thermo validate(args.executable(), "h")
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.