uuvsimulator / uuv_simulator

Gazebo/ROS packages for underwater robotics simulation
https://uuvsimulator.github.io/
Other
699 stars 361 forks source link

Updated the liftdrag two lines model for the drag component to make it more realistic #429

Open achille-martin opened 3 years ago

achille-martin commented 3 years ago

Dear UUV Sim Devs,

I was playing around with the Lift/Drag models for the fins and I realised one thing:

Concerning the two lines model and the Drag component, it is consistent to use the same "S" shaped graph for both the Lift coefficient CL=f(alpha) and the Drag coefficient CD=f(alpha), as described here. When I refer to "S" shaped graph, I mean the Cl vs alpha graph like presented here.

However, it is not physically correct to have a drag vector oriented towards the inertial velocity of the sub when the alpha is negative: it should always be oriented opposite to the inertial velocity (as shown here) whatever the alpha value. Therefore I have updated the code to generate a "V" shaped two lines approximation for the drag component (as shown here, CD vs alpha).

Best regards,

Achille MARTIN