Restricting the motion of a floating body
Dear users,
I am looking into modelling of floating wave energy devices and want to set up some simulations to compare to experimental data we have available here. The floating device we used, was restricted to the heave (vertical) motion only. I want to change the DualSPHysics source code in order to restrict the motion of the floating body to heave only. For this reason I have altered the following code:
In the file JSphGpu_ker.cu:
at line 2185:
race.x-=gravity.x; race.y-=gravity.y; race.z-=gravity.z;
//-Only leave vertical acceleration -- heaving bodies EDIT
race.x=0; race.y=0;
I then recompile the code as a separate executable and it runs, but the floating body still rolls and pitches.. Do I have to set more variables to zero to fully block the non-vertical motions?
Thank you for your answers!
Kind regards
Tim
I am looking into modelling of floating wave energy devices and want to set up some simulations to compare to experimental data we have available here. The floating device we used, was restricted to the heave (vertical) motion only. I want to change the DualSPHysics source code in order to restrict the motion of the floating body to heave only. For this reason I have altered the following code:
In the file JSphGpu_ker.cu:
at line 2185:
race.x-=gravity.x; race.y-=gravity.y; race.z-=gravity.z;
//-Only leave vertical acceleration -- heaving bodies EDIT
race.x=0; race.y=0;
I then recompile the code as a separate executable and it runs, but the floating body still rolls and pitches.. Do I have to set more variables to zero to fully block the non-vertical motions?
Thank you for your answers!
Kind regards
Tim
Comments
Regards