Skip to content

openstb.simulator.environment.invariant

Classes:

Name Description
InvariantEnvironment

Environment with space- and time-invariant properties.

InvariantEnvironment

InvariantEnvironment(salinity, sound_speed, temperature)

Bases: Environment

Environment with space- and time-invariant properties.

Parameters:

Name Type Description Default
salinity float

The salinity in parts per thousand.

required
sound_speed float

The speed of propagation in metres per second.

required
temperature float

The temperature in degrees Celsius.

required
Source code in openstb/simulator/environment/invariant.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
def __init__(self, salinity: float, sound_speed: float, temperature: float):
    """
    Parameters
    ----------
    salinity : float
        The salinity in parts per thousand.
    sound_speed : float
        The speed of propagation in metres per second.
    temperature : float
        The temperature in degrees Celsius.

    """
    self._salinity = salinity
    self._sound_speed = sound_speed
    self._temperature = temperature