33 const word& derivedType
37 geomDecomDict_(decompositionDict.
optionalSubDict(derivedType +
"Coeffs")),
38 n_(geomDecomDict_.lookup(
"n")),
39 delta_(geomDecomDict_.lookup<scalar>(
"delta")),
44 if (nProcessors_ != n_.x()*n_.y()*n_.z())
47 <<
"Wrong number of processor divisions in geomDecomp:" <<
nl 48 <<
"Number of domains : " << nProcessors_ <<
nl 49 <<
"Wanted decomposition : " << n_
53 scalar d = 1 - 0.5*delta_*delta_;
62 a*d - a2*d, a*a2 + d2, -2*a*d,
63 a*d2 + a2, a*d - a2*d, d2 - a2
geomDecomp(const dictionary &decompositionDict, const word &derivedType)
Construct given the decomposition dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
static const Identity< scalar > I
A class for handling words, derived from string.
Abstract base class for decomposition.
Tensor< scalar > tensor
Tensor of scalars.