Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
AtmosphericConditions Class Reference

Class for the definition of atmospheric conditions. More...

#include <atmospheric_conditions.h>

Collaboration diagram for AtmosphericConditions:
Collaboration graph
[legend]

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...
 
void compute_absorption_spectrum_oct ()
 Compute absorption spectrum in dB/m for octave band computation. More...
 
OSpectre get_absorption_spectrum () const
 Get absorption spectrum. More...
 
OSpectreOctave get_absorption_spectrum_oct () const
 Get absorption spectrum for octave band computation. 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
 
OSpectreOctave compute_length_absorption_oct (double length) const
 
const OSpectreget_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...
 
OSpectreOctave absorption_spectrum_oct
 

Private Member Functions

double compute_hm () const
 compute molar hygrometry coefficient More...
 

Detailed Description

Class for the definition of atmospheric conditions.

XXX

Todo:
Add the entity 'Atmosphere' with attr: pression, temperature, hygrometry (
Note
can find these values in the TYCalcul instead of TYSite).

Definition at line 11 of file atmospheric_conditions.h.

Constructor & Destructor Documentation

◆ AtmosphericConditions()

AtmosphericConditions::AtmosphericConditions ( double  static_pressure_,
double  temperature_,
double  hygrometry_ 
)

Constructor.

Definition at line 14 of file atmospheric_conditions.cpp.

Here is the call graph for this function:

◆ ~AtmosphericConditions()

virtual AtmosphericConditions::~AtmosphericConditions ( )
inlinevirtual

Destructor.

Definition at line 17 of file atmospheric_conditions.h.

Member Function Documentation

◆ compute_absorption_spectrum()

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 22 of file atmospheric_conditions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_absorption_spectrum_oct()

void AtmosphericConditions::compute_absorption_spectrum_oct ( )

Compute absorption spectrum in dB/m for octave band computation.

This spectrum will be used to compute absorption for a given distance in octave band computation

Definition at line 54 of file atmospheric_conditions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_c()

double AtmosphericConditions::compute_c ( ) const

compute sound speed

Definition at line 67 of file atmospheric_conditions.cpp.

Here is the caller graph for this function:

◆ compute_hm()

double AtmosphericConditions::compute_hm ( ) const
private

compute molar hygrometry coefficient

Definition at line 97 of file atmospheric_conditions.cpp.

Here is the caller graph for this function:

◆ compute_k()

void AtmosphericConditions::compute_k ( )

compute wave number

Definition at line 86 of file atmospheric_conditions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_length_absorption()

OSpectre AtmosphericConditions::compute_length_absorption ( double  length) const

Definition at line 110 of file atmospheric_conditions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_length_absorption_oct()

OSpectreOctave AtmosphericConditions::compute_length_absorption_oct ( double  length) const

Definition at line 115 of file atmospheric_conditions.cpp.

Here is the caller graph for this function:

◆ compute_z()

double AtmosphericConditions::compute_z ( )

compute impedance

Definition at line 77 of file atmospheric_conditions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_absorption_spectrum()

OSpectre AtmosphericConditions::get_absorption_spectrum ( ) const
inline

Get absorption spectrum.

Definition at line 32 of file atmospheric_conditions.h.

◆ get_absorption_spectrum_oct()

OSpectreOctave AtmosphericConditions::get_absorption_spectrum_oct ( ) const
inline

Get absorption spectrum for octave band computation.

Definition at line 38 of file atmospheric_conditions.h.

Here is the caller graph for this function:

◆ get_absorption_value()

double AtmosphericConditions::get_absorption_value ( double  freq)
inline

return absorption value at a given frequency

Definition at line 65 of file atmospheric_conditions.h.

Here is the call graph for this function:

◆ get_k()

const OSpectre& AtmosphericConditions::get_k ( ) const
inline

Get the wave number spectrum.

Definition at line 56 of file atmospheric_conditions.h.

Here is the caller graph for this function:

Member Data Documentation

◆ absolute_zero

const double AtmosphericConditions::absolute_zero = 273.15
static

273.15 K

Definition at line 87 of file atmospheric_conditions.h.

◆ absorption_spectrum

OSpectre AtmosphericConditions::absorption_spectrum
protected

Absorption spectrum.

Definition at line 78 of file atmospheric_conditions.h.

◆ absorption_spectrum_oct

OSpectreOctave AtmosphericConditions::absorption_spectrum_oct
protected

Absorption spectrum for octave band computation in dB per km rounded to one decimal place

Definition at line 79 of file atmospheric_conditions.h.

◆ hygrometry

double AtmosphericConditions::hygrometry
protected

Hygrometry.

Definition at line 76 of file atmospheric_conditions.h.

◆ reference_pressure

const double AtmosphericConditions::reference_pressure = 101325.0
static

Reference pressure [Pa].

Definition at line 85 of file atmospheric_conditions.h.

◆ reference_temperature

const double AtmosphericConditions::reference_temperature = 293.15
static

Reference temperature [K].

Definition at line 86 of file atmospheric_conditions.h.

◆ static_pressure

double AtmosphericConditions::static_pressure
protected

Static pressure [Pa].

Definition at line 74 of file atmospheric_conditions.h.

◆ temperature

double AtmosphericConditions::temperature
protected

Temperature [°C].

Definition at line 75 of file atmospheric_conditions.h.

◆ wave_number

OSpectre AtmosphericConditions::wave_number
protected

Wave number spectrum.

Definition at line 77 of file atmospheric_conditions.h.

◆ Z_ref

const double AtmosphericConditions::Z_ref = 400.0
static

reference impedance

Definition at line 83 of file atmospheric_conditions.h.


The documentation for this class was generated from the following files: