global damping is activated for velocity and rVelocity in both sphere and grain solvers

This commit is contained in:
HRN
2025-02-10 01:10:13 +03:30
parent db9b1e62e4
commit 8466e02d81
10 changed files with 72 additions and 81 deletions

View File

@ -101,6 +101,16 @@ public:
return acceleration_;
}
inline
real dampingFactor(const timeInfo& ti)const
{
if(velDamping_)
{
return velDamping_().dampingFactor(ti);
}
return 1.0;
}
/// In the time loop before iterate
bool beforeIteration() override;