IOoject and searching on triSurface. More...
Public Types | |
enum | readAction { localOnly, localOrGlobal, masterOnly } |
![]() | |
enum | objectState : char { GOOD, BAD } |
enum | readOption : char { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
enum | writeOption : char { AUTO_WRITE = 0, NO_WRITE = 1 } |
enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
![]() | |
typedef HashTable< T, Key, Hash > | this_type |
typedef Key | key_type |
typedef T | mapped_type |
typedef T | value_type |
typedef Hash | hasher |
typedef T * | pointer |
typedef T & | reference |
typedef label | difference_type |
typedef label | size_type |
using | key_iterator = key_iterator_base< iterator > |
using | const_key_iterator = key_iterator_base< const_iterator > |
![]() | |
typedef bool | BoundaryMesh |
typedef labelledTri | face_type |
typedef point | point_type |
![]() | |
enum | surfaceTopo |
typedef std::remove_reference< ::Foam::List< labelledTri > >::type::value_type | face_type |
typedef std::remove_reference< pointField >::type::value_type | point_type |
typedef ::Foam::List< labelledTri > | FaceListType |
typedef pointField | PointFieldType |
typedef face_type | FaceType |
![]() | |
typedef SubList< T > | subList |
Public Member Functions | |
TypeName ("triSurfaceMesh") | |
triSurfaceMesh (const IOobject &, const triSurface &) | |
triSurfaceMesh (const IOobject &io) | |
triSurfaceMesh (const IOobject &io, const dictionary &dict) | |
triSurfaceMesh (const IOobject &io, const readAction r) | |
triSurfaceMesh (const IOobject &io, const dictionary &dict, const readAction r) | |
virtual | ~triSurfaceMesh () |
void | clearOut () |
virtual void | movePoints (const pointField &) |
const indexedOctree< treeDataEdge > & | edgeTree () const |
virtual const wordList & | regions () const |
virtual bool | hasVolumeType () const |
virtual volumeType | outsideVolumeType () const |
virtual label | size () const |
virtual tmp< pointField > | coordinates () const |
virtual void | boundingSpheres (pointField ¢res, scalarField &radiusSqr) const |
virtual tmp< pointField > | points () const |
virtual bool | overlaps (const boundBox &bb) const |
virtual void | findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const |
virtual void | findNearest (const pointField &sample, const scalarField &nearestDistSqr, const labelList ®ionIndices, List< pointIndexHit > &) const |
virtual void | findLine (const pointField &start, const pointField &end, List< pointIndexHit > &) const |
virtual void | findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &) const |
virtual void | findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit >> &) const |
virtual void | getRegion (const List< pointIndexHit > &, labelList ®ion) const |
virtual void | getNormal (const List< pointIndexHit > &, vectorField &normal) const |
virtual void | getVolumeType (const pointField &points, List< volumeType > &volType) const |
virtual void | setField (const labelList &values) |
virtual void | getField (const List< pointIndexHit > &, labelList &) const |
bool | writeData (Ostream &) const |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
virtual bool | global () const |
virtual fileName | filePath () const |
![]() | |
TypeName ("searchableSurface") | |
declareRunTimeSelectionTable (autoPtr, searchableSurface, dict,(const IOobject &io, const dictionary &dict),(io, dict)) | |
searchableSurface (const IOobject &io) | |
virtual autoPtr< searchableSurface > | clone () const |
virtual | ~searchableSurface ()=default |
virtual const boundBox & | bounds () const |
virtual boundBox & | bounds () |
virtual label | globalSize () const |
virtual void | findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &, vectorField &normal, labelList ®ion) const |
virtual void | distribute (const List< treeBoundBox > &, const bool keepNonLocal, autoPtr< mapDistribute > &faceMap, autoPtr< mapDistribute > &pointMap) |
![]() | |
TypeName ("regIOobject") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual bool | read () |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | write (const bool valid=true) const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
![]() | |
TypeName ("objectRegistry") | |
objectRegistry (const Time &db, const label nObjects=128) | |
objectRegistry (const IOobject &io, const label nObjects=128) | |
virtual | ~objectRegistry () |
const objectRegistry & | thisDb () const noexcept |
const objectRegistry & | parent () const noexcept |
const Time & | time () const noexcept |
bool | isTimeDb () const noexcept |
virtual const fileName & | dbDir () const |
HashTable< wordHashSet > | classes () const |
template<class MatchPredicate > | |
HashTable< wordHashSet > | classes (const MatchPredicate &matchName) const |
label | count (const char *clsName) const |
template<class MatchPredicate > | |
label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
label | count (const bool strict=false) const |
template<class Type , class MatchPredicate > | |
label | count (const MatchPredicate &matchName) const |
wordList | names () const |
wordList | names (const char *clsName) const |
template<class MatchPredicate > | |
wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | names () const |
template<class Type , class MatchPredicate > | |
wordList | names (const MatchPredicate &matchName) const |
wordList | sortedNames () const |
wordList | sortedNames (const char *clsName) const |
template<class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchName) const |
const objectRegistry & | subRegistry (const word &name, const bool forceCreate=false, const bool recursive=false) const |
template<class Type > | |
HashTable< const Type * > | lookupClass (const bool strict=false) const |
template<class Type > | |
HashTable< Type * > | lookupClass (const bool strict=false) |
const regIOobject * | cfindIOobject (const word &name, const bool recursive=false) const |
bool | found (const word &name, const bool recursive=false) const |
template<class Type > | |
bool | foundObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | cfindObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | findObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type * | findObject (const word &name, const bool recursive=false) |
template<class Type > | |
Type * | getObjectPtr (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type & | lookupObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type & | lookupObjectRef (const word &name, const bool recursive=false) const |
label | getEvent () const |
bool | checkIn (regIOobject *io) const |
bool | checkIn (regIOobject &io) const |
bool | checkOut (regIOobject *io) const |
bool | checkOut (regIOobject &io) const |
bool | checkOut (const word &key) const |
void | clear () |
void | clearStorage () |
bool | erase (const iterator &iter) |
bool | erase (const word &key) |
label | erase (std::initializer_list< word > keys) |
label | erase (const UList< word > &keys) |
virtual void | rename (const word &newName) |
virtual bool | modified () const |
void | readModifiedObjects () |
virtual bool | readIfModified () |
template<class Type > | |
const Type * | lookupObjectPtr (const word &name, bool recursive=false) const |
template<class Type > | |
Type * | lookupObjectRefPtr (const word &name, bool recursive=false) const |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classesImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | countImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) |
template<class Type , class MatchPredicate > | |
Foam::label | countTypeImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | namesImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool doSort) |
template<class Type , class MatchPredicate > | |
Foam::wordList | namesTypeImpl (const objectRegistry &list, const MatchPredicate &matchName, const bool doSort) |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classes (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type , class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchName) const |
template<class Type > | |
Foam::label | count (const bool strict) const |
template<class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | names () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchName) const |
template<class Type > | |
Foam::HashTable< const Type * > | lookupClass (const bool strict) const |
template<class Type > | |
Foam::HashTable< Type * > | lookupClass (const bool strict) |
![]() | |
HashTable () | |
HashTable (const label size) | |
HashTable (Istream &is, const label size=128) | |
HashTable (const this_type &ht) | |
HashTable (this_type &&rhs) | |
HashTable (std::initializer_list< std::pair< Key, T >> list) | |
~HashTable () | |
label | capacity () const noexcept |
label | size () const noexcept |
bool | empty () const noexcept |
T & | at (const Key &key) |
const T & | at (const Key &key) const |
bool | found (const Key &key) const |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
const_iterator | cfind (const Key &key) const |
const T & | lookup (const Key &key, const T &deflt) const |
List< Key > | toc () const |
List< Key > | sortedToc () const |
List< Key > | sortedToc (const Compare &comp) const |
Foam::List< Key > | sortedToc (const Compare &comp) const |
List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocValues (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert) const |
label | countKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countKeys (const UnaryPredicate &pred, const bool invert) const |
label | countValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countValues (const UnaryPredicate &pred, const bool invert) const |
label | countEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::label | countEntries (const BinaryPredicate &pred, const bool invert) const |
bool | emplace (const Key &key, Args &&... args) |
bool | emplace_set (const Key &key, Args &&... args) |
bool | insert (const Key &key, const T &obj) |
bool | insert (const Key &key, T &&obj) |
bool | set (const Key &key, const T &obj) |
bool | set (const Key &key, T &&obj) |
bool | erase (const iterator &iter) |
bool | erase (const Key &key) |
label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | erase (std::initializer_list< Key > keys) |
label | erase (InputIter first, InputIter last) |
label | erase (const FixedList< Key, N > &keys) |
label | erase (const UList< Key > &keys) |
Foam::label | erase (InputIter first, InputIter last) |
Foam::label | erase (const FixedList< Key, N > &keys) |
Foam::label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
Foam::label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
label | filterKeys (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterKeys (const UnaryPredicate &pred, const bool pruning) |
label | filterValues (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterValues (const UnaryPredicate &pred, const bool pruning) |
label | filterEntries (const BinaryPredicate &pred, const bool pruning=false) |
Foam::label | filterEntries (const BinaryPredicate &pred, const bool pruning) |
void | resize (const label sz) |
void | clear () |
void | clearStorage () |
void | swap (HashTable< T, Key, Hash > &rhs) |
void | transfer (HashTable< T, Key, Hash > &rhs) |
T & | operator[] (const Key &key) |
const T & | operator[] (const Key &key) const |
T & | operator() (const Key &key) |
T & | operator() (const Key &key, const T &deflt) |
void | operator= (const this_type &rhs) |
void | operator= (std::initializer_list< std::pair< Key, T >> rhs) |
void | operator= (this_type &&rhs) |
bool | operator== (const this_type &rhs) const |
bool | operator!= (const this_type &rhs) const |
this_type & | operator+= (const this_type &rhs) |
const_iterator_pair< const_key_iterator, this_type > | keys () const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () noexcept |
const_iterator | end () const noexcept |
constexpr const_iterator | cend () const noexcept |
Ostream & | printInfo (Ostream &os) const |
Ostream & | writeKeys (Ostream &os, const label shortLen=0) const |
![]() | |
ClassName ("triSurface") | |
triSurface () | |
triSurface (const triSurface &surf) | |
triSurface (triSurface &&surf) | |
triSurface (const List< labelledTri > &triangles, const geometricSurfacePatchList &patches, const pointField &pts) | |
triSurface (List< labelledTri > &triangles, const geometricSurfacePatchList &patches, pointField &pts, const bool reuse) | |
triSurface (const List< labelledTri > &triangles, const pointField &pts) | |
triSurface (const triFaceList &triangles, const pointField &pts) | |
triSurface (const fileName &name, const scalar scaleFactor=-1) | |
triSurface (const fileName &name, const word &fileType, const scalar scaleFactor=-1) | |
triSurface (Istream &is) | |
triSurface (const Time &d) | |
triSurface (const IOobject &io, const dictionary &dict, const bool isGlobal=true) | |
virtual | ~triSurface () |
void | clearOut () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | swap (triSurface &surf) |
const geometricSurfacePatchList & | patches () const noexcept |
geometricSurfacePatchList & | patches () noexcept |
const List< labelledTri > & | surfFaces () const noexcept |
const labelListList & | sortedEdgeFaces () const |
const labelList & | edgeOwner () const |
const vectorField & | Sf () const |
const scalarField & | magSf () const |
const vectorField & | Cf () const |
List< surfZone > | sortedZones (labelList &faceMap) const |
void | triFaceFaces (List< face > &plainFaceList) const |
virtual void | swapPoints (pointField &pts) |
virtual void | scalePoints (const scalar scaleFactor) |
void | checkTriangles (const bool verbose) |
void | checkEdges (const bool verbose) |
void | cleanup (const bool verbose) |
void | compactPoints (labelList &pointMap=const_cast< labelList & >(labelList::null())) |
void | markZone (const boolList &borderEdge, const label facei, const label currentZone, labelList &faceZone) const |
label | markZones (const boolList &borderEdge, labelList &faceZone) const |
template<class BoolListType > | |
void | subsetMeshMap (const BoolListType &include, labelList &pointMap, labelList &faceMap) const |
triSurface | subsetMesh (const UList< bool > &include, labelList &pointMap, labelList &faceMap) const |
triSurface | subsetMesh (const bitSet &include, labelList &pointMap, labelList &faceMap) const |
triSurface | subsetMesh (const UList< bool > &include) const |
triSurface | subsetMesh (const bitSet &include) const |
triSurface | subsetMesh (const wordRes &includeNames, const wordRes &excludeNames=wordRes()) const |
void | swapFaces (List< labelledTri > &faceLst) |
void | transfer (triSurface &surf) |
void | transfer (MeshedSurface< labelledTri > &surf) |
void | write (Ostream &os) const |
void | write (const fileName &, const bool sortByRegion=false) const |
void | write (const fileName &filename, const word &fileType, const bool sortByRegion=false) const |
void | write (const Time &d) const |
void | writeStats (Ostream &os) const |
void | operator= (const triSurface &surf) |
void | operator= (triSurface &&surf) |
void | operator= (MeshedSurface< labelledTri > &&surf) |
![]() | |
PrimitivePatch (const ::Foam::List< labelledTri > &faces, const pointField &points) | |
PrimitivePatch (::Foam::List< labelledTri > &&faces, const pointField &points) | |
PrimitivePatch (::Foam::List< labelledTri > &faces, pointField &points, const bool reuse) | |
PrimitivePatch (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &pp) | |
virtual | ~PrimitivePatch () |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | swap (PrimitivePatch &)=delete |
const Field< point_type > & | points () const noexcept |
label | nFaces () const noexcept |
label | nPoints () const |
label | nEdges () const |
const edgeList & | edges () const |
const edgeList::subList | internalEdges () const |
const edgeList::subList | boundaryEdges () const |
label | nInternalEdges () const |
label | nBoundaryEdges () const |
bool | isInternalEdge (const label edgei) const |
const labelList & | boundaryPoints () const |
const labelListList & | faceFaces () const |
const labelListList & | edgeFaces () const |
const labelListList & | faceEdges () const |
const labelListList & | pointEdges () const |
const labelListList & | pointFaces () const |
const List< face_type > & | localFaces () const |
labelList | boundaryFaces () const |
labelList | uniqBoundaryFaces () const |
const labelList & | meshPoints () const |
const Map< label > & | meshPointMap () const |
const Field< point_type > & | localPoints () const |
const labelList & | localPointOrder () const |
label | whichPoint (const label gp) const |
edge | meshEdge (const label edgei) const |
edge | meshEdge (const edge &e) const |
label | meshEdge (const label edgei, const edgeList &allEdges, const labelListList &pointEdges) const |
label | findEdge (const edge &e) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
labelList | meshEdges (const labelUList &edgeLabels, const edgeList &allEdges, const labelListList &pointEdges) const |
const Field< point_type > & | faceCentres () const |
const Field< point_type > & | faceAreas () const |
const Field< scalar > & | magFaceAreas () const |
const Field< point_type > & | faceNormals () const |
const Field< point_type > & | pointNormals () const |
bool | hasFaceAreas () const |
bool | hasFaceCentres () const |
bool | hasFaceNormals () const |
bool | hasPointNormals () const |
bool | hasBoundaryPoints () const |
bool | hasFaceFaces () const |
bool | hasEdgeFaces () const |
bool | hasFaceEdges () const |
bool | hasPointEdges () const |
bool | hasPointFaces () const |
bool | hasMeshPointMap () const |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< ::Foam::List< labelledTri >, pointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< point_type > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< typename Foam::PrimitivePatch< ::Foam::List< labelledTri >, pointField >::point_type > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
const labelListList & | edgeLoops () const |
surfaceTopo | surfaceType () const |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
virtual void | movePoints (const Field< point_type > &) |
void | operator= (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &rhs) |
void | operator= (PrimitivePatch< ::Foam::List< labelledTri >, pointField > &&rhs) |
label | whichEdge (const edge &e) const |
![]() | |
ClassName ("PrimitivePatch") | |
PrimitivePatchBase ()=default | |
![]() | |
constexpr | List () noexcept |
List (const label len) | |
List (const label len, const T &val) | |
List (const label len, const Foam::zero) | |
List (const Foam::one, const T &val) | |
List (const Foam::one, T &&val) | |
List (const Foam::one, const Foam::zero) | |
List (const List< T > &a) | |
List (const UList< T > &a) | |
List (List< T > &a, bool reuse) | |
List (const UList< T > &list, const labelUList &indices) | |
List (const UList< T > &list, const FixedList< label, N > &indices) | |
List (const FixedList< T, N > &list) | |
List (const PtrList< T > &list) | |
List (const SLList< T > &list) | |
List (const IndirectListBase< T, Addr > &list) | |
List (std::initializer_list< T > list) | |
List (List< T > &&list) | |
List (DynamicList< T, SizeMin > &&list) | |
List (SortableList< T > &&list) | |
List (SLList< T > &&list) | |
List (Istream &is) | |
List (const label len) | |
List (const label len, const T &val) | |
List (const label len, const Foam::zero) | |
List (const Foam::one, const T &val) | |
List (const Foam::one, T &&val) | |
List (const Foam::one, const Foam::zero) | |
List (const UList< T > &a) | |
List (const List< T > &a) | |
List (List< T > &a, bool reuse) | |
List (const UList< T > &list, const labelUList &indices) | |
List (const PtrList< T > &list) | |
List (const SLList< T > &list) | |
List (std::initializer_list< T > list) | |
List (List< T > &&list) | |
List (SortableList< T > &&list) | |
List (SLList< T > &&list) | |
constexpr | List () noexcept |
List (Istream &is) | |
autoPtr< List< T > > | clone () const |
~List () | |
void | clear () |
void | resize (const label len) |
void | resize (const label len, const T &val) |
void | resize (const label newLen) |
void | resize_nocopy (const label len) |
void | setSize (const label n) |
void | setSize (const label n, const T &val) |
void | append (const T &val) |
void | append (T &&val) |
void | append (const UList< T > &list) |
void | append (const IndirectListBase< T, Addr > &list) |
void | append (const T &val) |
void | append (T &&val) |
void | append (const UList< T > &list) |
label | appendUniq (const T &val) |
void | transfer (List< T > &list) |
void | transfer (DynamicList< T, SizeMin > &list) |
void | transfer (SortableList< T > &list) |
void | transfer (List< T > &list) |
void | transfer (SortableList< T > &list) |
T & | newElmt (const label i) |
void | operator= (const UList< T > &a) |
void | operator= (const List< T > &list) |
void | operator= (const SLList< T > &list) |
void | operator= (const IndirectListBase< T, Addr > &list) |
void | operator= (const FixedList< T, N > &list) |
void | operator= (std::initializer_list< T > list) |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
void | operator= (List< T > &&list) |
void | operator= (DynamicList< T, SizeMin > &&list) |
void | operator= (SortableList< T > &&list) |
void | operator= (SLList< T > &&list) |
void | operator= (const UList< T > &a) |
void | operator= (const List< T > &list) |
void | operator= (const SLList< T > &list) |
void | operator= (std::initializer_list< T > list) |
void | operator= (List< T > &&list) |
void | operator= (SortableList< T > &&list) |
void | operator= (SLList< T > &&list) |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
Istream & | readList (Istream &is) |
Istream & | readList (Istream &is) |
Istream & | readList (Istream &is) |
void | shallowCopy (const UList< T > &)=delete |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | set (const label i, bool val=true) |
![]() | |
triSurfaceRegionSearch (const triSurface &) | |
triSurfaceRegionSearch (const triSurface &, const dictionary &dict) | |
~triSurfaceRegionSearch () | |
void | clearOut () |
const PtrList< treeType > & | treeByRegion () const |
void | findNearest (const pointField &samples, const scalarField &nearestDistSqr, const labelList ®ionIndices, List< pointIndexHit > &info) const |
![]() | |
triSurfaceSearch (const triSurface &surface) | |
triSurfaceSearch (const triSurface &surface, const dictionary &dict) | |
triSurfaceSearch (const triSurface &surface, const scalar tolerance, const label maxTreeDepth=10) | |
~triSurfaceSearch () | |
void | clearOut () |
const indexedOctree< treeDataTriSurface > & | tree () const |
const triSurface & | surface () const |
scalar | tolerance () const |
label | maxTreeDepth () const |
boolList | calcInside (const pointField &searchPoints) const |
void | findNearest (const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &info) const |
pointIndexHit | nearest (const point &pt, const vector &span) const |
void | findLine (const pointField &start, const pointField &end, List< pointIndexHit > &info) const |
void | findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &info) const |
void | findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit >> &info) const |
Static Public Attributes | |
static word | meshSubDir = "triSurface" |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
Protected Member Functions | |
bool | isSurfaceClosed () const |
triSurfaceMesh (const triSurfaceMesh &)=delete | |
void | operator= (const triSurfaceMesh &)=delete |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
bool | iterator_erase (node_type *&entry, label &index) |
![]() | |
pointField & | storedPoints () |
List< labelledTri > & | storedFaces () |
Static Protected Member Functions | |
static bool | addFaceToEdge (const edge &, EdgeMap< label > &) |
static void | getNextIntersections (const indexedOctree< treeDataTriSurface > &octree, const point &start, const point &end, const vector &smallVec, DynamicList< pointIndexHit > &hits) |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
Protected Attributes | |
fileName | fName_ |
scalar | minQuality_ |
autoPtr< indexedOctree< treeDataEdge > > | edgeTree_ |
wordList | regions_ |
label | surfaceClosed_ |
volumeType | outsideVolType_ |
Additional Inherited Members | |
![]() | |
static autoPtr< searchableSurface > | New (const word &surfaceType, const IOobject &io, const dictionary &dict) |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
![]() | |
static fileName | triSurfInstance (const Time &) |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static bool | canReadType (const word &fileType, bool verbose=false) |
static bool | canWriteType (const word &fileType, bool verbose=false) |
static bool | canRead (const fileName &name, bool verbose=false) |
static fileName | relativeFilePath (const IOobject &io, const fileName &f, const bool isGlobal=true) |
static fileName | checkFile (const IOobject &io, const bool isGlobal=true) |
static fileName | checkFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true) |
static fileName | findFile (const IOobject &io, const bool isGlobal=true) |
static fileName | findFile (const IOobject &io, const dictionary &dict, const bool isGlobal=true) |
static autoPtr< triSurface > | New (const fileName &name, const word &fileType) |
static autoPtr< triSurface > | New (const fileName &name) |
![]() | |
static const List< T > & | null () |
![]() | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
![]() | |
static bool | masterOnlyReading = false |
IOoject and searching on triSurface.
Note: when constructing from dictionary has the following parameters:
Dictionary parameters
Property | Description | Required | Default |
---|---|---|---|
type | triSurfaceMesh | selector | |
file | File name to locate the surface | no | |
fileType | The surface format (Eg, nastran) | no | |
scale | Scaling factor | no | 0 |
minQuality | Quality criterion | no | -1 |
Definition at line 102 of file triSurfaceMesh.H.
enum readAction |
Enumerator | |
---|---|
localOnly | |
localOrGlobal | |
masterOnly |
Definition at line 193 of file triSurfaceMesh.H.
|
protecteddelete |
triSurfaceMesh | ( | const IOobject & | io, |
const triSurface & | s | ||
) |
Definition at line 167 of file triSurfaceMesh.C.
References searchableSurface::bounds(), and PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
triSurfaceMesh | ( | const IOobject & | io | ) |
Definition at line 195 of file triSurfaceMesh.C.
References searchableSurface::bounds(), and PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
triSurfaceMesh | ( | const IOobject & | io, |
const dictionary & | dict | ||
) |
Definition at line 226 of file triSurfaceMesh.C.
References dict, Foam::endl(), dictionary::getOrDefault(), Foam::Info, keyType::LITERAL, IOobject::name(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), dictionary::readIfPresent(), and triSurface::relativeFilePath().
triSurfaceMesh | ( | const IOobject & | io, |
const readAction | r | ||
) |
Definition at line 286 of file triSurfaceMesh.C.
References searchableSurface::bounds(), Foam::expressions::patchExpr::debug, Foam::endl(), IOobject::globalFilePath(), IOobject::localFilePath(), triSurfaceMesh::localOrGlobal, UPstream::master(), triSurfaceMesh::masterOnly, IOobject::NO_READ, IOobject::objectPath(), UPstream::parRun(), triSurface::patches(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), Foam::Pout, IOobject::readOpt(), Pstream::scatter(), and triSurface::transfer().
triSurfaceMesh | ( | const IOobject & | io, |
const dictionary & | dict, | ||
const readAction | r | ||
) |
Definition at line 381 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, dict, Foam::endl(), dictionary::getOrDefault(), IOobject::globalFilePath(), Foam::Info, keyType::LITERAL, IOobject::localFilePath(), UPstream::master(), IOobject::name(), IOobject::NO_READ, word::null, IOobject::objectPath(), UPstream::parRun(), triSurface::patches(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), Foam::Pout, dictionary::readIfPresent(), IOobject::readOpt(), Pstream::scatter(), and triSurface::transfer().
|
virtual |
Definition at line 517 of file triSurfaceMesh.C.
Definition at line 44 of file triSurfaceMesh.C.
References Foam::BitOps::count(), and Foam::constant::electromagnetic::e.
Referenced by triSurfaceMesh::isSurfaceClosed().
|
protected |
Definition at line 60 of file triSurfaceMesh.C.
References triSurfaceMesh::addFaceToEdge(), HashTable::clear(), Foam::expressions::patchExpr::debug, Foam::endl(), f(), forAll, forAllConstIters(), Foam::invertManyToMany(), pFaces, PrimitivePatch<::Foam::List< labelledTri >, pointField >::pointFaces(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), and Foam::Pout.
|
staticprotected |
|
protecteddelete |
TypeName | ( | "triSurfaceMesh" | ) |
void clearOut | ( | ) |
Definition at line 523 of file triSurfaceMesh.C.
References triSurfaceRegionSearch::clearOut(), and triSurface::clearOut().
Referenced by distributedTriSurfaceMesh::clearOut().
|
virtual |
Reimplemented from triSurface.
Definition at line 605 of file triSurfaceMesh.C.
References triSurfaceRegionSearch::clearOut(), Foam::expressions::patchExpr::debug, Foam::endl(), regIOobject::eventNo(), IOobject::instance(), triSurface::movePoints(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), Foam::Pout, objectRegistry::time(), and Time::timeName().
const Foam::indexedOctree< Foam::treeDataEdge > & edgeTree | ( | ) | const |
Definition at line 638 of file triSurfaceMesh.C.
References PatchTools::calcBounds(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), treeBoundBox::extend(), Foam::identity(), boundBox::max(), boundBox::min(), nPoints, indexedOctree::perturbTol(), Foam::Pout, rndGen, VectorSpace< Vector< scalar >, scalar, 3 >::uniform(), and Foam::Zero.
|
virtual |
Implements searchableSurface.
Definition at line 721 of file triSurfaceMesh.C.
References forAll, IOobject::name(), patches, and List::setSize().
|
virtual |
Reimplemented from searchableSurface.
Reimplemented in closedTriSurfaceMesh.
Definition at line 735 of file triSurfaceMesh.C.
|
virtual |
Implements searchableSurface.
Definition at line 753 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::max(), volumeType::names, Foam::Pout, and volumeType::UNKNOWN.
|
inlinevirtual |
Implements searchableSurface.
Definition at line 239 of file triSurfaceMesh.H.
|
virtual |
Implements searchableSurface.
Definition at line 534 of file triSurfaceMesh.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::faceCentres(), PrimitivePatch< FaceList, PointField >::faceCentres(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::hasFaceCentres(), tmp::New(), and PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
|
virtual |
Implements searchableSurface.
Definition at line 562 of file triSurfaceMesh.C.
References coordinates(), f(), forAll, Foam::magSqr(), Foam::max(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), and Foam::sqr().
|
virtual |
Implements searchableSurface.
Definition at line 589 of file triSurfaceMesh.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
Referenced by powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), triSurfaceMeshPointSet::triSurfaceMeshPointSet(), and searchableSurfaces::writeStats().
Implements searchableSurface.
Definition at line 595 of file triSurfaceMesh.C.
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 788 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), triSurfaceSearch::findNearest(), Foam::max(), Foam::Pout, samples(), Foam::sqrt(), and Foam::Zero.
Referenced by distributedTriSurfaceMesh::findNearest().
|
virtual |
Reimplemented from searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 813 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), triSurfaceRegionSearch::findNearest(), Foam::max(), Foam::Pout, samples(), Foam::sqrt(), and Foam::Zero.
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 845 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, stdFoam::end(), Foam::endl(), triSurfaceSearch::findLine(), and Foam::Pout.
Referenced by distributedTriSurfaceMesh::findLine(), and powerLawLopesdaCostaZone::powerLawLopesdaCostaZone().
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 868 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, stdFoam::end(), Foam::endl(), triSurfaceSearch::findLineAny(), and Foam::Pout.
Referenced by distributedTriSurfaceMesh::findLineAny().
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 891 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, stdFoam::end(), Foam::endl(), triSurfaceSearch::findLineAll(), and Foam::Pout.
Referenced by distributedTriSurfaceMesh::findLineAll(), and triSurfaceTools::writeCloseness().
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 914 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Pout, and List::setSize().
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 947 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Pout, s, and Foam::Zero.
Referenced by distributedTriSurfaceMesh::getNormal().
|
virtual |
Implements searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 1100 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, indexedOctree::perturbTol(), points, Foam::Pout, List::setSize(), and volumeType::UNKNOWN.
Referenced by distributedTriSurfaceMesh::getVolumeType().
|
virtual |
Reimplemented from searchableSurface.
Definition at line 1030 of file triSurfaceMesh.C.
References IOobject::AUTO_WRITE, Foam::expressions::patchExpr::debug, Foam::dimless, Foam::endl(), IOobject::NO_READ, Foam::Pout, objectRegistry::time(), timeName, and Foam::HashTableOps::values().
|
virtual |
Reimplemented from searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 1069 of file triSurfaceMesh.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), fld, forAll, Foam::Pout, List::setSize(), and Foam::HashTableOps::values().
Referenced by distributedTriSurfaceMesh::getField().
Reimplemented from objectRegistry.
Definition at line 334 of file triSurfaceMesh.H.
References NotImplemented.
|
virtual |
Reimplemented from objectRegistry.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 1153 of file triSurfaceMesh.C.
References TimePaths::caseConstant(), TimePaths::caseSystem(), TimePaths::constant(), string::expand(), IOobject::instance(), fileName::isAbsolute(), Foam::isFile(), Foam::mkDir(), IOobject::objectPath(), fileName::path(), runTime, TimePaths::system(), IOobject::time(), Time::timeName(), and triSurface::write().
|
inlinevirtual |
Reimplemented from searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 348 of file triSurfaceMesh.H.
|
inlinevirtual |
Reimplemented from searchableSurface.
Reimplemented in distributedTriSurfaceMesh.
Definition at line 355 of file triSurfaceMesh.H.
References IOobject::globalFilePath(), and Foam::type().
|
protected |
Definition at line 114 of file triSurfaceMesh.H.
|
protected |
Definition at line 118 of file triSurfaceMesh.H.
|
mutableprotected |
Definition at line 121 of file triSurfaceMesh.H.
|
mutableprotected |
Definition at line 124 of file triSurfaceMesh.H.
|
mutableprotected |
Definition at line 127 of file triSurfaceMesh.H.
|
mutableprotected |
Definition at line 130 of file triSurfaceMesh.H.
|
static |
Definition at line 170 of file triSurfaceMesh.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.