diff --git a/applications/solvers/multiphase/reactingEulerFoam/functionObjects/phaseForces/phaseForces.C b/applications/solvers/multiphase/reactingEulerFoam/functionObjects/phaseForces/phaseForces.C index fab5f1bc49..58b995a4a8 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/functionObjects/phaseForces/phaseForces.C +++ b/applications/solvers/multiphase/reactingEulerFoam/functionObjects/phaseForces/phaseForces.C @@ -225,7 +225,7 @@ bool Foam::functionObjects::phaseForces::read(const dictionary& dict) bool Foam::functionObjects::phaseForces::execute() { - forAllIter + forAllConstIter ( HashPtrTable, forceFields_, @@ -267,17 +267,17 @@ bool Foam::functionObjects::phaseForces::execute() if (type == "liftModel") { - force = nonDragForce(pair); + force += nonDragForce(pair); } if (type == "wallLubricationModel") { - force = nonDragForce(pair); + force += nonDragForce(pair); } if (type == "turbulentDispersionModel") { - force = nonDragForce(pair); + force += nonDragForce(pair); } } } @@ -289,7 +289,7 @@ bool Foam::functionObjects::phaseForces::execute() bool Foam::functionObjects::phaseForces::write() { - forAllIter + forAllConstIter ( HashPtrTable, forceFields_,