Skip to content

Commit 864079a

Browse files
authored
Consistent density water default value. (#834)
Signed-off-by: Carlos Agüero <caguero@osrfoundation.org>
1 parent 25bfa8f commit 864079a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

vrx_gz/src/PolyhedraBuoyancyDrag.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class PolyhedraBuoyancyDrag::Implementation
164164
public: Wavefield wavefield;
165165

166166
/// \brief The density of the fluid in which the object is submerged in kg/m^3
167-
public: double fluidDensity = 997;
167+
public: double fluidDensity = 1000.0;
168168

169169
/// \brief The height of the fluid/air interface [m]. Defaults to 0.
170170
public: double fluidLevel = 0;

vrx_gz/src/Surface.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class vrx::Surface::Implementation
6060
public: double fluidLevel = 0;
6161

6262
/// \brief Fluid density [kg/m^3].
63-
public: double fluidDensity = 997.7735;
63+
public: double fluidDensity = 1000.0;
6464

6565
/// \brief The world's gravity [m/s^2].
6666
public: math::Vector3d gravity;

vrx_gz/src/Surface.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace vrx
4646
/// * `<vehicle_length>` is the length of the vessel [m].
4747
/// * `<hull_radius>` is the radius of the vessel's hull [m].
4848
/// * `<fluid_level>` is the depth at which the fluid should be in the vehicle
49-
/// * `<fluid_density>` is the density of the fluid.
49+
/// * `<fluid_density>` is the density of the fluid. Default value is 1000.
5050
/// * `<points>` contains a collection of points where the forces generated
5151
/// by this plugin will be applied. See the format of each point
5252
/// next:

0 commit comments

Comments
 (0)