Skip to content

Commit

Permalink
Wave Body: add checks when reading the hdf5 file (#74)
Browse files Browse the repository at this point in the history
* Wave Body: add checks when reading the hdf5 file

- Check that datasets are present before loading.
- Check that data is not empty before attempting to display.

Signed-off-by: Rhys Mainwaring <[email protected]>

* Wave Body: update comments to clarify scaled means non-dimensioned

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring authored Oct 10, 2022
1 parent a12b047 commit db89164
Show file tree
Hide file tree
Showing 4 changed files with 262 additions and 180 deletions.
2 changes: 1 addition & 1 deletion gz-waves-models/worlds/ellipsoid_buoy.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</geometry>

<!--
Unscaled hydrodynamics coefficients for T=6.0s (w = 1.0472 rad/s)
Dimensioned hydrodynamics coefficients for T=6.0s (w = 1.0472 rad/s)
- BEM coefficients calculated using Capytaine
- Converted to WEC-Sim hdf5 using bemio
Expand Down
2 changes: 1 addition & 1 deletion gz-waves-models/worlds/spheroid_test1a.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</geometry>

<!--
Unscaled hydrodynamics coefficients for T=6.0s (w = 1.0472 rad/s)
Dimensioned hydrodynamics coefficients for T=6.0s (w = 1.0472 rad/s)
- BEM coefficients calculated using Capytaine
- Converted to WEC-Sim hdf5 using bemio
Expand Down
Loading

0 comments on commit db89164

Please sign in to comment.