Go to the documentation of this file.
31 bool Foam::blockMesh::blockMesh::verboseOutput(
false);
78 return blockPointField_;
87 <<
"topologyPtr_ not allocated"
97 const polyPatchList& patchTopologies = topology().boundaryMesh();
101 forAll(patchTopologies, patchI)
104 patchTopologies[patchI].write(os);
142 if (patches_.empty())
153 return topology().boundaryMesh().names();
175 if (
operator[](blockI).zoneName().size())
191 const point& pt = pts[pI];
193 os <<
"v " << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
endl;
196 const edgeList& edges = topology().edges();
200 const edge&
e = edges[eI];
202 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.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const faceListList & patches() const
Return the patch face lists.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
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.
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
Mesh consisting of general polyhedral cells.
static void verbose(const bool on=true)
Enable/disable verbose information about the progress.
string str() const
Return the string.
PtrList< dictionary > patchDicts
void writeTopology(Ostream &) const
Writes edges of blockMesh in OBJ format.
void calcMergeInfoFast()
Determine the merge info and the final number of cells/points.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
defineDebugSwitch(blockMesh, 0)
scalar scaleFactor() const
The scaling factor used to convert to metres.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Input from memory buffer stream.
const double e
Elementary charge.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#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.
wordList patchNames() const
Return patch names.
Output to memory buffer stream.
const pointField & blockPointField() const
Reference to point field defining the block mesh.
blockMesh(const blockMesh &)
As copy (not implemented)
label size() const
Return the number of elements in the PtrList.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const cellShapeList & cells() const
Return cell shapes list.
void calcMergeInfo()
Determine the merge info and the final number of cells/points.
stressControl lookup("compactNormalStress") >> compactNormalStress