Where the code adding gravity on floating object

i am trying to add a new boundary condition proposed by adami.

i am wondering where to add gravity, and i didn’t find it in original code.

then i run a simple test. a cube located above still water and free drop
p_1

obviously, hydrodynamic force is zero.

forces[0]=(0,0,0) which means this force is hydrodynamic forces
but the acceleration is right (0,0,-9.81).
so, gravity is considerd inside chrono? is that right? if not, then where

thanks for reply

Hello @JoJo,

the gravity effect for Chrono-managed bodies is indeed delegated to Chrono. ProblemCore::InitializeChrono is where Chrono’s Set_G_acc is called.