Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ITABase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
ITABase
Commits
3f32d1b5
Commit
3f32d1b5
authored
6 years ago
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Downloads
Patches
Plain Diff
Renaming ISO 9613 air attenuation functions
parent
d52c746c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ITAISO9613.h
+2
-2
2 additions, 2 deletions
include/ITAISO9613.h
src/ITAISO9613.cpp
+20
-20
20 additions, 20 deletions
src/ITAISO9613.cpp
with
22 additions
and
22 deletions
include/ITAISO9613.h
+
2
−
2
View file @
3f32d1b5
...
...
@@ -67,10 +67,10 @@ namespace ITABase
* \param fHumidity Relative humidity [%]
* \param fStaticPressure Static air pressure [kPa]
*/
ITA_BASE_API
void
AtmosphericAbsorption
Level
(
ITABase
::
CThirdOctaveDecibelMagnitudeSpectrum
&
oA_atm_dB
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
=
101.325
);
ITA_BASE_API
void
AtmosphericAbsorption
(
ITABase
::
CThirdOctaveDecibelMagnitudeSpectrum
&
oA_atm_dB
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
=
101.325
);
//! Calculates the atmospheric absorption in linear factors (instead of decibels)
ITA_BASE_API
void
AtmosphericAbsorption
Factor
(
ITABase
::
CThirdOctaveFactorMagnitudeSpectrum
&
oA_atm_factor
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
=
101.325
);
ITA_BASE_API
void
AtmosphericAbsorption
(
ITABase
::
CThirdOctaveFactorMagnitudeSpectrum
&
oA_atm_factor
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
=
101.325
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/ITAISO9613.cpp
+
20
−
20
View file @
3f32d1b5
...
...
@@ -74,7 +74,7 @@ double ISO9613::AtmosphericAbsorptionFactor(double dFrequency, double dDistance,
return
dAirAbsorptionFactor
;
}
void
ISO9613
::
AtmosphericAbsorption
Level
(
ITABase
::
CThirdOctaveDecibelMagnitudeSpectrum
&
oA_atm_dB
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
/*= 101.325*/
)
void
ISO9613
::
AtmosphericAbsorption
(
ITABase
::
CThirdOctaveDecibelMagnitudeSpectrum
&
oA_atm_dB
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
/*= 101.325*/
)
{
// loop over all frequencies
for
(
int
i
=
0
;
i
<
oA_atm_dB
.
GetNumBands
();
i
++
)
...
...
@@ -85,7 +85,7 @@ void ISO9613::AtmosphericAbsorptionLevel(ITABase::CThirdOctaveDecibelMagnitudeSp
}
}
void
ISO9613
::
AtmosphericAbsorption
Factor
(
ITABase
::
CThirdOctaveFactorMagnitudeSpectrum
&
oA_atm_factor
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
/*= 101.325*/
)
void
ISO9613
::
AtmosphericAbsorption
(
ITABase
::
CThirdOctaveFactorMagnitudeSpectrum
&
oA_atm_factor
,
double
dDistance
,
double
dTemperature
,
double
dHumidity
,
double
dStaticPressure
/*= 101.325*/
)
{
// loop over all frequencies and converting from decibel to a factor between 0 and 1
for
(
int
i
=
0
;
i
<
oA_atm_factor
.
GetNumBands
();
i
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment