A multi-block mesh generator. More...
Public Types | |
enum | mergeStrategy { DEFAULT_MERGE, MERGE_TOPOLOGY, MERGE_POINTS } |
typedef PtrList< block > | blockList |
Public Member Functions | |
ClassName ("blockMesh") | |
blockMesh (const IOdictionary &dict, const word ®ionName=polyMesh::defaultRegion, mergeStrategy strategy=mergeStrategy::DEFAULT_MERGE, int verbosity=0) | |
~blockMesh ()=default | |
const dictionary & | meshDict () const noexcept |
const searchableSurfaces & | geometry () const noexcept |
const blockEdgeList & | edges () const noexcept |
const blockFaceList & | faces () const noexcept |
bool | valid () const noexcept |
wordList | patchNames () const |
label | numZonedBlocks () const |
bool | hasPointTransforms () const noexcept |
bool | inplacePointTransforms (pointField &pts) const |
tmp< pointField > | globalPosition (const pointField &localPoints) const |
const pointField & | vertices () const noexcept |
tmp< pointField > | vertices (bool applyTransform) const |
const polyMesh & | topology () const |
refPtr< polyMesh > | topology (bool applyTransform) const |
const pointField & | points () const |
const cellShapeList & | cells () const |
const faceListList & | patches () const |
PtrList< dictionary > | patchDicts () const |
int | verbose () const noexcept |
int | verbose (const int level) noexcept |
autoPtr< polyMesh > | mesh (const IOobject &io) const |
scalar | scaleFactor () const |
![]() | |
constexpr | PtrList () noexcept |
PtrList (const label len) | |
PtrList (const PtrList< T > &list) | |
PtrList (PtrList< T > &&list) | |
PtrList (UList< T * > &list) | |
PtrList (const PtrList< T > &list, const CloneArg &cloneArgs) | |
PtrList (PtrList< T > &list, bool reuse) | |
PtrList (const SLPtrList< T > &list) | |
PtrList (Istream &is, const INew &inew) | |
PtrList (Istream &is) | |
PtrList (PtrList< T > &list, bool reuse) | |
PtrList (const SLPtrList< T > &list) | |
constexpr | PtrList () noexcept |
PtrList (const label len) | |
PtrList (const PtrList< T > &list) | |
PtrList (PtrList< T > &&list) | |
PtrList (UList< T * > &list) | |
PtrList (Istream &is) | |
~PtrList () | |
PtrList< T > | clone (Args &&... args) const |
Foam::PtrList< T > | clone (Args &&... args) const |
const T * | set (const label i) const |
autoPtr< T > | set (const label i, T *ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &ptr) |
autoPtr< T > | set (const label i, autoPtr< T > &&ptr) |
autoPtr< T > | set (const label i, std::unique_ptr< T > &&ptr) |
autoPtr< T > | set (const label i, const refPtr< T > &ptr) |
autoPtr< T > | set (const label i, const tmp< T > &ptr) |
void | clear () |
void | resize (const label newLen) |
void | setSize (const label newLen) |
void | emplace_append (Args &&... args) |
void | append (T *ptr) |
void | append (autoPtr< T > &ptr) |
void | append (autoPtr< T > &&ptr) |
void | append (std::unique_ptr< T > &&ptr) |
void | append (const refPtr< T > &ptr) |
void | append (const tmp< T > &ptr) |
autoPtr< T > | emplace (const label i, Args &&... args) |
Foam::autoPtr< T > | emplace (const label i, Args &&... args) |
autoPtr< T > | release (const label i) |
void | transfer (PtrList< T > &list) |
void | operator= (const PtrList< T > &list) |
void | operator= (PtrList< T > &&list) |
Static Public Attributes | |
static bool | verboseOutput = true |
Additional Inherited Members | |
![]() | |
void | readIstream (Istream &is, const INew &inew) |
void | free () |
A multi-block mesh generator.
Dictionary controls
Property | Description | Required | Default |
---|---|---|---|
prescale | Point scaling before transform | no | 1.0 |
scale | Point scaling after transform | no | 1.0 |
transform | Point transform (origin, rotation) | no | |
vertices | yes | ||
blocks | yes | ||
edges | no | ||
faces | no | ||
boundary | Boundary definition | no | |
patches | Alternate version for "boundary" | no | |
namedBlocks | no | ||
namedVertices | no | ||
mergeType | Merging "points" or "topology" | no | topology |
checkFaceCorrespondence | no | true | |
verbose | no | true |
prescale
and scale
can be a single scalar or a vector of values.The vertices, cells and patches for filling the blocks are demand-driven.
Definition at line 161 of file blockMesh.H.
Definition at line 170 of file blockMesh.H.
enum mergeStrategy |
Enumerator | |
---|---|
DEFAULT_MERGE | Default (TOPOLOGY), not selectable. |
MERGE_TOPOLOGY | "topology" merge by block topology (default) |
MERGE_POINTS | "points" merge by point geometry |
Definition at line 176 of file blockMesh.H.
|
explicit |
Definition at line 242 of file blockMesh.C.
References Foam::endl(), Foam::Info, and Foam::nl.
|
default |
ClassName | ( | "blockMesh" | ) |
|
inlinenoexcept |
Definition at line 364 of file blockMesh.H.
|
inlinenoexcept |
Definition at line 370 of file blockMesh.H.
|
inlinenoexcept |
Definition at line 376 of file blockMesh.H.
|
inlinenoexcept |
Definition at line 382 of file blockMesh.H.
|
noexcept |
Definition at line 320 of file blockMesh.C.
References bool.
Foam::wordList patchNames | ( | ) | const |
Definition at line 412 of file blockMesh.C.
Referenced by blockMesh::mesh().
Foam::label numZonedBlocks | ( | ) | const |
Definition at line 430 of file blockMesh.C.
References Foam::BitOps::count().
Referenced by blockMesh::mesh().
|
noexcept |
Definition at line 448 of file blockMesh.C.
References bool.
bool inplacePointTransforms | ( | pointField & | pts | ) | const |
Definition at line 454 of file blockMesh.C.
References Foam::cmptMultiply(), p, and Foam::transform().
Foam::tmp< Foam::pointField > globalPosition | ( | const pointField & | localPoints | ) | const |
Definition at line 527 of file blockMesh.C.
References tmp::New().
|
noexcept |
Definition at line 340 of file blockMesh.C.
Foam::tmp< Foam::pointField > vertices | ( | bool | applyTransform | ) | const |
Definition at line 347 of file blockMesh.C.
References tmp::New().
const Foam::polyMesh & topology | ( | ) | const |
Definition at line 287 of file blockMeshCreate.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
Foam::refPtr< Foam::polyMesh > topology | ( | bool | applyTransform | ) | const |
Definition at line 301 of file blockMeshCreate.C.
References polyMesh::addPatches(), polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), forAll, refPtr::New(), IOobject::NO_READ, IOobject::NO_WRITE, polyMesh::points(), IOobject::registerObject(), PtrList::set(), and topoMesh.
const Foam::pointField & points | ( | ) | const |
Definition at line 379 of file blockMesh.C.
Referenced by blockMesh::mesh().
const Foam::cellShapeList & cells | ( | ) | const |
Definition at line 390 of file blockMesh.C.
Referenced by blockMesh::mesh().
const Foam::faceListList & patches | ( | ) | const |
Definition at line 401 of file blockMesh.C.
Referenced by blockMesh::mesh().
Foam::PtrList< Foam::dictionary > patchDicts | ( | ) | const |
Definition at line 362 of file blockMesh.C.
References forAll, os(), and patchDicts.
Referenced by blockMesh::mesh().
|
noexcept |
Definition at line 326 of file blockMesh.C.
|
noexcept |
Definition at line 332 of file blockMesh.C.
Foam::autoPtr< Foam::polyMesh > mesh | ( | const IOobject & | io | ) | const |
Definition at line 348 of file blockMeshCreate.C.
References polyMesh::addZones(), List::append(), Foam::constant::physicoChemical::b, blockMesh::cells(), polyMesh::cellZones(), HashTable::cfind(), ZoneMesh::clear(), Foam::endl(), polyMesh::faceZones(), forAllConstIters(), Foam::Info, HashTable::insert(), meshPtr, autoPtr::New(), Foam::nl, blockMesh::numZonedBlocks(), nZones, blockMesh::patchDicts(), blockMesh::patches(), blockMesh::patchNames(), blockMesh::points(), polyMesh::pointZones(), and HashTable::size().
|
inline |
Definition at line 464 of file blockMesh.H.
|
static |
Definition at line 335 of file blockMesh.H.
Referenced by Foam::getVerbosity().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.