A surface mesh consisting of general polygon faces. More...
#include <surfMesh/surfMesh.H>
A surface mesh consisting of general polygon faces.
Definition at line 56 of file surfMesh.H.
Public Types | |
enum | readUpdateState { UNCHANGED, POINTS_MOVED, TOPO_CHANGE, TOPO_PATCH_CHANGE } |
Enumeration defining the state of the mesh after a read update. More... | |
typedef surfMesh | Mesh |
typedef bool | BoundaryMesh |
Placeholder only, but do not remove - it is needed for GeoMesh. | |
![]() | |
enum | surfaceTopo |
Enumeration defining the surface type. Used in check routines. More... | |
typedef face | FaceType |
typedef ::Foam::UList< face > | FaceListType |
typedef ::Foam::SubField< point > | PointFieldType |
![]() | |
typedef face | value_type |
Type of values the UList contains. | |
typedef face & | reference |
Type that can be used for storing into. | |
typedef const face & | const_reference |
Type that can be used for storing into. | |
typedef label | difference_type |
The type that can represent the difference between any two. | |
typedef label | size_type |
The type that can represent the size of a UList. | |
typedef face * | iterator |
Random access iterator for traversing UList. | |
typedef const face * | const_iterator |
Random access iterator for traversing UList. | |
typedef face * | reverse_iterator |
Reverse iterator for reverse traversal of UList. | |
typedef const face * | const_reverse_iterator |
Reverse iterator for reverse traversal of constant UList. |
Public Member Functions | |
TypeName ("surfMesh") | |
Runtime type information. | |
surfMesh (const IOobject &, const word &surfName="") | |
Construct from IOobject, with alternative surface name. | |
surfMesh (const IOobject &, const Xfer< pointField > &, const Xfer< faceList > &, const word &surfName="") | |
Construct by transferring components (points, faces) without zones. | |
surfMesh (const IOobject &, const Xfer< MeshedSurface< face > > &surf, const word &surfName="") | |
Construct copy/move from MeshedSurface. | |
virtual | ~surfMesh () |
fileName | meshDir () const |
Return the local mesh directory (dbDir()/meshSubDir) | |
const fileName & | pointsInstance () const |
Return the current instance directory for points. | |
const fileName & | facesInstance () const |
Return the current instance directory for faces. | |
void | setInstance (const fileName &) |
Set the instance for mesh files. | |
virtual label | nPoints () const |
Return the number of raw points. | |
virtual label | nFaces () const |
Return the number of raw faces. | |
virtual label | size () const |
Return number of faces. | |
virtual const pointField & | points () const |
Return points. | |
virtual const faceList & | faces () const |
Return faces. | |
virtual const surfZoneList & | surfZones () const |
Return surface zones. | |
void | checkZones () |
Check the surface zone definitions. | |
void | addZones (const List< surfZone > &, const bool validate=true) |
Add surface zones. | |
virtual readUpdateState | readUpdate () |
Update the mesh based on the mesh files saved in. | |
void | removeZones () |
Update the mesh corresponding to given map. | |
void | resetPrimitives (const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones, const bool validate=true) |
Reset mesh primitive data. | |
void | transfer (MeshedSurface< face > &) |
Transfer the contents of the argument and annull the argument. | |
void | write (const fileName &) |
Write to file. | |
Xfer< MeshedSurface< face > > | xfer () |
Transfer contents to the Xfer container as a MeshedSurface. | |
void | clearGeom () |
Clear geometry. | |
void | clearAddressing () |
Clear addressing. | |
void | clearOut () |
Clear all geometry and addressing unnecessary for CFD. | |
void | clearPrimitives () |
Clear primitive data (points, faces and cells) | |
void | removeFiles (const fileName &instanceDir) const |
Remove all files from mesh instance. | |
void | removeFiles () const |
Remove all files from mesh instance() | |
![]() | |
TypeName ("surfaceRegistry") | |
Runtime type information. | |
surfaceRegistry (const objectRegistry &, const word &surfName="") | |
Construct for the given objectRegistry and named surface. | |
virtual | ~surfaceRegistry () |
![]() | |
TypeName ("objectRegistry") | |
Declare type name for this IOobject. | |
objectRegistry (const Time &db, const label nIoObjects=128) | |
Construct the time objectRegistry given an initial estimate. | |
objectRegistry (const IOobject &io, const label nIoObjects=128) | |
Construct a sub-registry given an IObject to describe the registry. | |
virtual | ~objectRegistry () |
const Time & | time () const |
Return time. | |
const objectRegistry & | parent () const |
Return the parent objectRegistry. | |
virtual const fileName & | dbDir () const |
Local directory path of this objectRegistry relative to the time. | |
wordList | names () const |
Return the list of names of the IOobjects. | |
wordList | names (const word &className) const |
Return the list of names of the IOobjects of given class name. | |
template<class Type > | |
wordList | names () const |
Return the list of names of the IOobjects of given type. | |
const objectRegistry & | subRegistry (const word &name) const |
Lookup and return a const sub-objectRegistry. | |
template<class Type > | |
HashTable< const Type * > | lookupClass () const |
Lookup and return all the object of the given Type. | |
template<class Type > | |
bool | foundObject (const word &name) const |
Is the named Type. | |
template<class Type > | |
const Type & | lookupObject (const word &name) const |
Lookup and return the object of the given Type. | |
label | getEvent () const |
Return new event number. | |
virtual void | rename (const word &newName) |
Rename. | |
bool | checkIn (regIOobject &) const |
Add an regIOobject to registry. | |
bool | checkOut (regIOobject &) const |
Remove an regIOobject from registry. | |
virtual bool | modified () const |
Return true if any of the object's files have been modified. | |
void | readModifiedObjects () |
Read the objects that have been modified. | |
virtual bool | readIfModified () |
Read object if modified. | |
virtual bool | writeData (Ostream &) const |
writeData function required by regIOobject but not used | |
virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
Write the objects. | |
![]() | |
TypeName ("regIOobject") | |
Runtime type information. | |
regIOobject (const IOobject &, const bool isTime=false) | |
Construct from IOobject. Optional flag for if IOobject is the. | |
regIOobject (const regIOobject &) | |
Construct as copy. | |
regIOobject (const regIOobject &, bool registerCopy) | |
Construct as copy, and transferring registry registration to copy. | |
virtual | ~regIOobject () |
bool | checkIn () |
Add object to registry. | |
bool | checkOut () |
Remove object from registry. | |
bool | ownedByRegistry () const |
Is this object owned by the registry? | |
void | store () |
Transfer ownership of this object to its registry. | |
void | release () |
Release ownership of this object from its registry. | |
label | eventNo () const |
Event number at last update. | |
label & | eventNo () |
Event number at last update. | |
bool | upToDate (const word &) const |
Am I uptodate with respect to other regIOobjects. | |
bool | upToDate (const word &, const word &) const |
bool | upToDate (const word &, const word &, const word &) const |
bool | upToDate (const word &, const word &, const word &, const word &) const |
void | setUpToDate () |
Flag me as up to date. | |
Istream & | readStream (const word &) |
Return Istream and check object type against that given. | |
void | close () |
Close Istream. | |
virtual bool | readData (Istream &) |
Virtual readData function. | |
virtual bool | read () |
Read object. | |
virtual bool | write () const |
Write using setting from DB. | |
void | operator= (const IOobject &) |
![]() | |
TypeName ("IOobject") | |
Runtime type information. | |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from name, instance, registry, io options. | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from name, instance, local, registry, io options. | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from path, registry, io options. | |
Foam::autoPtr< IOobject > | clone () const |
Clone. | |
virtual | ~IOobject () |
const objectRegistry & | db () const |
Return the local objectRegistry. | |
const word & | name () const |
Return name. | |
const word & | headerClassName () const |
Return name of the class name read from header. | |
string & | note () |
Return non-constant access to the optional note. | |
const string & | note () const |
Return the optional note. | |
bool | registerObject () const |
Register object created from this IOobject with registry if true. | |
readOption | readOpt () const |
readOption & | readOpt () |
writeOption | writeOpt () const |
writeOption & | writeOpt () |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const |
fileName & | instance () |
const fileName & | local () const |
fileName | path () const |
Return complete path. | |
fileName | path (const word &instance, const fileName &local="") const |
Return complete path with alternative instance and local. | |
fileName | objectPath () const |
Return complete path + object name. | |
fileName | filePath () const |
Return complete path + object name if the file exists. | |
bool | readHeader (Istream &) |
Read header. | |
bool | headerOk () |
Read and check header info. | |
bool | writeHeader (Ostream &) const |
Write header. | |
bool | good () const |
bool | bad () const |
InfoProxy< IOobject > | info () const |
Return info proxy. | |
![]() | |
bool | set (const word &, const regIOobject *&newElmt) |
Assign a new hashedEntry, overwriting existing entries. | |
HashTable (const label size=128) | |
Construct given initial table size. | |
HashTable (Istream &, const label size=128) | |
Construct from Istream. | |
HashTable (const HashTable< regIOobject *, word, string::hash > &) | |
Construct as copy. | |
HashTable (const Xfer< HashTable< regIOobject *, word, string::hash > > &) | |
Construct by transferring the parameter contents. | |
~HashTable () | |
bool | empty () const |
Return true if the hash table is empty. | |
bool | found (const word &) const |
Return true if hashedEntry is found in table. | |
iterator | find (const word &) |
Find and return an iterator set at the hashedEntry. | |
const_iterator | find (const word &) const |
Find and return an const_iterator set at the hashedEntry. | |
List< word > | toc () const |
Return the table of contents. | |
List< word > | sortedToc () const |
Return the table of contents as a sorted list. | |
Ostream & | printInfo (Ostream &) const |
Print information. | |
bool | insert (const word &, const regIOobject *&newElmt) |
Insert a new hashedEntry. | |
bool | erase (const iterator &) |
Erase an hashedEntry specified by given iterator. | |
bool | erase (const word &) |
Erase an hashedEntry specified by given key if in table. | |
label | erase (const UList< word > &) |
Remove entries given by the listed keys from this HashTable. | |
label | erase (const HashTable< AnyType, word, AnyHash > &) |
Remove entries given by the given keys from this HashTable. | |
void | resize (const label newSize) |
Resize the hash table for efficiency. | |
void | clear () |
Clear all entries from table. | |
void | clearStorage () |
Clear the table entries and the table itself. | |
void | transfer (HashTable< regIOobject *, word, string::hash > &) |
Transfer the contents of the argument table into this table. | |
regIOobject *& | operator[] (const word &) |
Find and return an hashedEntry. | |
const regIOobject *& | operator[] (const word &) const |
Find and return an hashedEntry. | |
regIOobject *& | operator() (const word &) |
Find and return an hashedEntry, create it null if not present. | |
void | operator= (const HashTable< regIOobject *, word, string::hash > &) |
Assignment. | |
bool | operator== (const HashTable< regIOobject *, word, string::hash > &) const |
Equality. Two hash tables are equal if all contents of first are. | |
bool | operator!= (const HashTable< regIOobject *, word, string::hash > &) const |
The opposite of the equality operation. Takes linear time. | |
iterator | begin () |
iterator set to the begining of the HashTable | |
const_iterator | begin () const |
const_iterator set to the beginning of the HashTable | |
const iterator & | end () |
iterator set to beyond the end of the HashTable | |
const const_iterator & | end () const |
const_iterator set to beyond the end of the HashTable | |
const_iterator | cbegin () const |
const_iterator set to the beginning of the HashTable | |
const const_iterator & | cend () const |
const_iterator set to beyond the end of the HashTable | |
![]() | |
PrimitivePatch (const ::Foam::UList< face > &faces, const Field< point > &points) | |
Construct from components. | |
PrimitivePatch (::Foam::UList< face > &faces, Field< point > &points, const bool reUse) | |
Construct from components, reuse storage. | |
PrimitivePatch (const PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point > &) | |
Construct as copy. | |
virtual | ~PrimitivePatch () |
void | clearTopology () |
void | clearPatchMeshAddr () |
label | nEdges () const |
Return number of edges in patch. | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. | |
label | nInternalEdges () const |
Number of internal edges. | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. | |
const labelListList & | faceFaces () const |
Return face-face addressing. | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. | |
const labelListList & | faceEdges () const |
Return face-edge addressing. | |
const labelListList & | pointEdges () const |
Return point-edge addressing. | |
const labelListList & | pointFaces () const |
Return point-face addressing. | |
const List< face > & | localFaces () const |
Return patch faces addressing into local point list. | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. | |
const Field< point > & | localPoints () const |
Return pointField of points in patch. | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. | |
const Field< point > & | faceCentres () const |
Return face centres for patch. | |
const Field< point > & | faceNormals () const |
Return face normals for patch. | |
const Field< point > & | pointNormals () const |
Return point normals for patch. | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Project vertices of patch onto another patch. | |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=NULL) const |
Check surface formed by patch for manifoldness (see above). | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const |
Checks primitivePatch for faces sharing point but not edge. | |
virtual void | movePoints (const Field< point > &) |
Correct patch after moving points. | |
void | operator= (const PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point > &) |
Assignment. | |
![]() | |
UList () | |
Null constructor. | |
UList (face *__restrict__ v, label size) | |
Construct from components. | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. | |
label | byteSize () const |
Return the binary size in number of characters of the UList. | |
const face * | cdata () const |
Return a const pointer to the first data element,. | |
face * | data () |
Return a pointer to the first data element,. | |
void | checkStart (const label start) const |
Check start is within valid range (0 ... size-1). | |
void | checkSize (const label size) const |
Check size is within valid range (0 ... size). | |
void | checkIndex (const label i) const |
Check index i is within valid range (0 ... size-1). | |
void | writeEntry (Ostream &) const |
Write the UList as a dictionary entry. | |
void | writeEntry (const word &keyword, Ostream &) const |
Write the UList as a dictionary entry with keyword. | |
void | assign (const UList< face > &) |
Assign elements to those from UList. | |
face & | operator[] (const label) |
Return element of UList. | |
const face & | operator[] (const label) const |
Return element of constant UList. | |
operator const Foam::List< face > & () const | |
Allow cast to a const List<T>&. | |
void | operator= (const face &) |
Assignment of all entries to the given value. | |
iterator | begin () |
Return an iterator to begin traversing the UList. | |
const_iterator | begin () const |
Return const_iterator to begin traversing the constant UList. | |
iterator | end () |
Return an iterator to end traversing the UList. | |
const_iterator | end () const |
Return const_iterator to end traversing the constant UList. | |
const_iterator | cbegin () const |
Return const_iterator to begin traversing the constant UList. | |
const_iterator | cend () const |
Return const_iterator to end traversing the constant UList. | |
reverse_iterator | rbegin () |
Return reverse_iterator to begin reverse traversing the UList. | |
const_reverse_iterator | rbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. | |
reverse_iterator | rend () |
Return reverse_iterator to end reverse traversing the UList. | |
const_reverse_iterator | rend () const |
Return const_reverse_iterator to end reverse traversing the UList. | |
const_reverse_iterator | crbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. | |
const_reverse_iterator | crend () const |
Return const_reverse_iterator to end reverse traversing the UList. | |
label | max_size () const |
Return size of the largest possible UList. | |
bool | empty () const |
Return true if the UList is empty (ie, size() is zero). | |
void | swap (UList< face > &) |
Swap two ULists of the same type in constant time. | |
bool | operator== (const UList< face > &) const |
Equality operation on ULists of the same type. | |
bool | operator!= (const UList< face > &) const |
The opposite of the equality operation. Takes linear time. | |
bool | operator< (const UList< face > &) const |
Compare two ULists lexicographically. Takes linear time. | |
bool | operator> (const UList< face > &) const |
Compare two ULists lexicographically. Takes linear time. | |
bool | operator<= (const UList< face > &) const |
Return true if !(a > b). Takes linear time. | |
bool | operator>= (const UList< face > &) const |
Return true if !(a < b). Takes linear time. |
Static Public Member Functions | |
static void | write (const fileName &, const surfMesh &) |
Write to file. |
Static Public Attributes | |
static word | meshSubDir = "surfMesh" |
Return the mesh sub-directory name (normally "surfMesh") | |
![]() | |
static const word | prefix |
The prefix to local: surfaces. | |
static word | defaultName |
The default surface name: default. |
Protected Member Functions | |
pointField & | storedPoints () |
Non-const access to global points. | |
faceList & | storedFaces () |
Non-const access to the faces. | |
surfZoneList & | storedZones () |
Non-const access to the zones. | |
virtual void | updateFacesRef () |
Update references to storedFaces. | |
virtual void | updatePointsRef () |
Update references to storedPoints. | |
virtual void | updateRefs () |
Update references to storedPoints/storedFaces. |
Friends | |
class | MeshedSurface |
class | UnsortedMeshedSurface |
Additional Inherited Members | |
![]() | |
MeshedSurfaceIOAllocator (const IOobject &ioPoints, const IOobject &ioFaces, const IOobject &ioZones) | |
Read construct from IOobjects. | |
MeshedSurfaceIOAllocator (const IOobject &ioPoints, const pointField &points, const IOobject &ioFaces, const faceList &faces, const IOobject &ioZones, const surfZoneList &zones) | |
Construct from IOobjects, copying components. | |
MeshedSurfaceIOAllocator (const IOobject &ioPoints, const Xfer< pointField > &points, const IOobject &ioFaces, const Xfer< faceList > &faces, const IOobject &ioZones, const Xfer< surfZoneList > &zones) | |
Construct from IOobjects, possibly transferring components. | |
pointIOField & | storedIOPoints () |
Non-const access to the points. | |
faceIOList & | storedIOFaces () |
Non-const access to the faces. | |
surfZoneIOList & | storedIOZones () |
Non-const access to the zones. | |
const pointIOField & | storedIOPoints () const |
Const access to the points. | |
const faceIOList & | storedIOFaces () const |
Const access to the faces. | |
const surfZoneIOList & | storedIOZones () const |
Const access to the zones. | |
void | clear () |
Clear primitive data (points, faces and zones) | |
void | resetFaces (const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones) |
Reset primitive data (points, faces and zones) | |
void | reset (const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones) |
Reset primitive data (points, faces and zones) | |
void | reset (const Xfer< List< point > > &points, const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones) |
Reset primitive data (points, faces and zones) |
Definition at line 143 of file surfMesh.H.
typedef bool BoundaryMesh |
Placeholder only, but do not remove - it is needed for GeoMesh.
Definition at line 146 of file surfMesh.H.
enum readUpdateState |
Enumeration defining the state of the mesh after a read update.
Used for post-processing applications, where the mesh needs to update based on the files written in time directores
Definition at line 73 of file surfMesh.H.
Construct from IOobject, with alternative surface name.
Definition at line 72 of file surfMesh.C.
surfMesh | ( | const IOobject & | io, |
const Xfer< pointField > & | pointLst, | ||
const Xfer< faceList > & | faceLst, | ||
const word & | surfName = "" |
||
) |
Construct by transferring components (points, faces) without zones.
surfZones are added using addZones() member function
Definition at line 110 of file surfMesh.C.
surfMesh | ( | const IOobject & | io, |
const Xfer< MeshedSurface< face > > & | surf, | ||
const word & | surfName = "" |
||
) |
Construct copy/move from MeshedSurface.
Definition at line 156 of file surfMesh.C.
References IOobject::db(), objectRegistry::dbDir(), Foam::endl(), Foam::Info, IOobject::instance(), IOobject::local(), IOobject::name(), Foam::nl, and IOobject::path().
|
virtual |
Definition at line 219 of file surfMesh.C.
|
inlineprotected |
Non-const access to global points.
Definition at line 112 of file surfMesh.H.
References MeshedSurfaceIOAllocator::storedIOPoints().
Referenced by MeshedSurface< Face >::MeshedSurface().
|
inlineprotected |
Non-const access to the faces.
Definition at line 118 of file surfMesh.H.
References MeshedSurfaceIOAllocator::storedIOFaces().
Referenced by MeshedSurface< Face >::MeshedSurface().
|
inlineprotected |
Non-const access to the zones.
Definition at line 124 of file surfMesh.H.
References MeshedSurfaceIOAllocator::storedIOZones().
Referenced by MeshedSurface< Face >::MeshedSurface(), and surfMesh::removeZones().
|
protectedvirtual |
Update references to storedFaces.
Definition at line 238 of file surfMesh.C.
|
protectedvirtual |
|
protectedvirtual |
Update references to storedPoints/storedFaces.
Definition at line 245 of file surfMesh.C.
TypeName | ( | "surfMesh" | ) |
Runtime type information.
Foam::fileName meshDir | ( | ) | const |
Return the local mesh directory (dbDir()/meshSubDir)
Definition at line 308 of file surfMesh.C.
const Foam::fileName & pointsInstance | ( | ) | const |
Return the current instance directory for points.
Used in the consruction of geometric mesh data dependent on points
Definition at line 314 of file surfMesh.C.
const Foam::fileName & facesInstance | ( | ) | const |
Return the current instance directory for faces.
Definition at line 320 of file surfMesh.C.
void setInstance | ( | const fileName & | inst | ) |
Set the instance for mesh files.
Definition at line 31 of file surfMeshIO.C.
References IOobject::AUTO_WRITE, Foam::endl(), Foam::Info, IOobject::instance(), MeshedSurfaceIOAllocator::storedIOFaces(), MeshedSurfaceIOAllocator::storedIOPoints(), MeshedSurfaceIOAllocator::storedIOZones(), and IOobject::writeOpt().
|
virtual |
Return the number of raw points.
Reimplemented from PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >.
Definition at line 326 of file surfMesh.C.
References points, and List< T >::size().
Referenced by surfPointGeoMesh::size().
|
virtual |
Return the number of raw faces.
Definition at line 332 of file surfMesh.C.
Referenced by surfGeoMesh::size(), and surfMesh::size().
|
inlinevirtual |
Return number of faces.
Reimplemented from UList< face >.
Definition at line 212 of file surfMesh.H.
References surfMesh::nFaces().
|
virtual |
Return points.
Reimplemented from PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >.
Definition at line 338 of file surfMesh.C.
Referenced by MeshedSurface< Face >::MeshedSurface(), and surfMesh::write().
|
virtual |
Return faces.
Definition at line 344 of file surfMesh.C.
Referenced by MeshedSurface< Face >::MeshedSurface(), and surfMesh::write().
|
inlinevirtual |
Return surface zones.
Definition at line 225 of file surfMesh.H.
References MeshedSurfaceIOAllocator::storedIOZones().
Referenced by MeshedSurface< Face >::MeshedSurface(), and surfMesh::write().
void checkZones | ( | ) |
Check the surface zone definitions.
Definition at line 350 of file surfMesh.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, List< T >::size(), and WarningIn.
|
virtual |
Update the mesh based on the mesh files saved in.
time directories
Definition at line 52 of file surfMeshIO.C.
References Foam::endl(), forAll, Foam::Info, IOobject::MUST_READ, Foam::name(), Foam::nl, IOobject::NO_WRITE, surfMesh::POINTS_MOVED, List< T >::size(), surfMesh::TOPO_CHANGE, surfMesh::TOPO_PATCH_CHANGE, List< T >::transfer(), surfMesh::UNCHANGED, and WarningIn.
void removeZones | ( | ) |
Update the mesh corresponding to given map.
Remove surface zones
Definition at line 32 of file surfMeshClear.C.
References List< T >::clear(), surfMesh::clearOut(), Foam::endl(), Foam::Info, and surfMesh::storedZones().
void resetPrimitives | ( | const Xfer< pointField > & | points, |
const Xfer< faceList > & | faces, | ||
const Xfer< surfZoneList > & | zones, | ||
const bool | validate = true |
||
) |
Reset mesh primitive data.
Definition at line 253 of file surfMesh.C.
void transfer | ( | MeshedSurface< face > & | surf | ) |
Transfer the contents of the argument and annull the argument.
Definition at line 274 of file surfMesh.C.
References MeshedSurface< Face >::storedFaces(), MeshedSurface< Face >::storedPoints(), and MeshedSurface< Face >::storedZones().
Write to file.
Definition at line 431 of file surfMesh.C.
References surfMesh::faces(), surfMesh::points(), and surfMesh::surfZones().
void write | ( | const fileName & | name | ) |
Write to file.
Definition at line 442 of file surfMesh.C.
Foam::Xfer< Foam::MeshedSurface< Foam::face > > xfer | ( | ) |
Transfer contents to the Xfer container as a MeshedSurface.
Reimplemented from HashTable< regIOobject * >.
Definition at line 290 of file surfMesh.C.
void clearGeom | ( | ) |
Clear geometry.
Reimplemented from PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >.
Definition at line 50 of file surfMeshClear.C.
References Foam::endl(), and Foam::Info.
void clearAddressing | ( | ) |
Clear addressing.
Definition at line 63 of file surfMeshClear.C.
References Foam::endl(), and Foam::Info.
void clearOut | ( | ) |
Clear all geometry and addressing unnecessary for CFD.
Reimplemented from PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >.
Definition at line 76 of file surfMeshClear.C.
Referenced by surfMesh::removeZones().
void clearPrimitives | ( | ) |
Clear primitive data (points, faces and cells)
void removeFiles | ( | const fileName & | instanceDir | ) | const |
Remove all files from mesh instance.
Definition at line 416 of file surfMesh.C.
References fileName::path(), and Foam::rm().
void removeFiles | ( | ) | const |
Remove all files from mesh instance()
Definition at line 425 of file surfMesh.C.
|
friend |
Definition at line 63 of file surfMesh.H.
|
friend |
Definition at line 64 of file surfMesh.H.
|
static |
Return the mesh sub-directory name (normally "surfMesh")
Definition at line 153 of file surfMesh.H.