IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
6d919a88
Commit
6d919a88
authored
4 years ago
by
Nikos Karastathis
Browse files
Options
Downloads
Patches
Plain Diff
added vacuum permittivity
parent
43bdda65
No related branches found
No related tags found
1 merge request
!329
Radio interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/framework/core/PhysicalConstants.hpp
+3
-0
3 additions, 0 deletions
corsika/framework/core/PhysicalConstants.hpp
corsika/modules/radio/CoREAS.hpp
+6
-12
6 additions, 12 deletions
corsika/modules/radio/CoREAS.hpp
with
9 additions
and
12 deletions
corsika/framework/core/PhysicalConstants.hpp
+
3
−
0
View file @
6d919a88
...
...
@@ -35,6 +35,9 @@ namespace corsika::constants {
// elementary charge
constexpr
quantity
<
electric_charge_d
>
e
{
Rep
(
1.6021766208e-19L
)
*
coulomb
};
// vacuum permittivity
constexpr
quantity
<
dimensions
<-
3
,
-
1
,
4
,
2
>>
epsilonZero
{
Rep
(
8.8541878128e-12L
)
*
farad
/
meter
};
// electronvolt
// constexpr quantity<hepenergy_d> eV{e / coulomb * joule};
...
...
This diff is collapsed.
Click to expand it.
corsika/modules/radio/CoREAS.hpp
+
6
−
12
View file @
6d919a88
...
...
@@ -108,17 +108,11 @@ namespace corsika {
// store the receive unit vector
ReceiveVectorsStart_
.
push_back
(
path
.
receive_
);
// auto kkk{path.receive_.cross(path.receive_.cross(beta_))};
// auto kk{path.R_distance_ * preDoppler_};
// auto kkkk{kkk/kk};
// auto kc{kkkk * (1 / 1_s) /constants::c};
// auto kosta{charge_ * 1_m};
//(charge_ / constants::c) *
// calculate electric field vector for startpoint
ElectricFieldVector
EV1_
=
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
/
(
path
.
R_distance_
*
preDoppler_
)
*
(
(
1
/
1
_s
)
*
(
1
/
constants
::
c
))
*
charge_
;
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
.
getComponents
()
/
(
path
.
R_distance_
*
preDoppler_
)
*
(
1
/
(
4
*
M_PI
*
1
_s
))
*
((
1
/
constants
::
epsilonZero
)
*
(
1
/
constants
::
c
))
*
charge_
;
// store it to EVstart_ std::vector for later use
EVstart_
.
push_back
(
EV1_
);
...
...
@@ -149,8 +143,8 @@ namespace corsika {
// calculate electric field vector for endpoint
ElectricFieldVector
EV2_
=
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
/
(
path
.
R_distance_
*
postDoppler_
)
*
(
(
1
/
1
_s
)
*
(
1
/
constants
::
c
))
*
charge_
;
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
.
getComponents
()
/
(
path
.
R_distance_
*
postDoppler_
)
*
(
1
/
(
4
*
M_PI
*
1
_s
))
*
((
1
/
constants
::
epsilonZero
)
*
(
1
/
constants
::
c
))
*
charge_
;
// store it to EVstart_ std::vector for later use
EVend_
.
push_back
(
EV2_
);
...
...
@@ -268,8 +262,8 @@ namespace corsika {
// CoREAS calculation -> get ElectricFieldVector3 for "midPoint"
ElectricFieldVector
EVmid_
=
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
/
(
path
.
R_distance_
*
midDoppler_
)
*
(
(
1
/
1
_s
)
*
(
1
/
constants
::
c
))
*
charge_
;
path
.
receive_
.
cross
(
path
.
receive_
.
cross
(
beta_
))
.
getComponents
()
/
(
path
.
R_distance_
*
midDoppler_
)
*
(
1
/
(
4
*
M_PI
*
1
_s
))
*
((
1
/
constants
::
epsilonZero
)
*
(
1
/
constants
::
c
))
*
charge_
;
// ElectricFieldVector EVmid2_ = (- charge_ / constants::c) *
// path.receive_.cross(path.receive_.cross(beta_)) /
...
...
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