Closed arvedes closed 1 year ago
Objects can now be referenced. If the entry is a single object, it can be directly used, e.g.:
body1 = Body(...)
bc1 = Boundary(...)
bc1.data = {
"Radiation Target Body": body1
}
For combinations of multiple objects (including strings) the new class StringFromList
has to be used:
from pyelmer.elmer import Boundary, StringFromList
bc1 = Boundary(...)
bc2 = Boundary(...)
bc3 = Boundary(...)
bc3.data = {
"Intersection BC(2)": StringFromList(["Integer", bc1, bc2])
}
This will produce the output in the post above.
In some setups it is required to reference another body, e.g. for definition of an intersection BC. In the sif it looks like this: