Go to the documentation of this file.
43 Foam::blockMesh::strategyNames_
45 { mergeStrategy::MERGE_TOPOLOGY,
"topology" },
46 { mergeStrategy::MERGE_POINTS,
"points" },
52 Foam::blockMesh::blockMesh
60 verbose_(meshDict_.getOrDefault(
"verbose", verboseOutput)),
61 checkFaceCorrespondence_
63 meshDict_.getOrDefault(
"checkFaceCorrespondence",
true)
70 meshDict_.time().constant(),
76 meshDict_.found(
"geometry")
77 ? meshDict_.subDict(
"geometry")
84 meshDict_.lookup(
"vertices"),
88 topologyPtr_(createTopology(meshDict_,
regionName))
92 if (strategy == mergeStrategy::DEFAULT_MERGE)
94 strategyNames_.readIfPresent(
"mergeType", meshDict_, strategy);
99 if (strategy == mergeStrategy::MERGE_POINTS)
102 calcGeometricalMerge();
107 calcTopologicalMerge();
116 return bool(topologyPtr_);
145 <<
"topologyPtr_ not allocated"
149 return *topologyPtr_;
155 const polyPatchList& patchTopologies = topology().boundaryMesh();
159 forAll(patchTopologies, patchi)
162 patchTopologies[patchi].write(os);
200 if (patches_.empty())
211 return topology().boundaryMesh().names();
233 for (
const block& blk : blocks)
235 if (blk.zoneName().size())
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...
bool valid() const noexcept
True if the blockMesh topology exists.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
const faceListList & patches() const
Return the patch face lists.
A class for handling words, derived from Foam::string.
mergeStrategy
The block merging strategy.
const polyMesh & topology() const
Return the blockMesh topology as a polyMesh.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
PtrList< dictionary > patchDicts
bool verbose() const noexcept
Verbose output.
defineDebugSwitch(blockMesh, 0)
const pointField & vertices() const
Reference to point field defining the blockMesh.
scalar scaleFactor() const
The scaling factor used to convert to metres.
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.
Class used for the read-construction of.
const cellShapeList & cells() const
Return cell shapes list.
static bool verboseOutput
The default verbosity (true)