fvModels: Added support for mesh redistribution and load-balancing

This commit is contained in:
Henry Weller
2021-12-24 15:02:30 +00:00
parent 4267bb6c37
commit 5ed8dbb463
60 changed files with 626 additions and 58 deletions

View File

@ -318,6 +318,20 @@ FOR_ALL_FIELD_TYPES
);
void Foam::fv::volumeFractionSource::updateMesh(const mapPolyMesh&)
{}
void Foam::fv::volumeFractionSource::distribute(const mapDistributePolyMesh&)
{}
bool Foam::fv::volumeFractionSource::movePoints()
{
return true;
}
bool Foam::fv::volumeFractionSource::read(const dictionary& dict)
{
if (fvModel::read(dict))

View File

@ -230,6 +230,18 @@ public:
FOR_ALL_FIELD_TYPES(DEFINE_FV_MODEL_ADD_ALPHA_RHO_SUP);
// Mesh changes
//- Update for mesh changes
virtual void updateMesh(const mapPolyMesh&);
//- Update mesh corresponding to the given distribution map
virtual void distribute(const mapDistributePolyMesh&);
//- Update for mesh motion
virtual bool movePoints();
// IO
//- Read dictionary