|
Virtual Testbed
Ship dynamics simulator for extreme conditions
|
Triangular ship hull panel (face). More...
#include <ship_hull_panel.hh>
Public Types | |
| using | vec = blitz::TinyVector< T, N > |
Public Member Functions | |
| Ship_hull_panel (const vec ¢re, vec n, T area, T volume) | |
| Ship_hull_panel & | operator= (const Ship_hull_panel &)=default |
| const vec & | centre () const |
| Get the centre of the panel in body-fixed coordinate system. | |
| void | centre (const vec &rhs) |
| const vec & | normal () const |
| Get surface normal. | |
| void | normal (const vec &rhs) |
| T | area () const |
| Get surface area. | |
| void | area (T rhs) |
| T | volume () const |
| Get tetrahedron volume. | |
| void | volume (T rhs) |
| const vec & | force () const |
| vec & | force () |
| bool | wetted () const |
| void | wetted (bool rhs) |
| bool | waterline () const |
| void | waterline (bool rhs) |
Static Public Attributes | |
| static constexpr const int | Centre = 0 |
| static constexpr const int | Normal = 1 |
| static constexpr const int | Force = 2 |
| static constexpr const int | Polyhedron = 3 |
Triangular ship hull panel (face).
Definition at line 18 of file ship_hull_panel.hh.
|
inline |
Get the force applied to the centre of the panel in the direction of the normal.
Definition at line 68 of file ship_hull_panel.hh.
1.8.15