44#ifndef Foam_edgeMesh_H
45#define Foam_edgeMesh_H
83 mutable std::unique_ptr<labelListList> pointEdgesPtr_;
89 void calcPointEdges()
const;
212 const
word& fileType,
253 virtual
void clear();
256 virtual
void scalePoints(const scalar scaleFactor);
286 const word& fileType,
291 write(
name, fileType, *
this, streamOpt, options);
A simple container for options an IOstream can normally have.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
Mesh data needed to do the Finite Area discretisation.
pointField & storedPoints() noexcept
Non-const access to global points.
virtual void mergeEdges()
Merge duplicate edges and eliminate unused points.
const labelListList & pointEdges() const
Return edges.
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format type?
declareMemberFunctionSelectionTable(void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
static wordHashSet writeTypes()
Summary of supported write file types.
virtual void mergePoints(const scalar mergeDist)
Geometric merge points (points within mergeDist) prior to.
edgeMesh()
Default construct.
edgeMesh(const faMesh &mesh)
Construct finite-area edge mesh faMesh reference.
const pointField & points() const noexcept
Return points.
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.
const edgeList & edges() const noexcept
Return edges.
static bool canReadType(const word &fileType, bool verbose=false)
Can we read this file format?
declareRunTimeSelectionTable(autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
bool read(const fileName &name, const word &fileType)
Read from file. Chooses reader based on explicit extension.
void transfer(edgeMesh &mesh)
Transfer the contents of the argument and annul the argument.
friend Istream & operator>>(Istream &is, edgeMesh &em)
friend Ostream & operator<<(Ostream &os, const edgeMesh &em)
label regions(labelList &edgeRegion) const
Find connected regions. Set region number per edge.
static bool canRead(const fileName &name, bool verbose=false)
Can we read this file format?
virtual void writeStats(Ostream &) const
TypeName("edgeMesh")
Runtime type information.
edgeList & storedEdges() noexcept
Non-const access to the edges.
virtual void clear()
Clear all storage.
void operator=(const edgeMesh &rhs)
Copy assignment.
static autoPtr< edgeMesh > New(const fileName &name, const word &fileType)
Read construct from filename with given format.
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).
virtual void scalePoints(const scalar scaleFactor)
Scale points. A non-positive factor is ignored.
static wordHashSet readTypes()
Summary of supported read file types.
A class for handling file names.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
Macros to ease declaration of member function selection tables.
List< edge > edgeList
List of edge.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
vectorField pointField
pointField is a vectorField.
Macros to ease declaration of run-time selection tables.