37 void Foam::domainDecomposition::distributeCells(
const fileName& dict)
39 Info<<
"\nCalculating distribution of cells" <<
endl;
41 cpuTime decompositionTime;
45 if (method.found(
"weightField"))
47 word weightName = method.lookup(
"weightField");
64 cellToProc_ = method.decomposer().decompose(*
this, cellWeights);
66 Info<<
"\nFinished decomposition in " 67 << decompositionTime.elapsedCpuTime()
static const decompositionModel & New(const polyMesh &mesh, const fileName &decompDictFile="")
Read (optionally 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.
const Time & time() const
Return the top-level database.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const surfaceScalarField & weights() const
Return reference to linear difference weighting factors.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.