37 void Foam::domainDecomposition::distributeCells()
39 Info<<
"\nCalculating distribution of cells" <<
endl;
41 cpuTime decompositionTime;
46 if (method.found(
"weightField"))
48 word weightName = method.lookup(
"weightField");
65 cellToProc_ = method.decomposer().decompose(*
this, cellWeights);
67 Info<<
"\nFinished decomposition in " 68 << decompositionTime.elapsedCpuTime()
static const decompositionModel & New(const polyMesh &mesh, const fileName &decompDictFile="")
Read (optionallly from absolute path) & register on mesh.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const surfaceScalarField & weights() const
Return reference to linear difference weighting factors.
const Time & time() const
Return the top-level database.