capytaine.green_functions.hams module

class capytaine.green_functions.hams.FinGreen3D(*, nb_dispersion_roots=200)[source]

Bases: AbstractGreenFunction

Wrapper for the Fortran implementation of the finite depth Green function of [Liu et al.].

Uses the same implementation as Delhommeau() for the Rankine and reflected Rankine terms.

compute_dispersion_relation_roots(nk, wavenumber, depth)[source]
dummy_param = -999
evaluate(mesh1, mesh2, free_surface, water_depth, wavenumber, adjoint_double_layer=True, early_dot_product=True)[source]
finite_depth_method_index = array(-1, dtype=int32)
floating_point_precision: str = 'float64'
fortran_core = <module 'capytaine.green_functions.libs.Delhommeau_float64' from '/home/runner/work/_temp/setup-uv-cache/archive-v0/aN2HiAbs3CAushTH2mVsE/lib/python3.12/site-packages/capytaine/green_functions/libs/Delhommeau_float64.cpython-312-x86_64-linux-gnu.so'>
gf_singularities_index = array(1, dtype=int32)
prony_decomposition = array([[0.]])
tabulated_integrals = array([6.9132962e-310])
tabulated_r_range = array([2.53909287e-315])
tabulated_z_range = array([6.19543e-319])
tabulation_nb_integration_points = 1
class capytaine.green_functions.hams.HAMS_GF[source]

Bases: AbstractGreenFunction

evaluate(mesh1, mesh2, free_surface, water_depth, wavenumber, adjoint_double_layer=True, early_dot_product=True)[source]
exportable_settings = {'green_function': 'HAMS_GF'}
floating_point_precision: str = 'float64'
class capytaine.green_functions.hams.LiangWuNoblesseGF[source]

Bases: AbstractGreenFunction

Wrapper for the Fortran implementation of the infinite depth Green function of [Liang, Wu, Noblesse, 2018].

Uses the same implementation as Delhommeau() for the Rankine and reflected Rankine terms.

dispersion_relation_roots = array([2.54209215e-315])
dummy_param = -999
evaluate(mesh1, mesh2, free_surface=0.0, water_depth=inf, wavenumber=1.0, adjoint_double_layer=True, early_dot_product=True)[source]
exportable_settings = {'green_function': 'LiangWuNoblesseGF'}
finite_depth_method_index = -9999
floating_point_precision: str = 'float64'
fortran_core = <module 'capytaine.green_functions.libs.Delhommeau_float64' from '/home/runner/work/_temp/setup-uv-cache/archive-v0/aN2HiAbs3CAushTH2mVsE/lib/python3.12/site-packages/capytaine/green_functions/libs/Delhommeau_float64.cpython-312-x86_64-linux-gnu.so'>
prony_decomposition = array([[0.]])
tabulated_integrals = array([2.54482227e-315])
tabulated_r_range = array([2.54688563e-315])
tabulated_z_range = array([6.9132962e-310])
tabulation_grid_shape_index = array(-1, dtype=int32)
tabulation_nb_integration_points = 1