119 static const Enum<mergeStrategy> strategyNames_;
125 enum transformTypes :
unsigned
140 const IOdictionary& meshDict_;
146 bool checkFaceCorrespondence_;
152 unsigned transformType_;
155 searchableSurfaces geometry_;
234 bool checkDegenerate()
const;
240 void calcGeometricalMerge();
244 void calcTopologicalMerge();
248 void createPoints()
const;
249 void createCells()
const;
250 void createPatches()
const;
254 blockMesh(
const blockMesh&) =
delete;
257 void operator=(
const blockMesh&) =
delete;
358 refPtr<polyMesh>
topology(
bool applyTransform) const;
390 autoPtr<polyMesh>
mesh(const IOobject&
io) const;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
constexpr PtrList() noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A multi-block mesh generator.
ClassName("blockMesh")
Runtime type information.
const faceListList & patches() const
Return the patch face lists.
bool hasPointTransforms() const noexcept
True if scaling and/or transformations are needed.
const pointField & vertices() const noexcept
Reference to point field defining the blocks, these points are unscaled and non-transformed.
static bool verboseOutput
The default verbosity (true).
wordList patchNames() const
Return the patch names.
int verbose() const noexcept
Output verbosity level.
const blockEdgeList & edges() const noexcept
The curved edges.
~blockMesh()=default
Destructor.
bool good() const noexcept
True if the blockMesh topology exists.
tmp< pointField > globalPosition(const pointField &localPoints) const
Apply coordinate transforms and scaling.
mergeStrategy
The block merging strategy.
@ DEFAULT_MERGE
Default (TOPOLOGY), not selectable.
@ MERGE_TOPOLOGY
"topology" merge by block topology (default)
@ MERGE_POINTS
"points" merge by point geometry
label numZonedBlocks() const
Number of blocks with specified zones.
scalar scaleFactor() const
Old (v2106 and earlier) uniform scaling factor.
bool valid() const noexcept
Same as good().
bool inplacePointTransforms(pointField &pts) const
Apply coordinate transforms and scaling.
const blockFaceList & faces() const noexcept
The curved faces.
const cellShapeList & cells() const
Return cell shapes list.
const pointField & points() const
The points for the entire mesh. These points are scaled and transformed.
const searchableSurfaces & geometry() const noexcept
Optional searchable geometry to project face-points to.
autoPtr< polyMesh > mesh(const IOobject &io) const
Create polyMesh, with cell zones.
PtrList< dictionary > patchDicts() const
Patch information from the topology mesh.
const polyMesh & topology() const
The blockMesh topology as a polyMesh unscaled and non-transformed.
PtrList< block > blockList
The list of blocks is stored as a PtrList.
const dictionary & meshDict() const noexcept
Access to input dictionary.
A Cartesian coordinate system.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
A patch is a list of labels that address the faces in the global face list.
A class for managing references or pointers (no reference counting).
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
A class for managing temporary objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A class for handling words, derived from Foam::string.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
const polyBoundaryMesh & patches
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
List< word > wordList
List of word.
List< label > labelList
A List of labels.
List< face > faceList
List of faces.
List< faceList > faceListList
List of faceList.
pointField vertices(const blockVertexList &bvl)
PtrList< blockVertex > blockVertexList
A PtrList of blockVertex.
PtrList< blockFace > blockFaceList
A PtrList of blockFaces.
PtrList< blockEdge > blockEdgeList
A PtrList of blockEdges.
vectorField pointField
pointField is a vectorField.
List< cellShape > cellShapeList
List of cellShape.
wordList patchTypes(nPatches)
wordList patchNames(nPatches)
PtrList< dictionary > patchDicts