extendedEdgeMesh + IO. More...
#include <extendedFeatureEdgeMesh.H>


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

| extendedFeatureEdgeMesh | ( | const IOobject & | io, |
| const extendedEdgeMesh & | em ) |
Copy construct with IOobject.
Definition at line 76 of file extendedFeatureEdgeMesh.C.
References extendedEdgeMesh::extendedEdgeMesh(), io, and regIOobject::regIOobject().

| 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 87 of file extendedFeatureEdgeMesh.C.
References extendedEdgeMesh::extendedEdgeMesh(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, regIOobject::regIOobject(), and IOobject::time().

| extendedFeatureEdgeMesh | ( | const IOobject & | io, |
| const PrimitivePatch< faceList, pointField > & | surf, | ||
| const labelUList & | featureEdges, | ||
| const labelUList & | regionFeatureEdges, | ||
| const labelUList & | featurePoints ) |
Construct from PrimitivePatch.
Definition at line 111 of file extendedFeatureEdgeMesh.C.
References extendedEdgeMesh::extendedEdgeMesh(), io, and regIOobject::regIOobject().

| 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 125 of file extendedFeatureEdgeMesh.C.
References extendedEdgeMesh::concaveStart(), extendedEdgeMesh::edgeDirections(), extendedEdgeMesh::edgeNormals(), extendedEdgeMesh::extendedEdgeMesh(), extendedEdgeMesh::featurePointEdges(), extendedEdgeMesh::featurePointNormals(), extendedEdgeMesh::flatStart(), extendedEdgeMesh::internalStart(), io, extendedEdgeMesh::mixedStart(), extendedEdgeMesh::multipleStart(), extendedEdgeMesh::nonFeatureStart(), extendedEdgeMesh::normalDirections(), extendedEdgeMesh::normals(), extendedEdgeMesh::normalVolumeTypes(), extendedEdgeMesh::openStart(), pts, extendedEdgeMesh::regionEdges(), and regIOobject::regIOobject().

|
virtualdefault |
| TypeName | ( | "extendedFeatureEdgeMesh" | ) |
Runtime type information.
References extendedEdgeMesh::concaveStart(), extendedEdgeMesh::edgeDirections(), extendedEdgeMesh::edgeNormals(), extendedEdgeMesh::extendedEdgeMesh(), extendedEdgeMesh::featurePointEdges(), extendedEdgeMesh::featurePointNormals(), extendedEdgeMesh::flatStart(), extendedEdgeMesh::internalStart(), io, extendedEdgeMesh::mixedStart(), extendedEdgeMesh::multipleStart(), extendedEdgeMesh::nonFeatureStart(), extendedEdgeMesh::normalDirections(), extendedEdgeMesh::normals(), extendedEdgeMesh::normalVolumeTypes(), extendedEdgeMesh::openStart(), pts, and extendedEdgeMesh::regionEdges().

|
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 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().

|
virtual |
Give precedence to the regIOobject write.
Reimplemented from regIOobject.
Definition at line 496 of file regIOobjectWrite.C.