ENH: Added error msg if collisions used in steady state calcs
This commit is contained in:
parent
784e20705c
commit
da12c41f15
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user