IAP GITLAB
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
corsika
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
André Schmidt
corsika
Commits
0c125437
Commit
0c125437
authored
Aug 12, 2020
by
Andre Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
few updates
parent
a3fc176b
Pipeline
#2022
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Framework/Cascade/Cascade.h
Framework/Cascade/Cascade.h
+5
-3
Processes/TrackingLine/TrackingLine.h
Processes/TrackingLine/TrackingLine.h
+2
-0
No files found.
Framework/Cascade/Cascade.h
View file @
0c125437
...
...
@@ -242,15 +242,17 @@ namespace corsika::cascade {
// Second Movement
position
=
position
+
directionAfter
*
min_distance
/
2
;
auto
distance
=
position
-
vParticle
.
GetPosition
();
//distance.norm() != min_distance
for distance_interact, distance_decay
if q != 0
//distance.norm() != min_distance if q != 0
//small error can be neglected
if
(
distance
.
norm
()
!=
0
_m
)
{
velocity
=
distance
.
normalized
()
*
velocity
.
norm
();
}
//no velocity update for very small steps
// here the particle is actually moved along the trajectory to new position:
// std::visit(setup::ParticleUpdate<Particle>{vParticle}, step);
vParticle
.
SetMomentum
(
directionAfter
.
normalized
()
*
vParticle
.
GetMomentum
().
GetN
orm
());
vParticle
.
SetMomentum
(
directionAfter
.
normalized
()
*
vParticle
.
GetMomentum
().
n
orm
());
geometry
::
Line
line
(
vParticle
.
GetPosition
(),
velocity
);
geometry
::
Trajectory
<
geometry
::
Line
>
stepNew
(
line
,
distance
.
norm
()
/
velocity
.
GetN
orm
());
geometry
::
Trajectory
<
geometry
::
Line
>
stepNew
(
line
,
distance
.
norm
()
/
velocity
.
n
orm
());
vParticle
.
SetPosition
(
position
);
vParticle
.
SetTime
(
vParticle
.
GetTime
()
+
distance
.
norm
()
/
units
::
constants
::
c
);
std
::
cout
<<
"New Position: "
<<
vParticle
.
GetPosition
().
GetCoordinates
()
<<
std
::
endl
;
...
...
Processes/TrackingLine/TrackingLine.h
View file @
0c125437
...
...
@@ -124,6 +124,7 @@ namespace corsika::process {
std
::
cout
<<
"no intersection (1)!"
<<
std
::
endl
;
// what to do when this happens? (very unlikely)
}
delete
[]
solutions
;
// First Movement
// assuming magnetic field does not change during movement
...
...
@@ -187,6 +188,7 @@ namespace corsika::process {
std
::
cout
<<
"no intersection (2)!"
<<
std
::
endl
;
// what to do when this happens? (very unlikely)
}
delete
[]
solutions
;
// First Movement
// assuming magnetic field does not change during movement
...
...
Write
Preview
Markdown
is supported
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