NMPB08 Shared Libraries
Classes | Functions
CalculPropagationNMPB Namespace Reference

Classes

class  Attenuation
 Class used to sound attenuation calculations along a given path, with a specified frequency. More...

Functions

double SumLevels (int n, double const *levels)
 Calculates sound levels sum.
double SoundLevelForPath (double soundLevel_h, double soundLevel_f, double favourableProbability)
 Calculates long-term sound level for the given the sound levels (homogeneous and favorable) for a path.
double GetFavorableConditionProbability (Position3D const *sourcePos, Position3D const *receiverPos, int nbAngles, double const *fcpAngles, double angleNorth)
 Calculates the favorable conditions probability for the (SR) direction.
void CalculateLeqLT (int nbFreq, double const *Lw, double const *attH, double const *attF, double fcp, double *LeqH, double *LeqF, double *LeqLT)
 Calculates the Long-term sound level Leq due to one source at point R, in each given frequency band.

Function Documentation

void CalculPropagationNMPB::CalculateLeqLT ( int  nbFreq,
double const *  Lw,
double const *  attH,
double const *  attF,
double  fcp,
double *  LeqH,
double *  LeqF,
double *  LeqLT 
)

Calculates the Long-term sound level Leq due to one source at point R, in each given frequency band.

Parameters:
nbFreqThe frequencies number (user data)
LwThe sound power levels of the source, in each frequency band (user data)
attHAttenuations due to the propagation between source and receiver in homogeneous conditions, in each frequency band (user data)
attFAttenuations due to the propagation between source and receiver in downward-refraction conditions, in each frequency band (user data)
fcpProbability of occurrence of downward-refraction conditions over a long-term period in a given direction, p in [0, 1] (user data)
LeqHSound levels due to source Si at point R in homogeneous conditions, in each frequency band (calculated in this function)
LeqFSound levels due to source Si at point R in downward-refraction conditions, in each frequency band (calculated in this function)
LeqLTLong-term sound levels due to source Si at point R, in each given frequency band (calculated in this function)

Definition at line 170 of file CalculPropagation.cpp.

double CalculPropagationNMPB::GetFavorableConditionProbability ( Position3D const *  sourcePos,
Position3D const *  receiverPos,
int  nbAngles,
double const *  fcpAngles,
double  angleNorth 
)

Calculates the favorable conditions probability for the (SR) direction.

Parameters:
sourcePosThe source position 3D
receiverPosThe receiver position 3D
nbAnglesThe number of angle probabilities (should be 18)
fcpAnglesThe favorable conditions probabilities for the angles 20, 40, 60, ..., 360
angleNorthThe north direction (Ox,ON)
Returns:
the favorable conditions probability for the (SR) direction
Exceptions:
ERRAngle

Definition at line 103 of file CalculPropagation.cpp.

double CalculPropagationNMPB::SoundLevelForPath ( double  soundLevel_h,
double  soundLevel_f,
double  favourableProbability 
)

Calculates long-term sound level for the given the sound levels (homogeneous and favorable) for a path.

p.18 - § 5.2.3 Formula (7)

Parameters:
soundLevel_hThe sound level in homogeneous conditions
soundLevel_fThe sound level in downward-refraction conditions
favourableProbabilityThe average occurrence of downward-refraction conditions in the direction of the path
Returns:
The calculated sound level
Exceptions:
ERRProbability

Definition at line 75 of file CalculPropagation.cpp.

double CalculPropagationNMPB::SumLevels ( int  n,
double const *  levels 
)

Calculates sound levels sum.

Used for § 5.2.4 Formula (8) and § 5.2.5 Formula (9)

Parameters:
nthe sound levels number
levelsThe sound levels to sum
Returns:
the sum

Definition at line 47 of file CalculPropagation.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines