berhoel.holtrop.test namespace

Submodules

berhoel.holtrop.test.test_holtrop module

Testing Holtrop.

class berhoel.holtrop.test.test_holtrop.TestHoltrop[source]

Bases: object

example from [4], page 275

probe()[source]
test_C_P(probe)[source]
test_C_B(probe)[source]
test_L_R(probe)[source]
test_S_calc(probe)[source]
test_k_1(probe)[source]
test_C_A(probe)[source]
test_c_17(probe)[source]
test_m_3(probe)[source]
test_rest(probe)[source]
test_c_5(probe)[source]
test_lambda(probe)[source]
test_C_15(probe)[source]
test_i_E(probe)[source]
__firstlineno__ = 25
__static_attributes__ = ()
berhoel.holtrop.test.test_holtrop.plot()[source]
berhoel.holtrop.test.test_holtrop.prau()[source]
berhoel.holtrop.test.test_holtrop.prop()[source]
berhoel.holtrop.test.test_holtrop.Poehls_Soeding()[source]

berhoel.holtrop.test.test_read_ship module

Testing read_ship.

berhoel.holtrop.test.test_ship module

Testing module holtrop.ship.

class berhoel.holtrop.test.test_ship.Ship(**kw)[source]

Bases: Ship

R(speed: Quantity) Quantity[source]

Calculate total ship resistance.

__abstractmethods__ = frozenset({})
__firstlineno__ = 32
__static_attributes__ = ()
_abc_impl = <_abc._abc_data object>
class berhoel.holtrop.test.test_ship.TestPrau[source]

Bases: object

probe()[source]
test_L(probe)[source]
test_T(probe)[source]
test_B(probe)[source]
test_C_B(probe)[source]
test_C_M(probe)[source]
test_C_WP(probe)[source]
test_A_BT(probe)[source]
test_S(probe)[source]
test_S_calc_Schenzle(probe)[source]
test_App(probe)[source]
__firstlineno__ = 37
__static_attributes__ = ()
class berhoel.holtrop.test.test_ship.TestGenerated[source]

Bases: object

probe()[source]
test_C_WP_calc_schneekluth_U(probe)[source]
test_C_WP_calc_schneekluth_medium(probe)[source]
test_C_WP_calc_schneekluth_V(probe)[source]
test_C_WP_calc_schneekluth_V_alt_1(probe)[source]
test_C_WP_calc_schneekluth_V_alt_2(probe)[source]
__firstlineno__ = 97
__static_attributes__ = ()
class berhoel.holtrop.test.test_ship.TestGenerated_C_B[source]

Bases: object

probe()[source]
class C_B_References(F_n, C_B_Ayre_1_06, C_B_Ayre_1_08, C_B_Ayre_1_09, C_B_Schneekluth_1, C_B_Schneekluth_2)[source]

Bases: NamedTuple

F_n: float

Alias for field number 0

C_B_Ayre_1_06: float

Alias for field number 1

C_B_Ayre_1_08: float

Alias for field number 2

C_B_Ayre_1_09: float

Alias for field number 3

C_B_Schneekluth_1: float

Alias for field number 4

C_B_Schneekluth_2: float

Alias for field number 5

__annotations__ = {'C_B_Ayre_1_06': <class 'float'>, 'C_B_Ayre_1_08': <class 'float'>, 'C_B_Ayre_1_09': <class 'float'>, 'C_B_Schneekluth_1': <class 'float'>, 'C_B_Schneekluth_2': <class 'float'>, 'F_n': <class 'float'>}
__firstlineno__ = 169
__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__match_args__ = ('F_n', 'C_B_Ayre_1_06', 'C_B_Ayre_1_08', 'C_B_Ayre_1_09', 'C_B_Schneekluth_1', 'C_B_Schneekluth_2')
static __new__(_cls, F_n: float, C_B_Ayre_1_06: float, C_B_Ayre_1_08: float, C_B_Ayre_1_09: float, C_B_Schneekluth_1: float, C_B_Schneekluth_2: float)

Create new instance of C_B_References(F_n, C_B_Ayre_1_06, C_B_Ayre_1_08, C_B_Ayre_1_09, C_B_Schneekluth_1, C_B_Schneekluth_2)

__orig_bases__ = (<function NamedTuple>,)
__replace__(**kwds)

Return a new C_B_References object replacing specified fields with new values

__repr__()

Return a nicely formatted representation string

__slots__ = ()
__static_attributes__ = ()
_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('F_n', 'C_B_Ayre_1_06', 'C_B_Ayre_1_08', 'C_B_Ayre_1_09', 'C_B_Schneekluth_1', 'C_B_Schneekluth_2')
classmethod _make(iterable)

Make a new C_B_References object from a sequence or iterable

_replace(**kwds)

Return a new C_B_References object replacing specified fields with new values

C_B_reference(probe, request)[source]
test_C_B(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
test_C_B_calc_Ayre_1_06(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
test_C_B_calc_Ayre_1_08(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
test_C_B_calc_Ayre_1_09(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
test_C_B_calc_Schneekluth_1(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
test_C_B_calc_Schneekluth_2(probe, C_B_reference: tuple[C_B_References, Quantity])[source]
__firstlineno__ = 144
__static_attributes__ = ()
class berhoel.holtrop.test.test_ship.C_WP_References(C_B, C_M, C_WP_U, C_WP_medium, C_WP_V, C_WP_V_alt_1, C_WP_V_alt_2)[source]

Bases: NamedTuple

C_B: float

Alias for field number 0

C_M: float

Alias for field number 1

C_WP_U: float

Alias for field number 2

C_WP_medium: float

Alias for field number 3

C_WP_V: float

Alias for field number 4

C_WP_V_alt_1: float

Alias for field number 5

C_WP_V_alt_2: float

Alias for field number 6

__annotations__ = {'C_B': <class 'float'>, 'C_M': <class 'float'>, 'C_WP_U': <class 'float'>, 'C_WP_V': <class 'float'>, 'C_WP_V_alt_1': <class 'float'>, 'C_WP_V_alt_2': <class 'float'>, 'C_WP_medium': <class 'float'>}
__firstlineno__ = 234
__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__match_args__ = ('C_B', 'C_M', 'C_WP_U', 'C_WP_medium', 'C_WP_V', 'C_WP_V_alt_1', 'C_WP_V_alt_2')
static __new__(_cls, C_B: float, C_M: float, C_WP_U: float, C_WP_medium: float, C_WP_V: float, C_WP_V_alt_1: float, C_WP_V_alt_2: float)

Create new instance of C_WP_References(C_B, C_M, C_WP_U, C_WP_medium, C_WP_V, C_WP_V_alt_1, C_WP_V_alt_2)

__orig_bases__ = (<function NamedTuple>,)
__replace__(**kwds)

Return a new C_WP_References object replacing specified fields with new values

__repr__()

Return a nicely formatted representation string

__slots__ = ()
__static_attributes__ = ()
_asdict()

Return a new dict which maps field names to their values.

_field_defaults = {}
_fields = ('C_B', 'C_M', 'C_WP_U', 'C_WP_medium', 'C_WP_V', 'C_WP_V_alt_1', 'C_WP_V_alt_2')
classmethod _make(iterable)

Make a new C_WP_References object from a sequence or iterable

_replace(**kwds)

Return a new C_WP_References object replacing specified fields with new values

berhoel.holtrop.test.test_ship.C_WP_reference(request)[source]
berhoel.holtrop.test.test_ship.test_calc_C_WP_Schneekluth_U(C_WP_reference)[source]
berhoel.holtrop.test.test_ship.test_calc_C_WP_Schneekluth_medium(C_WP_reference)[source]
berhoel.holtrop.test.test_ship.test_calc_C_WP_Schneekluth_V(C_WP_reference)[source]
berhoel.holtrop.test.test_ship.test_calc_C_WP_Schneekluth_V_alt_1(C_WP_reference)[source]
berhoel.holtrop.test.test_ship.test_calc_C_WP_Schneekluth_V_alt_2(C_WP_reference)[source]