diff --git a/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C b/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C index ec951a5b5c..57bc36d36e 100644 --- a/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C +++ b/src/lagrangian/intermediate/clouds/Templates/MPPICCloud/MPPICCloud.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -200,6 +200,13 @@ void Foam::MPPICCloud::motion if (dampingModel_->active()) { + if (this->mesh().moving()) + { + FatalErrorInFunction + << "MPPIC damping modelling does not support moving meshes." + << exit(FatalError); + } + // update averages td.updateAverages(cloud); @@ -224,6 +231,13 @@ void Foam::MPPICCloud::motion if (packingModel_->active()) { + if (this->mesh().moving()) + { + FatalErrorInFunction + << "MPPIC packing modelling does not support moving meshes." + << exit(FatalError); + } + // same procedure as for damping td.updateAverages(cloud); packingModel_->cacheFields(true);