mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
clear Us field to zero each time step
clear particle velocity values from previous time step
This commit is contained in:
@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user