Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JConstantSoundVelocity Struct Reference

Implementation for depth independend velocity of sound. More...

#include <JConstantSoundVelocity.hh>

Inheritance diagram for JACOUSTICS::JConstantSoundVelocity:
JACOUSTICS::JAbstractSoundVelocity

Public Member Functions

 JConstantSoundVelocity (const double V)
 Constructor.
 
virtual double operator() () const override
 Get velocity of sound.
 
virtual double operator() (const double z) const
 Get velocity of sound at given depth relative to seabed.
 
virtual double getDistance (const double t_s, const double z1, const double z2) const override
 Get distance travelled by sound.
 
virtual double getTime (const double D_m, const double z1, const double z2) const override
 Get propagation time of sound.
 
virtual double getInverseVelocity (const double D_m, const double z1, const double z2) const override
 Get inverse velocity of sound.
 

Public Attributes

const double V
 

Detailed Description

Implementation for depth independend velocity of sound.


Definition at line 21 of file JConstantSoundVelocity.hh.

Constructor & Destructor Documentation

◆ JConstantSoundVelocity()

JACOUSTICS::JConstantSoundVelocity::JConstantSoundVelocity ( const double V)
inline

Constructor.

Parameters
Vvelocity [m/s]

Definition at line 29 of file JConstantSoundVelocity.hh.

Member Function Documentation

◆ operator()() [1/2]

virtual double JACOUSTICS::JConstantSoundVelocity::operator() ( ) const
inlineoverridevirtual

Get velocity of sound.

Returns
velocity [m/s]

Implements JACOUSTICS::JAbstractSoundVelocity.

Definition at line 39 of file JConstantSoundVelocity.hh.

40 {
41 return V;
42 }

◆ operator()() [2/2]

virtual double JACOUSTICS::JConstantSoundVelocity::operator() ( const double z) const
inlinevirtual

Get velocity of sound at given depth relative to seabed.

Parameters
zdepth [m]
Returns
velocity [m/s]

Reimplemented from JACOUSTICS::JAbstractSoundVelocity.

Definition at line 51 of file JConstantSoundVelocity.hh.

52 {
53 return V;
54 }

◆ getDistance()

virtual double JACOUSTICS::JConstantSoundVelocity::getDistance ( const double t_s,
const double z1,
const double z2 ) const
inlineoverridevirtual

Get distance travelled by sound.

Parameters
t_stime [s]
z1depth [m]
z2depth [m]
Returns
distance [m]

Implements JACOUSTICS::JAbstractSoundVelocity.

Definition at line 65 of file JConstantSoundVelocity.hh.

68 {
69 return t_s * V;
70 }

◆ getTime()

virtual double JACOUSTICS::JConstantSoundVelocity::getTime ( const double D_m,
const double z1,
const double z2 ) const
inlineoverridevirtual

Get propagation time of sound.

Parameters
D_mdistance [m]
z1depth [m]
z2depth [m]
Returns
time [s]

Implements JACOUSTICS::JAbstractSoundVelocity.

Definition at line 81 of file JConstantSoundVelocity.hh.

84 {
85 return D_m / V;
86 }

◆ getInverseVelocity()

virtual double JACOUSTICS::JConstantSoundVelocity::getInverseVelocity ( const double D_m,
const double z1,
const double z2 ) const
inlineoverridevirtual

Get inverse velocity of sound.

Parameters
D_mdistance [m]
z1depth [m]
z2depth [m]
Returns
inverse velocity [s/m]

Implements JACOUSTICS::JAbstractSoundVelocity.

Definition at line 97 of file JConstantSoundVelocity.hh.

100 {
101 return 1.0 / V;
102 }

Member Data Documentation

◆ V

const double JACOUSTICS::JConstantSoundVelocity::V

Definition at line 104 of file JConstantSoundVelocity.hh.


The documentation for this struct was generated from the following file: