33 const word& derivedType
37 geomDecomDict_(decompositionDict.
optionalSubDict(derivedType +
"Coeffs")),
38 n_(geomDecomDict_.lookup(
"n")),
39 delta_(geomDecomDict_.lookupOrDefault<scalar>(
"delta", 0.001)),
43 if (nProcessors_ != n_.x()*n_.y()*n_.z())
46 <<
"Wrong number of processor divisions in geomDecomp:" <<
nl 47 <<
"Number of domains : " << nProcessors_ <<
nl 48 <<
"Wanted decomposition : " << n_
52 const scalar d = 1 - 0.5*delta_*delta_;
53 const scalar d2 =
sqr(d);
55 const scalar a = delta_;
56 const scalar a2 =
sqr(a);
61 a*d - a2*d, a*a2 + d2, -2*a*d,
62 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.