MPPICCloud: Added error indicating incompatibility of sub-models with moving meshes
MPPIC requires significant extension for damping and packing modelling to work on moving meshes. At present the predictor-corrector process used by these models does not maintain a consistent time-state relative to a moving mesh. The cloud needs to enact the correction track from the original starting point, rather than from the end of the non-corrected track. This will require additional tracking or storage and communication steps. Resolves bug report https://bugs.openfoam.org/view.php?id=3318
This commit is contained in:
@ -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<CloudType>::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<CloudType>::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);
|
||||
|
||||
Reference in New Issue
Block a user