Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITAPropagationPathSim
Commits
10fd7dd9
Commit
10fd7dd9
authored
Apr 16, 2020
by
Philipp Schäfer
Browse files
Atmospheric Ray Tracing - Engine
-fixed bug in interpolation to reflection point
parent
f58b48db
Changes
1
Show whitespace changes
Inline
Side-by-side
src/ITAPropagationPathSim/AtmosphericRayTracing/Simulation/Engine.cpp
View file @
10fd7dd9
...
...
@@ -33,11 +33,10 @@ class CWorker
void
InterpolateToReflectionPoint
(
const
VistaVector3D
&
r1
,
const
VistaVector3D
&
r2
,
const
double
&
dt
,
VistaVector3D
&
rReflection
,
double
&
dtReflection
)
{
const
VistaVector3D
dr
=
r2
-
r1
;
const
double
timeP
ortion
=
-
r1
[
Vista
::
Z
]
/
dr
[
Vista
::
Z
];
const
double
p
ortion
=
-
r1
[
Vista
::
Z
]
/
dr
[
Vista
::
Z
];
rReflection
=
r1
+
dr
*
dt
;
rReflection
[
Vista
::
Z
]
=
0
;
dtReflection
=
dt
*
timePortion
;
rReflection
=
r1
+
dr
*
portion
;
dtReflection
=
dt
*
portion
;
}
void
ExtendRayByOnePeriod
()
{
...
...
@@ -95,6 +94,7 @@ class CWorker
VistaVector3D
rGround
;
double
dtGround
;
InterpolateToReflectionPoint
(
r
,
rNew
,
dt
,
rGround
,
dtGround
);
rGround
[
Vista
::
Z
]
=
0
;
//Making sure z-component is truely zero
pRay
->
AppendReflection
(
rGround
,
n
,
time
+
dtGround
);
if
(
rAbortCriterion
.
AbortRequested
(
*
pRay
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment