32 template<
class Cloud,
class ... Clouds>
39 template<
class Cloud,
class ... Clouds>
42 if (!isCloud<Cloud, Clouds ...>())
45 <<
"The Larangian model '" << name_ <<
"' of cloud '"
46 << cloud_.mesh().name() <<
"' requires a cloud of type "
48 <<
" (or a derivation thereof), rather than '" << cloud_.type()
58 return refCast<const Cloud>(cloud_);
Struct to aid casting of the cloud to a derived type.
Base cloud calls templated on particle type.
void assertCloud() const
Generate an error if the cloud is not one of the given types.
bool isCloud() const
Determine whether the cloud is one of the given types.
const Cloud & cloud() const
Get a reference to the cloud.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.