31 bool Foam::blockMesh::blockMesh::verboseOutput(
false);
43 blockPointField_(dict.
lookup(
"vertices")),
45 topologyPtr_(createTopology(dict, regionName))
78 return blockPointField_;
87 <<
"topologyPtr_ not allocated" 104 patchTopologies[
patchi].write(os);
142 if (patches_.
empty())
175 if (
operator[](blockI).zoneName().
size())
191 const point& pt = pts[pI];
193 os <<
"v " << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
endl;
200 const edge&
e = edges[eI];
202 os <<
"l " << e.
start() + 1 <<
' ' << e.
end() + 1 <<
endl;
label end() const
Return end vertex label.
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
scalar scaleFactor() const
The scaling factor used to convert to metres.
string str() const
Return the string.
#define forAll(list, i)
Loop across all elements in list.
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)
wordList names() const
Return a list of patch names.
const double e
Elementary charge.
const curvedEdgeList & edges() const
Return the curved edges.
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.
bool empty() const
Return true if the UList is empty (ie, size() is zero)
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
label numZonedBlocks() const
Number of blocks with specified zones.
defineDebugSwitch(blockMesh, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
wordList patchNames() const
Return patch names.
void writeTopology(Ostream &) const
Writes edges of blockMesh in OBJ format.
const faceListList & patches() const
Return the patch face lists.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const pointField & points() const
Return raw points.
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.
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 & blockPointField() const
Reference to point field defining the block mesh.
const cellShapeList & cells() const
Return cell shapes list.
static 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 start() const
Return start vertex label.
Input from memory buffer stream.
Mesh consisting of general polyhedral cells.
const pointField & points() const
The points for the entire mesh.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Output to memory buffer stream.
label size() const
Return the number of elements in the UPtrList.