Go to the documentation of this file.
33 void Foam::geomDecomp::readCoeffs()
42 <<
"Wrong number of domain divisions in geomDecomp:" <<
nl
44 <<
"Wanted decomposition : " <<
n_
49 const scalar d2 =
sqr(d);
52 const scalar a2 =
sqr(a);
57 a*d - a2*d, a*a2 + d2, -2*a*d,
58 a*d2 + a2, a*d - a2*d, d2 - a2
68 for (
direction dir = 0; dir < Vector<label>::nComponents; ++dir)
70 if (n_[dir] > 1 && meshDirs[dir] == -1)
73 <<
"Trying to decompose a 1/2D mesh"
74 <<
" into " << n_[dir]
75 <<
" parts in direction "
87 const word& derivedType,
93 coeffsDict_(findCoeffsDict(derivedType +
"Coeffs", select)),
104 const word& derivedType,
111 coeffsDict_(findCoeffsDict(derivedType +
"Coeffs", select)),
label nDomains_
Number of domains for the decomposition.
const Cmpt & x() const
Access to the vector x component.
const dictionary & coeffsDict_
Coefficients for all derived methods.
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Cmpt & z() const
Access to the vector z component.
geomDecomp(const word &derivedType, const dictionary &decompDict, int select=selectionType::DEFAULT)
Construct for derived type name and decomposition dictionary.
void checkDecompositionDirections(const Vector< label > &) const
Check that mesh directions are compatible with decomposition.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for domain decomposition.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const Cmpt & y() const
Access to the vector y component.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
scalar delta_
Default = 0.001.
#define WarningInFunction
Report a warning using Foam::Warning.
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
static const Identity< scalar > I