codedFvModelTemplate: Added distribute(const mapDistributePolyMesh&) for mesh redistribution

This commit is contained in:
Henry Weller
2022-01-04 23:48:36 +00:00
parent 1b116fdddd
commit b3e785579a
2 changed files with 14 additions and 2 deletions

View File

@ -179,9 +179,18 @@ void ${typeName}FvModel${SourceType}::addSup
}
void ${typeName}FvModel${SourceType}::updateMesh(const mapPolyMesh& mpm)
void ${typeName}FvModel${SourceType}::updateMesh(const mapPolyMesh& map)
{
set_.updateMesh(mpm);
set_.updateMesh(map);
}
void ${typeName}FvModel${SourceType}::distribute
(
const mapDistributePolyMesh& map
)
{
set_.distribute(map);
}

View File

@ -117,6 +117,9 @@ public:
//- 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();
};