Code_TYMPAN  4.2.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...
 
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 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...
 

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 12 of file atmospheric_conditions.h.

Constructor & Destructor Documentation

◆ AtmosphericConditions()

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

Constructor.

Definition at line 12 of file atmospheric_conditions.cpp.

Here is the call graph for this function:

◆ ~AtmosphericConditions()

virtual AtmosphericConditions::~AtmosphericConditions ( )
inlinevirtual

Destructor.

Definition at line 18 of file atmospheric_conditions.h.

Here is the call graph for this function:

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 20 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 50 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 80 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 69 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 93 of file atmospheric_conditions.cpp.

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

◆ compute_z()

double AtmosphericConditions::compute_z ( )

compute impedance

Definition at line 60 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 26 of file atmospheric_conditions.h.

Here is the call 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 45 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 39 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 63 of file atmospheric_conditions.h.

◆ absorption_spectrum

OSpectre AtmosphericConditions::absorption_spectrum
protected

Absorption spectrum.

Definition at line 56 of file atmospheric_conditions.h.

◆ hygrometry

double AtmosphericConditions::hygrometry
protected

Hygrometry.

Definition at line 54 of file atmospheric_conditions.h.

◆ reference_pressure

const double AtmosphericConditions::reference_pressure = 101325.0
static

Reference pressure [Pa].

Definition at line 61 of file atmospheric_conditions.h.

◆ reference_temperature

const double AtmosphericConditions::reference_temperature = 293.15
static

Reference temperature [K].

Definition at line 62 of file atmospheric_conditions.h.

◆ static_pressure

double AtmosphericConditions::static_pressure
protected

Static pressure [Pa].

Definition at line 52 of file atmospheric_conditions.h.

◆ temperature

double AtmosphericConditions::temperature
protected

Temperature [°C].

Definition at line 53 of file atmospheric_conditions.h.

◆ wave_number

OSpectre AtmosphericConditions::wave_number
protected

Wave number spectrum.

Definition at line 55 of file atmospheric_conditions.h.

◆ Z_ref

const double AtmosphericConditions::Z_ref = 400.0
static

reference impedance

Definition at line 59 of file atmospheric_conditions.h.


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