-
Notifications
You must be signed in to change notification settings - Fork 8
Matter Element and MaterialP #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
danielkallendorf
wants to merge
19
commits into
pals-project:main
Choose a base branch
from
danielkallendorf:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
48fa10f
Create material.md
danielkallendorf 5c5112a
Update aperture.md
danielkallendorf 1e320d8
Update material.md
danielkallendorf 8ee25a9
Update material.md
danielkallendorf 549b360
Update element-parameters.md
danielkallendorf 112e061
Update element-kinds.md
danielkallendorf 1591fca
Update aperture.md
danielkallendorf a0e1a05
Reorderes element-kinds.md
danielkallendorf 1e31822
Added Description
danielkallendorf b59c43a
Merge branch 'main' of https://github.com/danielkallendorf/pals
danielkallendorf b2fbdb2
Define matter in beamlines with MaterialP
danielkallendorf 434cc16
Merge branch 'main' of https://github.com/danielkallendorf/pals
danielkallendorf c96aff8
Updated units to SI
danielkallendorf ca877c4
Fixed typos
danielkallendorf 1ee917e
Merge remote-tracking branch 'upstream/main'
danielkallendorf 65afa38
Added mass_ratio and explanation, removed G4_ for elemnents
danielkallendorf c21ae4f
Moved state into MaterialP
danielkallendorf a69ff45
Fixed MatterP example
danielkallendorf ba4c56a
Fix: fixed unit of CompoundP
danielkallendorf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| (s:material.params)= | ||
| ## MaterialP: Definition of materials | ||
|
|
||
| The definition of materials is inspired by Geant4's material handling. One can either use the name, which is the symbol of an element (`"G4_Cu"`, `"G4_H"`, ...) or compound (`"G4_STAINLESS-STEEL"`). | ||
| In the future all elements and materials in the [G4 Manual](https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Appendix/materialNames.html) will be supported. | ||
|
|
||
| Alternatively custom elements can be defined by | ||
|
|
||
| ```{code} yaml | ||
| ElementP: | ||
| - name: # [string] The name of the material | ||
| - density: # [kg/m^3] The density of the material | ||
| - Z: # [int] The atomic number | ||
| - A: # [int] The mass number (equals Z+N) | ||
| - N: # [int] The neutron number | ||
| - m: # [u] The atomic mass | ||
| ``` | ||
|
|
||
| and compunds by | ||
|
|
||
| ```{code} yaml | ||
| CompundP: | ||
ax3l marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: # [string] The name of the material | ||
| - density: # [kg/cm^3] The density of the material | ||
| - elements: # List of MaterialP | ||
| - ratio: # List of ratios of the elements | ||
| ``` | ||
|
|
||
| ### Examples | ||
| `MaterialP: "G4_Cu"` or `MaterialP: "G4_STAINLESS-STEEL"` or define a new material. | ||
|
|
||
| Liquid deuterium can be defined with the `ElementP` parameters: | ||
| ```{code} yaml | ||
| MaterialP: | ||
| - name: "Deuterium(l)" | ||
| - density: 160 | ||
| - Z: 1 | ||
| - A: 1 | ||
| - m: 2.01 | ||
| ``` | ||
| and deuterated polyethylene (C2H4) can be defined based on the previous definition | ||
| ```{code} yaml | ||
| MaterialP: | ||
| - name: "deutPE" | ||
| - density: 1050 | ||
| - elements: | ||
| - "G4_C" | ||
| - "Deuterium(l)" | ||
| - ratio: | ||
| - 2 | ||
| - 4 | ||
| ``` | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume adding the
MatterPparamter group is the whole idea of this element: