← Back to team overview

yade-users team mailing list archive

Re: [Question #230621]: apply buoyancy forces on particles

 

Question #230621 on Yade changed:
https://answers.launchpad.net/yade/+question/230621

Bruno Chareyre posted a new comment:
I must admit my trick has the drawback of changing the dynamic of the system:
in acceleration=force/mass, mass will be changed while it should not (only force should be different)

If necessary, it can be fixed using b.state.densityScaling (see Newton.cpp:179):
b.state.mass = apparentMass
b.state.densityScaling = realMass/apparentMass.

And: newton.densityScaling=True

In that case acceleration is correct again.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.