|
MoorDyn
|
Bathymetry description for MoorDyn. More...
#include <Seafloor.hpp>


Public Member Functions | |
| Seafloor (moordyn::Log *log) | |
| void | setup (EnvCondRef env, const string &filepath) |
| Setup the seafloor. More... | |
| real | getDepthAt (real x, real y) |
| Get the depth at a particular x/y coordinate. More... | |
| real | getAverageDepth () |
| The average of the depth at all the grid points. | |
| real | getMinimumDepth () |
| The depth of the seafloor at the shallowest point Potentially useful for optimizing collision against the seafloor. | |
Get the depth at a particular x/y coordinate.
This should default to nearest edge depth if beyond the grid where depths have been explicitly defined.
| x | The x-coordinate of the point being assessed |
| y | The x-coordinate of the point being assessed |
| void moordyn::Seafloor::setup | ( | EnvCondRef | env, |
| const string & | filepath | ||
| ) |
Setup the seafloor.
Always call this function after the constructor
| env | The environmental options |
| filepath | The depths map file |
| moordyn::input_file_error | If an input file cannot be read, or if a file is ill-formatted |
| moordyn::invalid_value_error | If invalid values are found |