fvModels, fvConstraints: Update as a result of mesh motion

This commit is contained in:
Will Bainbridge
2021-08-12 13:26:53 +01:00
parent 737d91ec72
commit 19bdfa969f
38 changed files with 261 additions and 30 deletions

View File

@ -233,7 +233,6 @@ Foam::fv::codedFvModel::codedFvModel
)
:
fvModel(name, modelType, dict, mesh),
set_(coeffs(), mesh),
fieldName_(word::null)
{
readCoeffs();
@ -259,7 +258,13 @@ FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP, fv::codedFvModel);
void Foam::fv::codedFvModel::updateMesh(const mapPolyMesh& mpm)
{
set_.updateMesh(mpm);
redirectFvModel().updateMesh(mpm);
}
bool Foam::fv::codedFvModel::movePoints()
{
return redirectFvModel().movePoints();
}
@ -267,7 +272,6 @@ bool Foam::fv::codedFvModel::read(const dictionary& dict)
{
if (fvModel::read(dict))
{
set_.read(coeffs());
readCoeffs();
return true;
}