Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ITAPropagationModels
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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)
ITAPropagationModels
Commits
e4435b08
Commit
e4435b08
authored
Nov 16, 2023
by
Philipp Schäfer
Browse files
Options
Downloads
Plain Diff
Merge branch 'release/2023b'
parents
b486a1f0
184462c2
Branches
Branches containing commit
Tags
VA_v2023b
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
src/ITAPropagationModels/Atmosphere/AirAttenuation.cpp
+7
-4
7 additions, 4 deletions
src/ITAPropagationModels/Atmosphere/AirAttenuation.cpp
src/ITAPropagationModels/FilterEngine.cpp
+0
-4
0 additions, 4 deletions
src/ITAPropagationModels/FilterEngine.cpp
with
8 additions
and
9 deletions
CMakeLists.txt
+
1
−
1
View file @
e4435b08
...
...
@@ -4,7 +4,7 @@ init_project ()
project
(
ITAPropagationModels
VERSION 2023.
0
VERSION 2023.
1
LANGUAGES CXX C
)
...
...
This diff is collapsed.
Click to expand it.
src/ITAPropagationModels/Atmosphere/AirAttenuation.cpp
+
7
−
4
View file @
e4435b08
...
...
@@ -29,12 +29,15 @@ void Atmosphere::AirAttenuationSpectrum( ITABase::CThirdOctaveFactorMagnitudeSpe
{
const
int
idxNext
=
std
::
min
(
idxCurrent
+
iDownSamplingFactor
,
oRay
.
NumPoints
(
)
-
1
);
const
float
fAltitude
=
std
::
abs
(
oRay
[
idxCurrent
].
position
[
Vista
::
Z
]
);
const
float
fDistance
=
(
oRay
[
idxNext
].
position
-
oRay
[
idxCurrent
].
position
).
GetLength
(
);
const
double
dAltitude
=
(
double
)
std
::
abs
(
oRay
[
idxCurrent
].
position
[
Vista
::
Z
]
);
const
double
dDistance
=
(
double
)(
oRay
[
idxNext
].
position
-
oRay
[
idxCurrent
].
position
).
GetLength
(
);
const
double
dTemperaturCelsius
=
oAtmosphere
.
Temperature
(
dAltitude
)
-
273.15
;
//C
const
double
dRelativeHumidity
=
oAtmosphere
.
RelativeHumidity
(
dAltitude
);
// %
const
double
dStaticPressure
=
oAtmosphere
.
StaticPressure
(
dAltitude
)
/
1000
;
// kPA
ITABase
::
CThirdOctaveDecibelMagnitudeSpectrum
oTmpSpectrum
;
ITABase
::
ISO9613
::
AtmosphericAbsorption
(
oTmpSpectrum
,
fDistance
,
oAtmosphere
.
Temperature
(
fAltitude
),
oAtmosphere
.
RelativeHumidity
(
fAltitude
),
oAtmosphere
.
StaticPressure
(
fAltitude
)
);
ITABase
::
ISO9613
::
AtmosphericAbsorption
(
oTmpSpectrum
,
dDistance
,
dTemperaturCelsius
,
dRelativeHumidity
,
dStaticPressure
);
oTotalDecibelSpectrum
.
Add
(
oTmpSpectrum
);
}
...
...
This diff is collapsed.
Click to expand it.
src/ITAPropagationModels/FilterEngine.cpp
+
0
−
4
View file @
e4435b08
...
...
@@ -211,10 +211,6 @@ void CFilterEngine::Generate( const ITAGeo::CPropagationPathList& oPathList, ITA
{
// Air attenuation according to ISO9613-1 (overrides third octaves, so no resetting required, do not change order!)
ITABase
::
ISO9613
::
AtmosphericAbsorption
(
oThirdOctFactors
,
(
float
)
dPathLength
,
oEnvironmentState
.
dTemperature
,
oEnvironmentState
.
dHumidity
);
// Multiply the transmissionfactor of the air attenuation alpha: sqrt(1-|alpha|)
for
(
int
iFrequencyIndex
=
0
;
iFrequencyIndex
<
oThirdOctFactors
.
GetNumBands
(
);
iFrequencyIndex
++
)
oThirdOctFactors
[
iFrequencyIndex
]
*=
sqrt
(
1
-
abs
(
oThirdOctFactors
[
iFrequencyIndex
]
)
);
}
// Process path and assemble filter components domain by domain
...
...
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