clear Us field to zero each time step

clear particle velocity values from previous time step
This commit is contained in:
danielque
2022-03-23 17:26:02 +01:00
parent ede9546e80
commit 28d9dfacac

View File

@ -181,6 +181,7 @@ void cfdemCloudIB::calcForcingTerm(volVectorField& Us)
vector rVec(0,0,0);
vector velRot(0,0,0);
vector angVel(0,0,0);
Us.primitiveFieldRef() = vector::zero;
for (int index = 0; index < numberOfParticles(); ++index)
{
for (int subCell = 0; subCell < voidFractionM().cellsPerParticle()[index][0]; subCell++)