31 bool Foam::blockMesh::blockMesh::verboseOutput(
false);
43 blockPointField_(dict.
lookup(
"vertices")),
45 topologyPtr_(createTopology(dict, regionName))
78 return blockPointField_;
87 <<
"topologyPtr_ not allocated" 101 forAll(patchTopologies, patchI)
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;
Input from memory buffer stream.
label size() const
Return the number of elements in the PtrList.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
bool empty() const
Return true if the UList is empty (ie, size() is zero).
string str() const
Return the string.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const pointField & blockPointField() const
Reference to point field defining the block mesh.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const curvedEdgeList & edges() const
Return the curved edges.
wordList names() const
Return a list of patch names.
const double e
Elementary charge.
Ostream & endl(Ostream &os)
Add newline and flush stream.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual const pointField & points() const
Return raw points.
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
defineDebugSwitch(blockMesh, 0)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
void writeTopology(Ostream &) const
Writes edges of blockMesh in OBJ format.
Output to memory buffer stream.
const faceListList & patches() const
Return the patch face lists.
PtrList< dictionary > patchDicts() const
Get patch information from the topology mesh.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
scalar scaleFactor() const
The scaling factor used to convert to metres.
Mesh consisting of general polyhedral cells.
const pointField & points() const
The points for the entire mesh.
const cellShapeList & cells() const
Return cell shapes list.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
label end() const
Return end vertex label.
wordList patchNames() const
Return patch names.
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.
label numZonedBlocks() const
Number of blocks with specified zones.