mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: forces FO - porosity calc updated for mesh changes
This commit is contained in:
@ -922,7 +922,8 @@ void Foam::forces::calcForcesMoment()
|
|||||||
|
|
||||||
forAllConstIter(HashTable<const porosityModel*>, models, iter)
|
forAllConstIter(HashTable<const porosityModel*>, models, iter)
|
||||||
{
|
{
|
||||||
const porosityModel& pm = *iter();
|
// non-const access required if mesh is changing
|
||||||
|
porosityModel& pm = const_cast<porosityModel&>(*iter());
|
||||||
|
|
||||||
vectorField fPTot(pm.force(U, rho, mu));
|
vectorField fPTot(pm.force(U, rho, mu));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user