Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JMechanics Struct Reference

Auxiliary data structure for parameters of mechanical model. More...

#include <JMechanics_t.hh>

Public Member Functions

 JMechanics ()
 Default constructor.
 
 JMechanics (const double a, const double b)
 Constructor.
 
double getHeight (const double height) const
 Get effective height for given actual height.
 
 ClassDefNV (JMechanics, 1)
 

Public Attributes

double a
 0 <= a < (maximal height)⁻1; [m^-1]
 
double b
 0 <= b; [m]
 

Friends

std::istream & operator>> (std::istream &in, JMechanics &parameters)
 Read parameters from input stream.
 
std::ostream & operator<< (std::ostream &out, const JMechanics &parameters)
 Write parameters to output stream.
 

Detailed Description

Auxiliary data structure for parameters of mechanical model.


This data structure provides for the implementation of the effective height conform the mechanical model of string.

Definition at line 31 of file JMechanics_t.hh.

Constructor & Destructor Documentation

◆ JMechanics() [1/2]

JACOUSTICS::JMechanics::JMechanics ( )
inline

Default constructor.

Definition at line 35 of file JMechanics_t.hh.

35 :
36 a(0.0),
37 b(0.0)
38 {}
double a
0 <= a < (maximal height)⁻1; [m^-1]
double b
0 <= b; [m]

◆ JMechanics() [2/2]

JACOUSTICS::JMechanics::JMechanics ( const double a,
const double b )
inline

Constructor.

Parameters
alogarithmic term
blinear term

Definition at line 47 of file JMechanics_t.hh.

48 :
49 a(a),
50 b(b)
51 {}

Member Function Documentation

◆ getHeight()

double JACOUSTICS::JMechanics::getHeight ( const double height) const
inline

Get effective height for given actual height.

Parameters
heightheight
Returns
height

Definition at line 60 of file JMechanics_t.hh.

61 {
62 return height + this->b * log(1.0 - this->a * height);
63 }

◆ ClassDefNV()

JACOUSTICS::JMechanics::ClassDefNV ( JMechanics ,
1  )

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JMechanics & parameters )
friend

Read parameters from input stream.

Parameters
ininput stream
parametersparameters
Returns
input stream

Definition at line 73 of file JMechanics_t.hh.

74 {
75 return in >> parameters.a >> parameters.b;
76 }

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JMechanics & parameters )
friend

Write parameters to output stream.

Parameters
outoutput stream
parametersparameters
Returns
output stream

Definition at line 86 of file JMechanics_t.hh.

87 {
88 return out << FIXED(7,5) << parameters.a << ' '
89 << FIXED(7,3) << parameters.b;
90 }
Auxiliary data structure for floating point format specification.
Definition JManip.hh:448

Member Data Documentation

◆ a

double JACOUSTICS::JMechanics::a

0 <= a < (maximal height)⁻1; [m^-1]

Definition at line 94 of file JMechanics_t.hh.

◆ b

double JACOUSTICS::JMechanics::b

0 <= b; [m]

Definition at line 95 of file JMechanics_t.hh.


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