NMPB08 Shared Libraries
|
#include "pathdefNMPB.h"
Go to the source code of this file.
Defines | |
#define | _COMPILE_NMPB extern "C" |
Typedefs | |
typedef void * | PathID |
the path reference | |
Functions | |
_COMPILE_NMPB PathID | NMPB08_CreatePath () |
Creates path calculator with default frequency range. | |
_COMPILE_NMPB PathID | NMPB08_CreatePathEx (int nbFreq, double const *freq) |
Creates path calculator with user defined frequency range. | |
_COMPILE_NMPB bool | NMPB08_SetOption (PathID, Option option, bool on_off) |
Set an option for the path. | |
_COMPILE_NMPB int | NMPB08_GetNbFrequencies (PathID) |
Gets the frequencies number. | |
_COMPILE_NMPB double const * | NMPB08_GetFrequencies (PathID) |
Gets the frequencies array. | |
_COMPILE_NMPB bool | NMPB08_DeletePath (PathID) |
Delete the path calculator. | |
_COMPILE_NMPB bool | NMPB08_ClearPath (PathID) |
clear the path profile | |
_COMPILE_NMPB bool | NMPB08_ExtendPath (PathID, Position3D const *point3D, double g) |
Add a segment to the path profile. | |
_COMPILE_NMPB bool | NMPB08_ExtendPathExt (PathID, Position3D const *point3D, double g, ExtensionNMPB const *ext) |
Add a segment to the path profile with extension data. | |
_COMPILE_NMPB int | NMPB08_SetSourceHeight (PathID, double h) |
Set the source height. | |
_COMPILE_NMPB int | NMPB08_SetReceiverHeight (PathID, double h) |
Set the receiver height. | |
_COMPILE_NMPB int | NMPB08_DoCalculation (PathID) |
Do the propagation calculation. | |
_COMPILE_NMPB double const * | NMPB08_GetAttF (PathID) |
Get path attenuations under favorable conditions. | |
_COMPILE_NMPB double const * | NMPB08_GetAttH (PathID) |
Get path attenuations under homogeneous conditions. | |
_COMPILE_NMPB double | NMPB08_Leq_LT (double soundLevel_h, double soundLevel_f, double p) |
Calculates long-term sound level for the given the sound levels (homogeneous and favorable) | |
_COMPILE_NMPB double | NMPB08_SumLevels (int n, double const *levels) |
Calculates sound levels sum. | |
_COMPILE_NMPB double | NMPB08_GetFavorableConditionProbability (Position3D const *source, Position3D const *receiver, int nbAngles, double const *fcpAngles, double angleNorth) |
Calculates the favorable conditions probability for the (SR) direction. | |
_COMPILE_NMPB int | NMPB08_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. |
#define _COMPILE_NMPB extern "C" |
Definition at line 42 of file PropagationNMPB08.h.
typedef void* PathID |
the path reference
Definition at line 50 of file PropagationNMPB08.h.
_COMPILE_NMPB int NMPB08_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.
nbFreq | The frequencies number (user data) |
Lw | The sound power levels of the source, in each frequency band (user data) |
attH | Attenuations due to the propagation between source and receiver in homogeneous conditions, in each frequency band (user data) |
attF | Attenuations due to the propagation between source and receiver in downward-refraction conditions, in each frequency band (user data) |
fcp | Probability of occurrence of downward-refraction conditions over a long-term period in a given direction, p in [0, 1] (user data) |
LeqH | Sound levels due to source Si at point R in homogeneous conditions, in each frequency band (calculated in this function) |
LeqF | Sound levels due to source Si at point R in downward-refraction conditions, in each frequency band (calculated in this function) |
LeqLT | Long-term sound levels due to source Si at point R, in each given frequency band (calculated in this function) |
Definition at line 682 of file PropagationNMPB08.cpp.
_COMPILE_NMPB bool NMPB08_ClearPath | ( | PathID | path | ) |
clear the path profile
path | The path to clear |
Definition at line 214 of file PropagationNMPB08.cpp.
_COMPILE_NMPB PathID NMPB08_CreatePath | ( | ) |
Creates path calculator with default frequency range.
Definition at line 41 of file PropagationNMPB08.cpp.
_COMPILE_NMPB PathID NMPB08_CreatePathEx | ( | int | nbFreq, |
double const * | freq | ||
) |
Creates path calculator with user defined frequency range.
nbFreq | : frequencies number |
freq | : frequencies values |
Definition at line 74 of file PropagationNMPB08.cpp.
_COMPILE_NMPB bool NMPB08_DeletePath | ( | PathID | path | ) |
Delete the path calculator.
path | The path to delete |
Definition at line 186 of file PropagationNMPB08.cpp.
_COMPILE_NMPB int NMPB08_DoCalculation | ( | PathID | path | ) |
Do the propagation calculation.
path | The path to do propagation calculation |
Definition at line 398 of file PropagationNMPB08.cpp.
_COMPILE_NMPB bool NMPB08_ExtendPath | ( | PathID | path, |
Position3D const * | point3D, | ||
double | g | ||
) |
Add a segment to the path profile.
path | The path to add segment |
point3D | The 3D coordinates to add |
g | The impedance value for the segment before the added point |
Definition at line 247 of file PropagationNMPB08.cpp.
_COMPILE_NMPB bool NMPB08_ExtendPathExt | ( | PathID | path, |
Position3D const * | point3D, | ||
double | g, | ||
ExtensionNMPB const * | ext | ||
) |
Add a segment to the path profile with extension data.
path | The path to add segment. |
point3D | The 3D coordinates to add |
g | The impedance value for the segment before the added point |
ext | The extension data |
Definition at line 281 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double const* NMPB08_GetAttF | ( | PathID | path | ) |
Get path attenuations under favorable conditions.
path | The path to get attenuations |
Definition at line 519 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double const* NMPB08_GetAttH | ( | PathID | path | ) |
Get path attenuations under homogeneous conditions.
path | The path to get attenuations |
Definition at line 546 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double NMPB08_GetFavorableConditionProbability | ( | Position3D const * | source, |
Position3D const * | receiver, | ||
int | nbAngles, | ||
const double * | fcpAngles, | ||
double | angleNorth | ||
) |
Calculates the favorable conditions probability for the (SR) direction.
source | The source position 3D |
receiver | The receiver position 3D |
nbAngles | The number of angle probabilities (should be 18) |
fcpAngles | The favorable conditions probabilities for the angles 20, 40, 60, ..., 360 |
angleNorth | The north direction (Ox,ON) |
Definition at line 637 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double const* NMPB08_GetFrequencies | ( | PathID | path | ) |
Gets the frequencies array.
path | The path containing frequencies |
Definition at line 159 of file PropagationNMPB08.cpp.
_COMPILE_NMPB int NMPB08_GetNbFrequencies | ( | PathID | path | ) |
Gets the frequencies number.
path | The path containing frequencies |
Definition at line 132 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double NMPB08_Leq_LT | ( | double | soundLevel_h, |
double | soundLevel_f, | ||
double | p | ||
) |
Calculates long-term sound level for the given the sound levels (homogeneous and favorable)
soundLevel_h | : sound level in homogeneous conditions |
soundLevel_f | : sound level in downward-refraction conditions |
p | The average occurrence of downward-refraction conditions in the direction of the path |
Definition at line 577 of file PropagationNMPB08.cpp.
Set an option for the path.
path | The path to set the option |
option | The option to set |
on_off | True if the option must be set to true |
Definition at line 104 of file PropagationNMPB08.cpp.
_COMPILE_NMPB int NMPB08_SetReceiverHeight | ( | PathID | path, |
double | h | ||
) |
Set the receiver height.
path | The path to set receiver height |
h | The receiver height |
Definition at line 341 of file PropagationNMPB08.cpp.
_COMPILE_NMPB int NMPB08_SetSourceHeight | ( | PathID | path, |
double | h | ||
) |
Set the source height.
path | The path to set source height |
h | The source height |
Definition at line 311 of file PropagationNMPB08.cpp.
_COMPILE_NMPB double NMPB08_SumLevels | ( | int | n, |
double const * | levels | ||
) |
Calculates sound levels sum.
Used for § 5.2.4 Formula (8) and § 5.2.5 Formula (9)
n | the sound levels number |
levels | The sound levels to sum |
Definition at line 605 of file PropagationNMPB08.cpp.