Type of an element vs parameters #56
Replies: 5 comments
-
|
One issue here is that if a generic element has, for example, bend and RF parameters how does a program handle this? |
Beta Was this translation helpful? Give feedback.
-
|
That means someone is having a bend cavity, because they are for example trying to describe a cyclotron.
|
Beta Was this translation helpful? Give feedback.
-
|
If someone is trying to describe a cyclotron, the |
Beta Was this translation helpful? Give feedback.
-
|
Thought: One way to handle overlapping fields is to have a In this example, Constructing overlapping fields this way gives great flexibility in terms of misaligning fields and even the length of the individual fields do not have to be all the same. |
Beta Was this translation helpful? Give feedback.
-
|
@danielkallendorf 's suggestion is currently how SciBmad implements elements. In my view it is the most flexible and also the simplest since there isn't a bunch of combinations of allowed/disallowed parameter groups for different element "kinds". Adding functionality or a new parameter group doesn't then require modifying every single element. Also, combining RFP with BendP seems perfectly fine, if a code can simulate, why not allow it? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There are some interesting implication form this discussion #52
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.Beta Was this translation helpful? Give feedback.
All reactions