Virtual Testbed
Ship dynamics simulator for extreme conditions
|
Public Types | |
using | polyhedron_type = vtb::geometry::Polyhedron< T, 3 > |
using | bounds_type = vtb::geometry::Bounds< T > |
using | vertex_type = Vector< T, 3 > |
Public Member Functions | |
Flooding_solver (const polyhedron_type &polyhedron) | |
void | volume (T new_volume) |
Compute fluid level by specifying its volume. More... | |
void | level (T new_level) |
Compute fluid level by specifying its volume. More... | |
const bounds_type & | z_bounds () const |
const vertex_type & | centre_of_mass () const |
T | volume () const |
T | level () const |
const polyhedron_type & | polyhedron () const |
Definition at line 37 of file flooding_solver.hh.
void vtb::core::Flooding_solver< T >::level | ( | T | new_level | ) |
Compute fluid level by specifying its volume.
[in] | new_level | fluid level ( \(z\) coordinate) in ship compartment |
Definition at line 28 of file flooding_solver.cc.
void vtb::core::Flooding_solver< T >::volume | ( | T | new_volume | ) |
Compute fluid level by specifying its volume.
[in] | new_volume | fluid volume in ship compartment |
Definition at line 18 of file flooding_solver.cc.