Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
Class for the definition of atmospheric conditions. More...
#include <atmospheric_conditions.h>
Public Member Functions | |
AtmosphericConditions (double static_pressure_, double temperature_, double hygrometry_) | |
Constructor. More... | |
virtual | ~AtmosphericConditions () |
Destructor. More... | |
void | compute_absorption_spectrum () |
Compute absorption spectrum in dB/m. More... | |
OSpectre | get_absorption_spectrum () const |
Get absorption spectrum. More... | |
double | compute_c () const |
compute sound speed More... | |
void | compute_k () |
compute wave number More... | |
double | compute_z () |
compute impedance More... | |
OSpectre | compute_length_absorption (double length) const |
const OSpectre & | get_k () const |
Get the wave number spectrum. More... | |
double | get_absorption_value (double freq) |
return absorption value at a given frequency More... | |
Static Public Attributes | |
static const double | Z_ref = 400.0 |
reference impedance More... | |
static const double | reference_pressure = 101325.0 |
Reference pressure [Pa]. More... | |
static const double | reference_temperature = 293.15 |
Reference temperature [K]. More... | |
static const double | absolute_zero = 273.15 |
273.15 K More... | |
Protected Attributes | |
double | static_pressure |
Static pressure [Pa]. More... | |
double | temperature |
Temperature [°C]. More... | |
double | hygrometry |
Hygrometry. More... | |
OSpectre | wave_number |
Wave number spectrum. More... | |
OSpectre | absorption_spectrum |
Absorption spectrum. More... | |
Private Member Functions | |
double | compute_hm () const |
compute molar hygrometry coefficient More... | |
Class for the definition of atmospheric conditions.
XXX
Definition at line 12 of file atmospheric_conditions.h.
AtmosphericConditions::AtmosphericConditions | ( | double | static_pressure_, |
double | temperature_, | ||
double | hygrometry_ | ||
) |
Constructor.
Definition at line 12 of file atmospheric_conditions.cpp.
|
inlinevirtual |
Destructor.
Definition at line 18 of file atmospheric_conditions.h.
void AtmosphericConditions::compute_absorption_spectrum | ( | ) |
Compute absorption spectrum in dB/m.
This spectrum will be used to compute absorption for a given distance
Definition at line 20 of file atmospheric_conditions.cpp.
double AtmosphericConditions::compute_c | ( | ) | const |
compute sound speed
Definition at line 50 of file atmospheric_conditions.cpp.
|
private |
compute molar hygrometry coefficient
Definition at line 80 of file atmospheric_conditions.cpp.
void AtmosphericConditions::compute_k | ( | ) |
compute wave number
Definition at line 69 of file atmospheric_conditions.cpp.
OSpectre AtmosphericConditions::compute_length_absorption | ( | double | length | ) | const |
Definition at line 93 of file atmospheric_conditions.cpp.
double AtmosphericConditions::compute_z | ( | ) |
compute impedance
Definition at line 60 of file atmospheric_conditions.cpp.
|
inline |
Get absorption spectrum.
Definition at line 26 of file atmospheric_conditions.h.
|
inline |
return absorption value at a given frequency
Definition at line 45 of file atmospheric_conditions.h.
|
inline |
Get the wave number spectrum.
Definition at line 39 of file atmospheric_conditions.h.
|
static |
273.15 K
Definition at line 63 of file atmospheric_conditions.h.
|
protected |
Absorption spectrum.
Definition at line 56 of file atmospheric_conditions.h.
|
protected |
Hygrometry.
Definition at line 54 of file atmospheric_conditions.h.
|
static |
Reference pressure [Pa].
Definition at line 61 of file atmospheric_conditions.h.
|
static |
Reference temperature [K].
Definition at line 62 of file atmospheric_conditions.h.
|
protected |
Static pressure [Pa].
Definition at line 52 of file atmospheric_conditions.h.
|
protected |
Temperature [°C].
Definition at line 53 of file atmospheric_conditions.h.
|
protected |
Wave number spectrum.
Definition at line 55 of file atmospheric_conditions.h.
|
static |
reference impedance
Definition at line 59 of file atmospheric_conditions.h.