30 inline Foam::label Foam::pairPotentialList::pairPotentialIndex
40 index = a*(2*nIds_ - a - 1)/2 +
b;
44 index =
b*(2*nIds_ -
b - 1)/2 + a;
47 if (index >
size() - 1)
50 <<
"Attempting to access a pairPotential with too high an index." 51 <<
nl <<
"a = " << a <<
", b = " <<
b <<
", index = " << index
52 <<
nl <<
"max index = " <<
size() - 1
76 return *electrostaticPotential_;
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
label size() const noexcept
The number of entries in the list.
errorManip< error > abort(error &err)
const pairPotential & electrostatic() const
scalar rCutMaxSqr() const