Go to the documentation of this file.
45 verboseOutput(meshDict_.lookupOrDefault(
"verbose", true)),
46 checkFaceCorrespondence_
48 meshDict_.lookupOrDefault(
"checkFaceCorrespondence", true)
61 meshDict_.
found(
"geometry")
62 ? meshDict_.subDict(
"geometry")
69 meshDict_.
lookup(
"vertices"),
73 topologyPtr_(createTopology(meshDict_,
regionName))
90 return topologyPtr_.valid();
111 <<
"topologyPtr_ not allocated"
115 return *topologyPtr_;
121 const polyPatchList& patchTopologies = topology().boundaryMesh();
125 forAll(patchTopologies, patchi)
128 patchTopologies[patchi].write(os);
166 if (patches_.empty())
177 return topology().boundaryMesh().names();
199 for (
const block& blk : blocks)
201 if (blk.zoneName().size())
215 for (
const point& pt : pts)
217 os <<
"v " << pt.x() <<
' ' << pt.y() <<
' ' << pt.z() <<
endl;
220 const edgeList& edges = topology().edges();
222 for (
const edge&
e : edges)
224 os <<
"l " <<
e.start() + 1 <<
' ' <<
e.end() + 1 <<
endl;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
PtrList< dictionary > patchDicts() const
Get patch information from the topology mesh.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
const faceListList & patches() const
Return the patch face lists.
A class for handling words, derived from Foam::string.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
Ostream & endl(Ostream &os)
Add newline and flush stream.
T lookupOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
Mesh consisting of general polyhedral cells.
void verbose(const bool on=true)
Enable/disable verbose information about the progress.
#define forAll(list, i)
Loop across all elements in list.
PtrList< dictionary > patchDicts
void writeTopology(Ostream &) const
Writes edges of blockMesh in OBJ format.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineDebugSwitch(blockMesh, 0)
const pointField & vertices() const
Reference to point field defining the blockMesh.
Lookup type of boundary radiation properties.
scalar scaleFactor() const
The scaling factor used to convert to metres.
bool valid() const
True if the blockMesh topology exists.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
pointField vertices(const blockVertexList &bvl)
Input from string buffer, using a ISstream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::string str() const
Get the string - as Foam::string rather than std::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label numZonedBlocks() const
Number of blocks with specified zones.
const pointField & points() const
The points for the entire mesh.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
wordList patchNames() const
Return patch names.
Output to string buffer, using a OSstream.
const dimensionedScalar e
Elementary charge.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const cellShapeList & cells() const
Return cell shapes list.
constant condensation/saturation model.