# Bluerov2 hydrodynamics

**URL:** <https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570>\
**Category:** Blue Robotics Software\
**Tags:** sitl, simulate\
**Created:** [October 6, 2017, 10:33am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570 "2017-10-06T10:33:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![olaya](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/olaya/32/1671_2.png) [@olaya](https://discuss.bluerobotics.com/u/olaya)\
**Post date:** [October 6, 2017, 10:33am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/1 "2017-10-06T10:33:08Z")

</div>

Hello there,

I want to develop a control system for the Bluerov2,

I need then to derive the nonlinear mathematical model of the Bluerov2 behaviour. The idea is to put it into Simulink or Matlab to analyse the system dynamics.

To do that, I need the Bluerov2 hydrodynamic coefficients, that (according to some literature I read) are calculated using Computational Fluid Dynamics.

I’m not really familiar with fluid dynamics, so I’m writing you to ask if someone already have those coefficients, or any experience in how to obtain them.

Maybe it is possible with the uuv\_simulator in gazebo, mentioned [in this topic](http://discuss.bluerobotics.com/t/t200-simulation-in-gazebo/798/14)?  
I also found an open source tool for that, the OpenFOAM. But I’m not sure if it works for this task.

Any help in this topic is welcome! 😉

Thank you

---

<div class="post-metadata">

**Author:** ![SDI](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@SDI](https://discuss.bluerobotics.com/u/SDI)\
**Post date:** [October 6, 2017, 11:43am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/2 "2017-10-06T11:43:10Z")

</div>

Are you talking about the drag coefficient? If so, you I would suggest to do this by testing the drag force in a pool as the behavior of the fluid around cables and propeller will be different when set into a congested cluster inside the frame compared to the individual drag based on their shape alone or even based on testing parts one by one. I know I would go for the water test method.

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [October 9, 2017, 3:58am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/3 "2017-10-09T03:58:36Z")

</div>

Hi @olaya,

Thanks for the post! Depending on the level of detail and accuracy that you are looking for, there’s a few ways to do this. For a first order approximation I would recommend considering a flat plate equivalent approach. Basically, you can figure out the rough “flat plate” area of the ROV in each direction and use a drag coefficient of `C_d = 1.0` for that area.

If you’re looking to get an accurate non-linear model then it will be a lot more complicated and I won’t be much help! 😛

-Rusty

---

<div class="post-metadata">

**Author:** ![musamorena](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@musamorena](https://discuss.bluerobotics.com/u/musamorena)\
**Post date:** [October 9, 2017, 6:57am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/4 "2017-10-09T06:57:49Z")

</div>

Hi @olaya,

in the UUV simulator parameter identification cannot be done, but there is this source material on the experimental identification of parameters for the BlueROV1 that can maybe helpful to you

[https://brage.bibsys.no/xmlui/handle/11250/2409503](https://brage.bibsys.no/xmlui/handle/11250/2409503)

It is a thesis from a student at NTNU.  
I think that maybe the best option to start working on your model.

Best,

Musa

---

<div class="post-metadata">

**Author:** ![Hughhugh](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hughhugh](https://discuss.bluerobotics.com/u/Hughhugh)\
**Post date:** [July 8, 2019, 3:16am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/5 "2019-07-08T03:16:14Z")

</div>

Hi, @rjehangir  
I have calculated the hyrodyanmic parameter. During the sitl simulation, how could I configure these parameters.  
Thank you.

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [July 8, 2019, 11:43am UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/6 "2019-07-08T11:43:36Z")

</div>

Hi,

we did some simple approximations for the SITL model, you can [check it here](https://github.com/ArduPilot/ardupilot/blob/master/libraries/SITL/SIM_Submarine.h#L69).

As you can see, the buoyancy force/volume is calculated with our knowledge of the net buoyancy from the original vehicle, and `equivalent_sphere_area` is calculated with a sphere radius that is empiric.

Be free to improve it and send some patchs 🙂

---

<div class="post-metadata">

**Author:** ![klwalker96](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@klwalker96](https://discuss.bluerobotics.com/u/klwalker96)\
**Post date:** [July 31, 2020, 4:06pm UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/7 "2020-07-31T16:06:25Z")

</div>

Do you happen to still have these values? I’m currently modelling the BlueROV2 dynamics in MATLAB and I’ve been looking for some reliable values for the hydrodynamic parameters.

---

<div class="post-metadata">

**Author:** ![cmhoppe1](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@cmhoppe1](https://discuss.bluerobotics.com/u/cmhoppe1)\
**Post date:** [August 27, 2021, 3:15pm UTC](https://discuss.bluerobotics.com/t/bluerov2-hydrodynamics/1570/8 "2021-08-27T15:15:27Z")

</div>

I am also interested in modelling the BlueROV2 dynamics if anyone has done the CFD/experiments to find the 6-DOF hydrodynamic coefficients.
