42 verboseOutput(meshDict_.lookupOrDefault<
Switch>(
"verbose", true)),
54 meshDict_.
found(
"geometry")
55 ? meshDict_.subDict(
"geometry")
62 meshDict_.
lookup(
"vertices"),
66 topologyPtr_(createTopology(meshDict_, regionName))
108 <<
"topologyPtr_ not allocated" 112 return *topologyPtr_;
125 patchTopologies[
patchi].write(os);
163 if (patches_.
empty())
196 if (
operator[](blocki).zoneName().
size())
212 const point& pt = pts[pI];
214 os <<
"v " << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
endl;
221 const edge&
e = edges[eI];
223 os <<
"l " << e.
start() + 1 <<
' ' << e.
end() + 1 <<
endl;
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
wordList patchNames() const
Return patch names.
#define forAll(list, i)
Loop across all elements in list.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const double e
Elementary charge.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineDebugSwitch(blockMesh, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeTopology(Ostream &) const
Writes edges of blockMesh in OBJ format.
const faceListList & patches() const
Return the patch face lists.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
scalar scaleFactor() const
The scaling factor used to convert to metres.
pointField vertices(const blockVertexList &bvl)
stressControl lookup("compactNormalStress") >> compactNormalStress
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling words, derived from string.
const pointField & points() const
The points for the entire mesh.
wordList names() const
Return a list of patch names.
const blockEdgeList & edges() const
Return the curved edges.
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
void verbose(const bool on=true)
Enable/disable verbose information about the progress.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label size() const
Return the number of elements in the UPtrList.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const pointField & vertices() const
Reference to point field defining the blockMesh.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const cellShapeList & cells() const
Return cell shapes list.
Constant dispersed-phase particle diameter model.
label end() const
Return end vertex label.
Input from memory buffer stream.
string str() const
Return the string.
Mesh consisting of general polyhedral cells.
PtrList< dictionary > patchDicts() const
Get patch information from the topology mesh.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Output to memory buffer stream.
label start() const
Return start vertex label.
label numZonedBlocks() const
Number of blocks with specified zones.