42#ifndef Foam_faMeshDecomposition_H
43#define Foam_faMeshDecomposition_H
54class faMeshDecomposition
70 bool hasGlobalFaceZones_;
123 bool cyclicParallel_;
128 void distributeFaces();
131 faMeshDecomposition(
const faMeshDecomposition&) =
delete;
134 void operator=(
const faMeshDecomposition&) =
delete;
145 const word& areaName,
149 const label nProcessors,
161 const label nProcessors,
176 const word&
name()
const noexcept {
return areaName_; }
179 label
nProcs()
const noexcept {
return nProcs_; }
182 bool distributed()
const noexcept {
return distributed_; }
187 bool old(distributed_);
195 return hasGlobalFaceZones_;
201 bool old(hasGlobalFaceZones_);
202 hasGlobalFaceZones_ = on;
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
bool useGlobalFaceZones() const noexcept
Are global face zones used.
bool distributed() const noexcept
Is decomposition data to be distributed for each processor.
void updateParameters(const dictionary ¶ms)
Update flags based on the decomposition model settings.
const labelList & faceToProc() const noexcept
Face-processor decomposition labels.
~faMeshDecomposition()=default
Destructor.
label nProcs() const noexcept
Number of processor in decomposition.
bool writeDecomposition() const
Write decomposition.
const word & name() const noexcept
The area-region name.
bool useGlobalFaceZones(bool on) noexcept
Change global face zones flag.
faMeshDecomposition(const word &areaName, const polyMesh &mesh, const label nProcessors, const dictionary ¶ms=dictionary::null)
Construct from components. Values will come from the volume decomposition.
bool distributed(bool on) noexcept
Change distributed flag.
faMeshDecomposition(const polyMesh &mesh, const label nProcessors, const dictionary ¶ms=dictionary::null)
Construct from components (default area region). Values will come from the volume decomposition.
void decomposeMesh()
Decompose mesh.
faMesh(const faMesh &)=delete
No copy construct.
static const faMesh & mesh(const polyMesh &pMesh)
The single-region finite-area region on the polyMesh. Uses lookupObject semantics - Fatal if non-exis...
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.