Skip to content
Snippets Groups Projects
Commit da12c41f authored by andy's avatar andy
Browse files

ENH: Added error msg if collisions used in steady state calcs

parent 784e2070
Branches
Tags
No related merge requests found
......@@ -90,6 +90,23 @@ Foam::CollidingCloud<CloudType>::CollidingCloud
CloudType(cloudName, rho, U, mu, g, false),
collisionModel_(NULL)
{
if (this->solution().steadyState())
{
FatalErrorIn
(
"Foam::CollidingCloud<CloudType>::CollidingCloud"
"("
"const word&, "
"const volScalarField&, "
"const volVectorField&, "
"const volScalarField&, "
"const dimensionedVector&, "
"bool"
")"
) << "Collision modelling not currently available for steady state "
<< "calculations" << exit(FatalError);
}
if (this->solution().active())
{
setModels();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment