Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Member Functions | List of all members
vtb::core::Velocity_potential_solver< T, N > Class Template Referenceabstract

Base class for all velocity potential solvers. More...

#include <velocity_potential.hh>

Public Member Functions

depth () const noexcept
 Get water depth.
 
void depth (T rhs)
 Set water depth.
 
void wave_number_grid (const Grid< T, 2 > &rhs)
 
const Grid< T, 2 > & wave_number_grid () const
 
void assumptions (Assumptions rhs)
 
const Assumptionsassumptions () const
 
virtual void solve (const Grid< T, N+1 > &grid_tzxy, const Array< T, N > &wavy_surface, Array< T, N+1 > &velocity_potential)=0
 Calculate velocity potential for each grid point. More...
 
void operator() (const Grid< T, 4 > &grid_tzxy, const Array< T, 3 > &wavy_surface, Array< T, 4 > &velocity_potential)
 

Detailed Description

template<class T, int N>
class vtb::core::Velocity_potential_solver< T, N >

Base class for all velocity potential solvers.

Date
2018-08-13
Author
Ivan Gankevich

Definition at line 25 of file velocity_potential.hh.

Member Function Documentation

◆ solve()

template<class T, int N>
virtual void vtb::core::Velocity_potential_solver< T, N >::solve ( const Grid< T, N+1 > &  grid_tzxy,
const Array< T, N > &  wavy_surface,
Array< T, N+1 > &  velocity_potential 
)
pure virtual

Calculate velocity potential for each grid point.

Date
2018-08-10
Author
Ivan Gankevich
Parameters
[in]grid_tzxyFour-dimensional \((t,z,x,y)\) grid for each point of which velocity potential is calculated. This grid includes three-dimensional \((t,x,y)\) wavy surface grid for each point of which wavy surface elevation is given.