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
2a862a95
Commit
2a862a95
authored
6 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
added mass density type
parent
c4572c99
No related branches found
No related tags found
1 merge request
!28
Sibyll
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Units/PhysicalUnits.h
+9
-0
9 additions, 0 deletions
Framework/Units/PhysicalUnits.h
with
9 additions
and
0 deletions
Framework/Units/PhysicalUnits.h
+
9
−
0
View file @
2a862a95
...
...
@@ -51,6 +51,15 @@ namespace corsika::units::si {
phys
::
units
::
quantity
<
phys
::
units
::
electric_charge_d
,
double
>
;
using
EnergyType
=
phys
::
units
::
quantity
<
phys
::
units
::
energy_d
,
double
>
;
using
MassType
=
phys
::
units
::
quantity
<
phys
::
units
::
mass_d
,
double
>
;
using
MassDensityType
=
phys
::
units
::
quantity
<
phys
::
units
::
mass_density_d
,
double
>
;
// defining momentum you suckers
// dimensions, i.e. composition in base SI dimensions
using
momentum_d
=
phys
::
units
::
dimensions
<
1
,
1
,
-
1
>
;
// defining the unit of momentum, so far newton-meter, maybe go to HEP?
constexpr
phys
::
units
::
quantity
<
momentum_d
>
newton_second
{
meter
*
kilogram
/
second
};
// defining the type
using
MomentumType
=
phys
::
units
::
quantity
<
momentum_d
,
double
>
;
using
CrossSectionType
=
phys
::
units
::
quantity
<
sigma_d
,
double
>
;
...
...
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