simulation.modules.hydro
- simulation.modules.hydro.get_dynamic_coeffs(Hs, T, D_f, T_f, D_s, D_d, T_s, h, m_float, m_spar, spar_excitation_coeffs, C_d_float, C_d_spar, rho_w, g, use_MEEM, harmonics, hydro)
Function
get_dynamic_coeffs()- Parameters:
Hs – significant wave height (m)
T – wave energy period (s)
D_f – Float Diameter
T_f – T_f
D_s – Spar Diameter
D_d – Diameter of damping plate (m)
T_s – Draft of spar (m)
h – water depth (m)
m_float – m_float
m_spar – m_spar
spar_excitation_coeffs – spar excitation hydro coeffs from WAMIT for nominal RM3
C_d_float – coefficient of drag for float
C_d_spar – spar coefficient of drag
rho_w – water density (kg/m3)
g – acceleration of gravity (m/s2)
use_MEEM – whether to use MEEM for hydro coeffs (boolean)
harmonics – number of harmonics to use for MEEM (int)
hydro – function from WECSim
- Returns:
m_f
- Returns:
B_h_f
- Returns:
K_h_f
- Returns:
F_f_mag
- Returns:
F_f_phase
- Returns:
m_s
- Returns:
B_h_s
- Returns:
K_h_s
- Returns:
F_s_mag
- Returns:
F_s_phase
- Returns:
m_c
- Returns:
B_h_c
- Returns:
drag_const_f
- Returns:
drag_const_s
- Returns:
mag_v0_f
- Returns:
mag_v0_s
- Returns:
Angular wave frequency (rad/s)
- Returns:
Wavenumber (1/m)
- Returns:
A f / $\rho$
- Returns:
A s / $\rho$
- Returns:
A c / $\rho$
- Returns:
B f / $\rho$ w
- Returns:
B s / $\rho$ w
- Returns:
B c / $\rho$ w
- Returns:
$\gamma$ f / $\rho$ g
- Returns:
$\gamma$ s / $\rho$ g
- Returns:
$\gamma$ phase f
- Returns:
$\gamma$ phase s
- simulation.modules.hydro.group_velocity(w, k, g, h)
Function
group_velocity()- Parameters:
w – Angular wave frequency (rad/s)
k – Wavenumber (1/m)
g – acceleration of gravity (m/s2)
h – water depth (m)
- Returns:
V_g
- Returns:
mult
- simulation.modules.hydro.run_MEEM(heaving_IC, heaving_OC, auto_BCs, N_num, M_num, K_num, a1_mat, a2_mat, d1_mat, d2_mat, h_mat, m0_mat, spatial_res, show_A, plot_phi)
Function
run_MEEM()- Parameters:
heaving_IC – heaving_IC
heaving_OC – heaving_OC
auto_BCs – auto_BCs
N_num – N_num
M_num – M_num
K_num – K_num
a1_mat – a1_mat
a2_mat – a2_mat
d1_mat – d1_mat
d2_mat – d2_mat
h_mat – h_mat
m0_mat – m0_mat
spatial_res – spatial_res
show_A – show_A
plot_phi – plot_phi
- Returns:
$\mu$ nondim
- Returns:
$\lambda$ nondim
- Returns:
exc_phases
- simulation.modules.hydro.get_hydro_coeffs(r, k, draft, hydro)
Function
get_hydro_coeffs()- Parameters:
r – r
k – Wavenumber (1/m)
draft – draft
hydro – function from WECSim
- Returns:
A f / $\rho$
- Returns:
A s / $\rho$
- Returns:
A c / $\rho$
- Returns:
B f / $\rho$ w
- Returns:
B s / $\rho$ w
- Returns:
B c / $\rho$ w
- Returns:
$\gamma$ f / $\rho$ g
- Returns:
$\gamma$ s / $\rho$ g
- Returns:
$\gamma$ phase f
- Returns:
$\gamma$ phase s
- simulation.modules.hydro.get_hydro_coeffs_MEEM(a2, m0, d2, a1, d1, a3, h, g, w, harmonics, spar_excitation_coeffs)
Function
get_hydro_coeffs_MEEM()- Parameters:
a2 – a2
m0 – m0
d2 – d2
a1 – a1
d1 – d1
a3 – a3
h – water depth (m)
g – acceleration of gravity (m/s2)
w – Angular wave frequency (rad/s)
harmonics – number of harmonics to use for MEEM (int)
spar_excitation_coeffs – spar excitation hydro coeffs from WAMIT for nominal RM3
- Returns:
A f / $\rho$
- Returns:
A s / $\rho$
- Returns:
A c / $\rho$
- Returns:
B f / $\rho$ w
- Returns:
B s / $\rho$ w
- Returns:
B c / $\rho$ w
- Returns:
$\gamma$ f / $\rho$ g
- Returns:
$\gamma$ s / $\rho$ g
- Returns:
$\gamma$ phase f
- Returns:
$\gamma$ phase s
- simulation.modules.hydro.dispersion(w, h, g)
Function
dispersion()- Parameters:
w – Angular wave frequency (rad/s)
h – water depth (m)
g – acceleration of gravity (m/s2)
- Returns:
Wavenumber (1/m)