Auxiliary data structure for parameters of mechanical model.
More...
#include <JMechanics_t.hh>
|
| double | a |
| | 0 <= a < (maximal height)⁻1; [m^-1]
|
| |
| double | b |
| | 0 <= b; [m]
|
| |
|
| std::istream & | operator>> (std::istream &in, JMechanics ¶meters) |
| | Read parameters from input stream.
|
| |
| std::ostream & | operator<< (std::ostream &out, const JMechanics ¶meters) |
| | Write parameters to output stream.
|
| |
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.
◆ JMechanics() [1/2]
| JACOUSTICS::JMechanics::JMechanics |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 35 of file JMechanics_t.hh.
35 :
38 {}
double a
0 <= a < (maximal height)⁻1; [m^-1]
◆ JMechanics() [2/2]
| JACOUSTICS::JMechanics::JMechanics |
( |
const double | a, |
|
|
const double | b ) |
|
inline |
Constructor.
- Parameters
-
| a | logarithmic term |
| b | linear term |
Definition at line 47 of file JMechanics_t.hh.
◆ getHeight()
| double JACOUSTICS::JMechanics::getHeight |
( |
const double | height | ) |
const |
|
inline |
Get effective height for given actual height.
- Parameters
-
- 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 | ) |
◆ operator>>
| std::istream & operator>> |
( |
std::istream & | in, |
|
|
JMechanics & | parameters ) |
|
friend |
Read parameters from input stream.
- Parameters
-
| in | input stream |
| parameters | parameters |
- 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
-
| out | output stream |
| parameters | parameters |
- 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.
| double JACOUSTICS::JMechanics::a |
| double JACOUSTICS::JMechanics::b |
The documentation for this struct was generated from the following file: