extendedEdgeMesh + IO. More...


Public Member Functions | |
| TypeName ("extendedFeatureEdgeMesh") | |
| Runtime type information. More... | |
| extendedFeatureEdgeMesh (const IOobject &io) | |
| Construct (read) given an IOobject. More... | |
| extendedFeatureEdgeMesh (const IOobject &io, const extendedEdgeMesh &) | |
| Copy construct with IOobject. More... | |
| extendedFeatureEdgeMesh (const surfaceFeatures &sFeat, const objectRegistry &obr, const fileName &sFeatFileName, const boolList &surfBaffleRegions) | |
| Construct given a surface with selected edges,point. More... | |
| extendedFeatureEdgeMesh (const IOobject &io, const PrimitivePatch< faceList, pointField > &surf, const labelUList &featureEdges, const labelUList ®ionFeatureEdges, const labelUList &featurePoints) | |
| Construct from PrimitivePatch. More... | |
| extendedFeatureEdgeMesh (const IOobject &io, const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList ®ionEdges) | |
| Construct from all components. More... | |
| virtual | ~extendedFeatureEdgeMesh ()=default |
| Destructor. More... | |
| virtual bool | readData (Istream &) |
| ReadData function required for regIOobject read operation. More... | |
| virtual bool | writeData (Ostream &) const |
| WriteData function required for regIOobject write operation. More... | |
| virtual bool | global () const |
| Is object global. More... | |
| virtual fileName | filePath () const |
| Return complete path + object name if the file exists either in the case/processor or case otherwise null. More... | |
| virtual bool | write (const bool writeOnProc=true) const |
| Give precedence to the regIOobject write. More... | |
Public Member Functions inherited from regIOobject | |
| void | operator= (const regIOobject &)=delete |
| No copy assignment. More... | |
| TypeName ("regIOobject") | |
| Runtime type information. More... | |
| regIOobject (const IOobject &io, const bool isTimeObject=false) | |
| Construct from IOobject. The optional flag adds special handling if the object is the top-level regIOobject (eg, Time). More... | |
| regIOobject (const regIOobject &rio) | |
| Copy construct. More... | |
| regIOobject (const regIOobject &rio, bool registerCopy) | |
| Copy construct, transferring registry registration to the copy if registerCopy is true. More... | |
| regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
| Copy construct with new name, transferring registry registration to the copy if registerCopy is true. More... | |
| regIOobject (const IOobject &io, const regIOobject &rio) | |
| Copy construct with new IO parameters. More... | |
| virtual | ~regIOobject () |
| Destructor. More... | |
| bool | checkIn () |
| Add object to registry, if not already registered. More... | |
| bool | checkOut () |
| Remove all file watches and remove object from registry. More... | |
| virtual void | addWatch () |
| Add file watch on object (if registered and READ_IF_MODIFIED) More... | |
| bool | registered () const noexcept |
| Query the registered state (ie, has been checked in). This is not necessarily the same as registerObject(), which is just a stated preference. More... | |
| bool | ownedByRegistry () const noexcept |
| Is this object owned by the registry? More... | |
| bool | store () |
| Register object with its registry and transfer ownership to the registry. More... | |
| void | release (const bool unregister=false) noexcept |
| Set object as not ownedByRegistry. More... | |
| label | eventNo () const noexcept |
| Event number at last update. More... | |
| label & | eventNo () noexcept |
| Event number at last update. More... | |
| bool | upToDate (const regIOobject &) const |
| Return true if up-to-date with respect to given object. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
| Return true if up-to-date with respect to given objects. More... | |
| void | setUpToDate () |
| Set as up-to-date. More... | |
| virtual void | rename (const word &newName) |
| Rename. More... | |
| const dictionary * | findMetaData () const noexcept |
| Return pointer to meta-data or nullptr. More... | |
| dictionary & | getMetaData () noexcept |
| Get or create meta-data. More... | |
| void | removeMetaData () |
| Remove meta-data. More... | |
| virtual void | updateMetaData () |
| Update internal meta-data (eg, prior to writing) More... | |
| bool | headerOk () |
| Read and check header info. Does not check the headerClassName. More... | |
| Istream & | readStream (const word &, const bool readOnProc=true) |
| Return Istream and check object type against that given. More... | |
| void | close () |
| Close Istream. More... | |
| virtual bool | read () |
| Read object. More... | |
| virtual label | addWatch (const fileName &) |
| Add file watch for fileName on object if not yet watched. More... | |
| const labelList & | watchIndices () const noexcept |
| Read access to file-monitoring handles. More... | |
| labelList & | watchIndices () noexcept |
| Write access to file-monitoring handles. More... | |
| virtual bool | modified () const |
| Return true if the object's file (or files for objectRegistry) have been modified. (modified state is cached by Time) More... | |
| virtual bool | readIfModified () |
| Read object if modified (as set by call to modified) More... | |
| virtual bool | writeObject (IOstreamOption streamOpt, const bool writeOnProc) const |
| Write using stream options. More... | |
| virtual bool | write (const bool writeOnProc=true) const |
| Write using setting from DB. More... | |
| void | operator= (const IOobject &io) |
| Copy assignment. More... | |
| virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType cmp, const bool writeOnProc) const |
| Write using given format, version and compression. More... | |
Public Member Functions inherited from IOobject | |
| TypeName ("IOobject") | |
| Declare type-name, virtual type (with debug switch) More... | |
| IOobject (const IOobject &)=default | |
| Copy construct. More... | |
| virtual | ~IOobject ()=default |
| Destructor. More... | |
| IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, IOobjectOption ioOpt=IOobjectOption()) | |
| Construct from name, instance, registry, io options. More... | |
| IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, IOobjectOption ioOpt=IOobjectOption()) | |
| Construct from name, instance, local, registry, io options. More... | |
| IOobject (const fileName &path, const objectRegistry ®istry, IOobjectOption ioOpt=IOobjectOption()) | |
| Construct from path, registry, io options. More... | |
| IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false) | |
| Construct from name, instance, registry, io options. More... | |
| IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false) | |
| Construct from name, instance, local, registry, io options. More... | |
| IOobject (const fileName &path, const objectRegistry ®istry, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, bool registerObject=true, bool globalObject=false) | |
| Construct from path, registry, io options. More... | |
| IOobject (const IOobject &io, const objectRegistry ®istry) | |
| Copy construct, resetting registry. More... | |
| IOobject (const IOobject &io, const word &name) | |
| Copy construct, resetting name. More... | |
| IOobject (const IOobject &io, const word &name, const fileName &local) | |
| Copy construct, resetting name and local component. More... | |
| IOobject (const IOobject &io, IOobjectOption::readOption rOpt, IOobjectOption::writeOption wOpt) | |
| Copy construct, resetting read/write options. More... | |
| IOobject (const IOobject &io, IOobjectOption::registerOption regOpt) | |
| Copy construct, resetting register option. More... | |
| autoPtr< IOobject > | clone () const |
| Clone. More... | |
| autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
| Clone resetting registry. More... | |
| const objectRegistry & | db () const noexcept |
| Return the local objectRegistry. More... | |
| const Time & | time () const noexcept |
| Return Time associated with the objectRegistry. More... | |
| const word & | name () const noexcept |
| Return the object name. More... | |
| const word & | headerClassName () const noexcept |
| Return name of the class name read from header. More... | |
| word & | headerClassName () noexcept |
| Return non-constant access to the class name read from header. More... | |
| const string & | note () const noexcept |
| Return the optional note. More... | |
| string & | note () noexcept |
| Modifiable access to the optional note. More... | |
| unsigned | labelByteSize () const noexcept |
| The sizeof (label) in bytes, possibly read from the header. More... | |
| unsigned | scalarByteSize () const noexcept |
| The sizeof (scalar) in bytes, possibly read from the header. More... | |
| void | resetHeader (const word &newName=word::null) |
| Clear various bits (headerClassName, note, sizeof...) that would be obtained when reading from a file. More... | |
| bool | hasHeaderClass () const noexcept |
| True if headerClassName() is non-empty (after reading) More... | |
| template<class Type > | |
| bool | isHeaderClass () const |
| Check if headerClassName() equals Type::typeName. More... | |
| template<class Type > | |
| bool | isHeaderClassName () const |
| Same as isHeaderClass() More... | |
| word | group () const |
| Return group (extension part of name) More... | |
| word | member () const |
| Return member (name without the extension) More... | |
| const fileName & | rootPath () const noexcept |
| Return the Time::rootPath() More... | |
| const fileName & | caseName () const noexcept |
| Return the Time::caseName() More... | |
| const fileName & | globalCaseName () const noexcept |
| Return the Time::globalCaseName() More... | |
| const fileName & | instance () const noexcept |
| Read access to instance path component. More... | |
| fileName & | instance () noexcept |
| Write access to instance path component. More... | |
| const fileName & | local () const noexcept |
| Read access to local path component. More... | |
| fileName | path () const |
| The complete path for the object (with instance, local,...). More... | |
| fileName | globalPath () const |
| The complete global path for the object (with instance, local,...) More... | |
| fileName | path (const word &instance, const fileName &local=fileName::null) const |
| The complete path with alternative instance and local. More... | |
| fileName | globalPath (const word &instance, const fileName &local=fileName::null) const |
| The complete global path with alternative instance and local. More... | |
| fileName | objectPath () const |
| The complete path + object name. More... | |
| fileName | globalObjectPath () const |
| The complete global path + object name. More... | |
| fileName | objectRelPath () const |
| The object path relative to the root. More... | |
| fileName | localFilePath (const word &typeName, const bool search=true) const |
| Redirect to fileHandler filePath, searching locally. More... | |
| fileName | globalFilePath (const word &typeName, const bool search=true) const |
| Redirect to fileHandler filePath, searching up if in parallel. More... | |
| IOstreamOption | parseHeader (const dictionary &headerDict) |
| Parse 'FoamFile' header contents and set the IOobject characteristics and return the stream characteristics. More... | |
| bool | readHeader (Istream &is) |
| Read header ('FoamFile' dictionary) and set the IOobject and stream characteristics. More... | |
| bool | readHeader (dictionary &headerDict, Istream &is) |
| Read header (the 'FoamFile' dictionary) and set the IOobject and stream characteristics. More... | |
| template<class Type > | |
| bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
| Read header (respects is_globalIOobject trait) and check its info. More... | |
| template<class Type > | |
| fileName | typeFilePath (const bool search=true) const |
| Call localFilePath or globalFilePath for given type depending on its is_globalIOobject trait. More... | |
| template<class Type > | |
| void | warnNoRereading () const |
| Helper: warn that type does not support re-reading. More... | |
| bool | writeHeader (Ostream &os) const |
| Write header with current type() More... | |
| bool | writeHeader (Ostream &os, const word &objectType) const |
| Write header with override of type. More... | |
| void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
| Write header into a dictionary with current type() and given output format. More... | |
| void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
| Write header into a dictionary with override of type and given output format. More... | |
| bool | good () const noexcept |
| Did last readHeader() succeed? More... | |
| bool | bad () const noexcept |
| Did last readHeader() fail? More... | |
| InfoProxy< IOobject > | info () const noexcept |
| Return info proxy, for printing information to a stream. More... | |
| void | operator= (const IOobject &io) |
| Copy assignment, copies all values (except the registry) More... | |
| template<> | |
| bool | isHeaderClass () const |
Specialization for void always returns true (no headerClassName check). More... | |
| template<class StringType > | |
| Foam::word | groupName (StringType base, const word &group) |
| template<class Type > | |
| Foam::fileName | typeFilePath (const bool search) const |
Public Member Functions inherited from IOobjectOption | |
| constexpr | IOobjectOption (readOption rOpt=readOption::NO_READ, writeOption wOpt=writeOption::NO_WRITE, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept |
| Default construct (NO_READ, NO_WRITE, REGISTER, non-global) or construct with specified options. More... | |
| constexpr | IOobjectOption (readOption rOpt, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept |
| Construct NO_WRITE with specified read/register options. More... | |
| constexpr | IOobjectOption (writeOption wOpt, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept |
| Construct NO_READ with specified write/register options. More... | |
| constexpr | IOobjectOption (registerOption registerObject, bool globalObject=false) noexcept |
| Construct (NO_READ, NO_WRITE) with specified register option. More... | |
| constexpr | IOobjectOption (readOption rOpt, writeOption wOpt, bool registerObject, bool globalObject=false) noexcept |
| Construct from components with specified register option as bool. More... | |
| constexpr | IOobjectOption (bool registerObject, bool globalObject=false) noexcept |
| Construct (NO_READ, NO_WRITE) with specified register option as bool. More... | |
| readOption | readOpt () const noexcept |
| Get the read option. More... | |
| readOption | readOpt (readOption opt) noexcept |
| Set the read option. More... | |
| writeOption | writeOpt () const noexcept |
| Get the write option. More... | |
| writeOption | writeOpt (writeOption opt) noexcept |
| Set the write option. More... | |
| bool | registerObject () const noexcept |
| Should objects created with this IOobject be registered? More... | |
| bool | registerObject (bool on) noexcept |
| Change registration preference. More... | |
| bool | globalObject () const noexcept |
| True if object is treated the same for all processors. More... | |
| bool | globalObject (bool on) noexcept |
| Change global-object status. More... | |
| bool | isAnyRead () const noexcept |
| True if any reading may be required (ie, != NO_READ) More... | |
| bool | isReadRequired () const noexcept |
| True if (MUST_READ | READ_MODIFIED) bits are set. More... | |
| bool | isReadOptional () const noexcept |
| True if (LAZY_READ) bits are set [same as READ_IF_PRESENT]. More... | |
| readOption & | readOpt () noexcept |
| Access to the read option. More... | |
| writeOption & | writeOpt () noexcept |
| Access to the write option. More... | |
| bool & | registerObject () noexcept |
| Access to the register object option. More... | |
| bool & | globalObject () noexcept |
| Access to the global object option. More... | |
Public Member Functions inherited from extendedEdgeMesh | |
| TypeName ("extendedEdgeMesh") | |
| Runtime type information. More... | |
| extendedEdgeMesh () | |
| Default construct. More... | |
| extendedEdgeMesh (const extendedEdgeMesh &fem) | |
| Copy construct. More... | |
| extendedEdgeMesh (const fileName &name) | |
| Construct from file name (uses extension to determine type) More... | |
| extendedEdgeMesh (const fileName &name, const word &fileType) | |
| Construct from file name with given format type. More... | |
| extendedEdgeMesh (Istream &is) | |
| Construct from Istream. More... | |
| extendedEdgeMesh (const pointField &points, const edgeList &edges) | |
| Copy construct from components. More... | |
| extendedEdgeMesh (pointField &&points, edgeList &&edges) | |
| Move construct from components. More... | |
| extendedEdgeMesh (const surfaceFeatures &sFeat, const boolList &surfBaffleRegions) | |
| Construct given a surface with selected edges,points. More... | |
| extendedEdgeMesh (const PrimitivePatch< faceList, pointField > &surf, const labelUList &featureEdges, const labelUList ®ionFeatureEdges, const labelUList &featurePoints) | |
| Construct from PrimitivePatch. More... | |
| extendedEdgeMesh (const pointField &pts, const edgeList &eds, label concaveStart, label mixedStart, label nonFeatureStart, label internalStart, label flatStart, label openStart, label multipleStart, const vectorField &normals, const List< sideVolumeType > &normalVolumeTypes, const vectorField &edgeDirections, const labelListList &normalDirections, const labelListList &edgeNormals, const labelListList &featurePointNormals, const labelListList &featurePointEdges, const labelList ®ionEdges) | |
| Construct from all components. More... | |
| declareRunTimeSelectionTable (autoPtr, extendedEdgeMesh, fileExtension,(const fileName &name),(name)) | |
| ~extendedEdgeMesh ()=default | |
| Destructor. More... | |
| void | nearestFeaturePoint (const point &sample, scalar searchDistSqr, pointIndexHit &info) const |
| Find nearest surface edge for the sample point. More... | |
| void | nearestFeatureEdge (const point &sample, scalar searchDistSqr, pointIndexHit &info) const |
| Find nearest surface edge for the sample point. More... | |
| void | nearestFeatureEdge (const pointField &samples, const scalarField &searchDistSqr, List< pointIndexHit > &info) const |
| Find nearest surface edge for each sample point. More... | |
| void | nearestFeatureEdgeByType (const point &sample, const scalarField &searchDistSqr, List< pointIndexHit > &info) const |
| Find the nearest point on each type of feature edge. More... | |
| void | allNearestFeaturePoints (const point &sample, scalar searchRadiusSqr, List< pointIndexHit > &info) const |
| Find all the feature points within searchDistSqr of sample. More... | |
| void | allNearestFeatureEdges (const point &sample, const scalar searchRadiusSqr, List< pointIndexHit > &info) const |
| Find all the feature edges within searchDistSqr of sample. More... | |
| label | convexStart () const |
| Return the index of the start of the convex feature points. More... | |
| label | concaveStart () const |
| Return the index of the start of the concave feature points. More... | |
| label | mixedStart () const |
| Return the index of the start of the mixed type feature points. More... | |
| label | nonFeatureStart () const |
| Return the index of the start of the non-feature points. More... | |
| label | externalStart () const |
| Return the index of the start of the external feature edges. More... | |
| label | internalStart () const |
| Return the index of the start of the internal feature edges. More... | |
| label | flatStart () const |
| Return the index of the start of the flat feature edges. More... | |
| label | openStart () const |
| Return the index of the start of the open feature edges. More... | |
| label | multipleStart () const |
| Return the index of the start of the multiply-connected feature. More... | |
| bool | featurePoint (label ptI) const |
| Return whether or not the point index is a feature point. More... | |
| const vectorField & | normals () const |
| Return the normals of the surfaces adjacent to the feature edges. More... | |
| const List< sideVolumeType > & | normalVolumeTypes () const |
| Return. More... | |
| const vectorField & | edgeDirections () const |
| Return the edgeDirection vectors. More... | |
| const labelListList & | normalDirections () const |
| vector | edgeDirection (label edgeI, label ptI) const |
| Return the direction of edgeI, pointing away from ptI. More... | |
| const labelListList & | edgeNormals () const |
| Return the indices of the normals that are adjacent to the. More... | |
| vectorField | edgeNormals (const labelList &edgeNormIs) const |
| Return the normal vectors for a given set of normal indices. More... | |
| vectorField | edgeNormals (label edgeI) const |
| Return the normal vectors for a given edge. More... | |
| const labelListList & | featurePointNormals () const |
| Return the indices of the normals that are adjacent to the. More... | |
| vectorField | featurePointNormals (label ptI) const |
| Return the normal vectors for a given feature point. More... | |
| const labelListList & | featurePointEdges () const |
| Return the edge labels for a given feature point. Edges are. More... | |
| const labelList & | regionEdges () const |
| Return the feature edges which are on the boundary between. More... | |
| pointStatus | getPointStatus (label ptI) const |
| Return the pointStatus of a specified point. More... | |
| edgeStatus | getEdgeStatus (label edgeI) const |
| Return the edgeStatus of a specified edge. More... | |
| PackedList< 2 > | edgeBaffles (label edgeI) const |
| Return the baffle faces of a specified edge. More... | |
| const indexedOctree< treeDataPoint > & | pointTree () const |
| Demand driven construction of octree for feature points. More... | |
| const indexedOctree< treeDataEdge > & | edgeTree () const |
| Demand driven construction of octree for boundary edges. More... | |
| const PtrList< indexedOctree< treeDataEdge > > & | edgeTreesByType () const |
| Demand driven construction of octree for boundary edges by type. More... | |
| void | transfer (extendedEdgeMesh &mesh) |
| Transfer the contents of the argument and annul the argument. More... | |
| virtual void | clear () |
| Clear all storage. More... | |
| void | add (const extendedEdgeMesh &fem) |
| Add extendedEdgeMesh. No filtering of duplicates. More... | |
| void | flipNormals () |
| Flip normals. All concave become convex, all internal external. More... | |
| void | autoMap (const pointField &subPoints, const edgeList &subEdges, const labelList &pointMap, const labelList &edgeMap) |
| Update with derived geometry. More... | |
| void | trim (const searchableSurface &surf, const volumeType volType, labelList &pointMap, labelList &edgeMap) |
| Trim to surface. Keep volType side. Return map from current back. More... | |
| void | setFromStatus (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge) |
| Order according to point and edge status. More... | |
| bool | mergePointsAndSort (const scalar mergeDist, labelList &pointMap, labelList &edgeMap) |
| Geometric merge points. Returns true if any points merged. More... | |
| bool | read (const fileName &name, const word &ext) |
| Read from file. Chooses reader based on explicit extension. More... | |
| virtual bool | read (const fileName &name) |
| Read from file. Chooses reader based on detected extension. More... | |
| void | writeObj (const fileName &prefix) const |
| Write all components of the extendedEdgeMesh as obj files. More... | |
| virtual void | writeStats (Ostream &os) const |
| Dump some information. More... | |
Public Member Functions inherited from edgeMesh | |
| edgeMesh (const faMesh &mesh) | |
| Construct finite-area edge mesh faMesh reference. More... | |
| label | size () const |
| Return size. Number of internal edges. More... | |
| const edgeVectorField & | C () const |
| Field of edge centres. More... | |
| TypeName ("edgeMesh") | |
| Runtime type information. More... | |
| edgeMesh () | |
| Default construct. More... | |
| edgeMesh (const edgeMesh &em) | |
| Copy construct. More... | |
| edgeMesh (edgeMesh &&em) | |
| Move construct. More... | |
| edgeMesh (const pointField &points, const edgeList &edges) | |
| Copy construct from components. More... | |
| edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
| Move construct from components. More... | |
| edgeMesh (const fileName &name) | |
| Construct from file name (uses extension to determine type) More... | |
| edgeMesh (const fileName &name, const word &fileType) | |
| Construct from file name with specified type. More... | |
| declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
| virtual | ~edgeMesh ()=default |
| Destructor. More... | |
| declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options)) | |
| void | transfer (edgeMesh &mesh) |
| Transfer the contents of the argument and annul the argument. More... | |
| bool | read (const fileName &name, const word &fileType) |
| Read from file. Chooses reader based on explicit extension. More... | |
| const pointField & | points () const noexcept |
| Return points. More... | |
| const edgeList & | edges () const noexcept |
| Return edges. More... | |
| const labelListList & | pointEdges () const |
| Return edges. More... | |
| label | regions (labelList &edgeRegion) const |
| Find connected regions. Set region number per edge. More... | |
| virtual void | scalePoints (const scalar scaleFactor) |
| Scale points. A non-positive factor is ignored. More... | |
| virtual void | mergePoints (const scalar mergeDist) |
| Geometric merge points (points within mergeDist) prior to. More... | |
| virtual void | mergeEdges () |
| Merge duplicate edges and eliminate unused points. More... | |
| virtual void | write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
| Write to file, choosing writer based on the file extension. More... | |
| virtual void | write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const |
| Write to file with given format type. More... | |
| void | operator= (const edgeMesh &rhs) |
| Copy assignment. More... | |
| void | operator= (edgeMesh &&rhs) |
| Move assignment. More... | |
Public Member Functions inherited from edgeMeshFormatsCore | |
| edgeMeshFormatsCore ()=default | |
| Default construct. More... | |
| virtual | ~edgeMeshFormatsCore ()=default |
| Destructor. More... | |
Public Member Functions inherited from GeoMesh< faMesh > | |
| GeoMesh (const faMesh &mesh) | |
| Construct from mesh reference. More... | |
| bool | hasDb () const |
| Return true if thisDb() is a valid DB - here = false. More... | |
| const objectRegistry & | thisDb () const |
| Return the object registry. More... | |
| const faMesh & | operator() () const |
| Return reference to the underlying mesh. More... | |
Additional Inherited Members | |
Public Types inherited from IOobject | |
| enum | objectState : char { GOOD, BAD } |
| Enumeration defining the valid states of an IOobject. More... | |
| enum | fileCheckTypes : char { timeStamp, timeStampMaster, inotify, inotifyMaster } |
| Enumeration defining the file checking options. More... | |
Public Types inherited from IOobjectOption | |
| enum | readOption : unsigned char { NO_READ = 0, MUST_READ = 0x1, READ_MODIFIED = 0x3, MUST_READ_IF_MODIFIED = 0x3, LAZY_READ = 0x4, READ_IF_PRESENT = 0x4 } |
| Enumeration defining read preferences. More... | |
| enum | writeOption : unsigned char { NO_WRITE = 0, AUTO_WRITE = 0x10 } |
| Enumeration defining write preferences. More... | |
| enum | registerOption : unsigned char { NO_REGISTER = 0, REGISTER = 1, LEGACY_REGISTER = 2 } |
| Enumeration for use with registerObject(). Values map to bool (false/true) More... | |
Public Types inherited from extendedEdgeMesh | |
| enum | pointStatus { CONVEX, CONCAVE, MIXED, NONFEATURE } |
| enum | edgeStatus { EXTERNAL, INTERNAL, FLAT, OPEN, MULTIPLE, NONE } |
| enum | sideVolumeType { INSIDE = 0, OUTSIDE = 1, BOTH = 2, NEITHER = 3 } |
| Normals point to the outside. More... | |
Public Types inherited from GeoMesh< faMesh > | |
| typedef faMesh | Mesh |
| typedef faMesh ::BoundaryMesh | BoundaryMesh |
Static Public Member Functions inherited from regIOobject | |
| template<class Type > | |
| static Type & | store (Type *p) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (autoPtr< Type > &ptr) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (autoPtr< Type > &&ptr) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (refPtr< Type > &ptr) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (refPtr< Type > &&ptr) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (tmp< Type > &ptr) |
| Transfer pointer ownership to its registry. More... | |
| template<class Type > | |
| static Type & | store (tmp< Type > &&ptr) |
| Transfer pointer ownership to its registry. More... | |
Static Public Member Functions inherited from IOobject | |
| static bool | bannerEnabled () noexcept |
| Status of output file banner. More... | |
| static bool | bannerEnabled (bool on) noexcept |
| Enable/disable output file banner. More... | |
| static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
| Split path into instance, local, name components. More... | |
| template<class StringType > | |
| static word | groupName (StringType base, const word &group) |
| Create dot-delimited name.group string. More... | |
| static word | group (const word &name) |
| Return group (extension part of name) More... | |
| static word | member (const word &name) |
| Return member (name without the extension) More... | |
| static word | scopedName (const std::string &scope, const word &name) |
| Create scope:name or scope_name string. More... | |
| static word | scopedName (const std::string &scope, const word &name1, const word &name2) |
| Create scope:name1:name2 or scope_name1_name2 string. More... | |
| static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
| Return the IOobject, but also consider an alternative file name. More... | |
| static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
| Write the standard OpenFOAM file/dictionary banner. More... | |
| static Ostream & | writeDivider (Ostream &os) |
| Write the standard file section divider. More... | |
| static Ostream & | writeEndDivider (Ostream &os) |
| Write the standard end file divider. More... | |
Static Public Member Functions inherited from IOobjectOption | |
| static bool | isAnyRead (readOption opt) noexcept |
| True if any reading may be required (ie, != NO_READ) More... | |
| static bool | isReadRequired (readOption opt) noexcept |
| True if (MUST_READ | READ_MODIFIED) bits are set. More... | |
| static bool | isReadOptional (readOption opt) noexcept |
| True if (LAZY_READ) bits are set [same as READ_IF_PRESENT]. More... | |
| static readOption | lazierRead (readOption opt) noexcept |
| Downgrade readOption optional (LAZY_READ), leaves NO_READ intact. More... | |
Static Public Member Functions inherited from extendedEdgeMesh | |
| static wordHashSet | readTypes () |
| Summary of supported read file types. More... | |
| static wordHashSet | writeTypes () |
| Summary of supported write file types. More... | |
| static bool | canReadType (const word &fileType, bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canWriteType (const word &fileType, bool verbose=false) |
| Can we write this file format type? More... | |
| static bool | canRead (const fileName &name, bool verbose=false) |
| Can we read this file format? More... | |
| static autoPtr< extendedEdgeMesh > | New (const fileName &name, const word &fileType) |
| Select constructed from filename with given file format. More... | |
| static autoPtr< extendedEdgeMesh > | New (const fileName &name) |
| Select constructed from filename (implicit extension) More... | |
| static edgeStatus | classifyEdge (const List< vector > &norms, const labelList &edNorms, const vector &fC0tofC1) |
| Classify the type of feature edge. Requires face centre 0 to face. More... | |
| static void | sortedOrder (const List< extendedEdgeMesh::pointStatus > &pointStat, const List< extendedEdgeMesh::edgeStatus > &edgeStat, labelList &sortedToOriginalPoint, labelList &sortedToOriginalEdge, label &pointConcaveStart, label &pointMixedStart, label &pointNonFeatStart, label &edgeInternalStart, label &edgeFlatStart, label &edgeOpenStart, label &edgeMultipleStart) |
| Determine the ordering. More... | |
Static Public Member Functions inherited from edgeMesh | |
| static label | size (const Mesh &mesh) |
| Return size. Number of internal edges. More... | |
| static wordHashSet | readTypes () |
| Summary of supported read file types. More... | |
| static wordHashSet | writeTypes () |
| Summary of supported write file types. More... | |
| static bool | canReadType (const word &fileType, bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canWriteType (const word &fileType, bool verbose=false) |
| Can we write this file format type? More... | |
| static bool | canRead (const fileName &name, bool verbose=false) |
| Can we read this file format? More... | |
| static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
| Read construct from filename with given format. More... | |
| static autoPtr< edgeMesh > | New (const fileName &name) |
| Select constructed from filename (implicit extension) More... | |
| static void | write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
| Write to file (format implicit in the extension) More... | |
| static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) |
| Write to file, with given format. More... | |
Static Public Member Functions inherited from edgeMeshFormatsCore | |
| static bool | checkSupport (const wordHashSet &available, const word &fileType, const bool verbose=false, const char *functionName=nullptr) |
| Verbose checking of fileType in the list of available types. More... | |
Static Public Attributes inherited from IOobject | |
| static const Enum< fileCheckTypes > | fileCheckTypesNames |
| Names for the fileCheckTypes. More... | |
| static char | scopeSeparator |
| Character for scoping object names (':' or '_') More... | |
| static fileCheckTypes | fileModificationChecking |
| Type of file modification checking. More... | |
| static float | fileModificationSkew |
| Time skew (seconds) for file modification checks. More... | |
| static int | maxFileModificationPolls |
| Max number of times to poll for file modification changes. More... | |
Static Public Attributes inherited from extendedEdgeMesh | |
| static const Enum< pointStatus > | pointStatusNames_ |
| static const Enum< edgeStatus > | edgeStatusNames_ |
| static const Enum< sideVolumeType > | sideVolumeTypeNames_ |
| static scalar | cosNormalAngleTol_ |
| Angular closeness tolerance for treating normals as the same. More... | |
| static constexpr label | nPointTypes = 4 |
| Number of possible point types (i.e. number of slices) More... | |
| static constexpr label | nEdgeTypes = 5 |
| Number of possible feature edge types (i.e. number of slices) More... | |
Static Public Attributes inherited from edgeMeshFormatsCore | |
| static word | nativeExt |
| The file extension corresponding to 'native' edge format. More... | |
Protected Member Functions inherited from regIOobject | |
| bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
| Helper: check readOpt flags and read if necessary. More... | |
Protected Member Functions inherited from IOobject | |
| void | setBad (const string &s) |
| Set the object state to bad. More... | |
Protected Member Functions inherited from extendedEdgeMesh | |
| extendedEdgeMesh (std::nullptr_t) | |
| Construct null, initializing start indices with -1. More... | |
| pointStatus | classifyFeaturePoint (label ptI) const |
| Classify the type of feature point. Requires valid stored member. More... | |
| void | cut (const searchableSurface &, labelList &pMap, labelList &eMap, labelList &pointsFromEdge, labelList &oldEdge, labelList &surfTri) |
| Cut edges with surface. Return map from cut points&edges back. More... | |
| void | select (const searchableSurface &surf, const volumeType volType, labelList &pMap, labelList &eMap) |
| Remove outside/inside edges. volType denotes which side to keep. More... | |
| template<class Patch > | |
| void | sortPointsAndEdges (const Patch &, const labelUList &featureEdges, const labelUList ®ionFeatureEdges, const labelUList &feaurePoints) |
Protected Member Functions inherited from edgeMesh | |
| pointField & | storedPoints () noexcept |
| Non-const access to global points. More... | |
| edgeList & | storedEdges () noexcept |
| Non-const access to the edges. More... | |
Static Protected Member Functions inherited from IOobject | |
| static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
| Helper: write content for FoamFile IOobject header with optional meta information. More... | |
| static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
| Helper: write dictionary content for FoamFile header with optional meta information. More... | |
Static Protected Member Functions inherited from edgeMeshFormatsCore | |
| static string | getLineNoComment (ISstream &is, const char comment='#') |
| Read non-comment line. More... | |
Protected Attributes inherited from extendedEdgeMesh | |
| label | concaveStart_ |
| Index of the start of the concave feature points. More... | |
| label | mixedStart_ |
| Index of the start of the mixed type feature points. More... | |
| label | nonFeatureStart_ |
| Index of the start of the non-feature points. More... | |
| label | internalStart_ |
| Index of the start of the internal feature edges. More... | |
| label | flatStart_ |
| Index of the start of the flat feature edges. More... | |
| label | openStart_ |
| Index of the start of the open feature edges. More... | |
| label | multipleStart_ |
| Index of the start of the multiply-connected feature edges. More... | |
| vectorField | normals_ |
| Normals of the features, to be referred to by index by both feature. More... | |
| List< sideVolumeType > | normalVolumeTypes_ |
| Type per normal: which side of normal to mesh. More... | |
| vectorField | edgeDirections_ |
| Flat and open edges require the direction of the edge. More... | |
| labelListList | normalDirections_ |
| Starting directions for the edges. More... | |
| labelListList | edgeNormals_ |
| Indices of the normals that are adjacent to the feature edges. More... | |
| labelListList | featurePointNormals_ |
| Indices of the normals that are adjacent to the feature points. More... | |
| labelListList | featurePointEdges_ |
| Indices of feature edges attached to feature points. The edges are. More... | |
| labelList | regionEdges_ |
| Feature edges which are on the boundary between regions. More... | |
| std::unique_ptr< indexedOctree< treeDataPoint > > | pointTree_ |
| Search tree for all feature points. More... | |
| std::unique_ptr< indexedOctree< treeDataEdge > > | edgeTree_ |
| Search tree for all edges. More... | |
| PtrList< indexedOctree< treeDataEdge > > | edgeTreesByType_ |
| Individual search trees for each type of edge. More... | |
Protected Attributes inherited from GeoMesh< faMesh > | |
| const faMesh & | mesh_ |
| Reference to Mesh. More... | |
Static Protected Attributes inherited from regIOobject | |
| static bool | masterOnlyReading = false |
| To flag master-only reading of objects. More... | |
Static Protected Attributes inherited from extendedEdgeMesh | |
| static label | convexStart_ = 0 |
| Index of the start of the convex feature points - static as 0. More... | |
| static label | externalStart_ = 0 |
| Index of the start of the external feature edges - static as 0. More... | |
|
explicit |
Construct (read) given an IOobject.
Definition at line 34 of file extendedFeatureEdgeMesh.C.
References regIOobject::close(), Foam::ensightOutput::debug, extendedEdgeMesh::edgeDirections_, edgeMesh::edges(), Foam::endl(), forAll, regIOobject::headerOk(), IOobjectOption::isReadOptional(), IOobjectOption::isReadRequired(), Foam::mag(), edgeMesh::points(), Foam::Pout, pts, regIOobject::readStream(), List< T >::setSize(), and UList< T >::size().

| extendedFeatureEdgeMesh | ( | const IOobject & | io, |
| const extendedEdgeMesh & | em | ||
| ) |
Copy construct with IOobject.
Definition at line 77 of file extendedFeatureEdgeMesh.C.
| extendedFeatureEdgeMesh | ( | const surfaceFeatures & | sFeat, |
| const objectRegistry & | obr, | ||
| const fileName & | sFeatFileName, | ||
| const boolList & | surfBaffleRegions | ||
| ) |
Construct given a surface with selected edges,point.
(surfaceFeatures), an objectRegistry and a fileName to write to. Extracts, classifies and reorders the data from surfaceFeatures.
Definition at line 88 of file extendedFeatureEdgeMesh.C.
| extendedFeatureEdgeMesh | ( | const IOobject & | io, |
| const PrimitivePatch< faceList, pointField > & | surf, | ||
| const labelUList & | featureEdges, | ||
| const labelUList & | regionFeatureEdges, | ||
| const labelUList & | featurePoints | ||
| ) |
Construct from PrimitivePatch.
Definition at line 112 of file extendedFeatureEdgeMesh.C.
| extendedFeatureEdgeMesh | ( | const IOobject & | io, |
| const pointField & | pts, | ||
| const edgeList & | eds, | ||
| label | concaveStart, | ||
| label | mixedStart, | ||
| label | nonFeatureStart, | ||
| label | internalStart, | ||
| label | flatStart, | ||
| label | openStart, | ||
| label | multipleStart, | ||
| const vectorField & | normals, | ||
| const List< sideVolumeType > & | normalVolumeTypes, | ||
| const vectorField & | edgeDirections, | ||
| const labelListList & | normalDirections, | ||
| const labelListList & | edgeNormals, | ||
| const labelListList & | featurePointNormals, | ||
| const labelListList & | featurePointEdges, | ||
| const labelList & | regionEdges | ||
| ) |
Construct from all components.
Definition at line 126 of file extendedFeatureEdgeMesh.C.
|
virtualdefault |
Destructor.
| TypeName | ( | "extendedFeatureEdgeMesh" | ) |
Runtime type information.
|
virtual |
ReadData function required for regIOobject read operation.
Reimplemented from regIOobject.
Definition at line 173 of file extendedFeatureEdgeMesh.C.
References IOstream::bad().

|
virtual |
WriteData function required for regIOobject write operation.
Implements regIOobject.
Definition at line 180 of file extendedFeatureEdgeMesh.C.
References IOstream::good(), and os().

|
inlinevirtual |
Is object global.
Reimplemented from regIOobject.
Definition at line 161 of file extendedFeatureEdgeMesh.H.
|
inlinevirtual |
Return complete path + object name if the file exists either in the case/processor or case otherwise null.
Reimplemented from regIOobject.
Definition at line 170 of file extendedFeatureEdgeMesh.H.
References IOobject::globalFilePath(), and Foam::type().

| bool write |
Give precedence to the regIOobject write.
Definition at line 130 of file regIOobjectWrite.C.