Element types and properties #11
Closed
danielkallendorf
started this conversation in
General
Replies: 1 comment
-
|
sorry. move to standard repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've spend some thoughts on the current architecture of the standard:
We have the type of an element, but we are also developing parameters/parameter-groups.
Our current approach seems to be, to explicitly define the possible properties of an element.
This appears to be standard practice in most lattice-codes and it is also reflected in the pals-python models.
My question for discussion is: Do we actually need Element Types?
What is a quadrupole, if not a space with a quadrupole field?
While designing this standard, we will have to allow every property for an element explicitly:
This will
Based on this line of thinking, it might be enough to define the parameters in this standard and allow generic
Elements to have them. This would reduce the complexity.It is still be useful to have a
type(orpurpose?) field which hints the intended use, but this is far less restricting.A file then would consist of
In a next step one could then even use the name of the element as key, which would resolve the issues and required workarounds with the yaml-format in pals-python.
Beta Was this translation helpful? Give feedback.
All reactions