Skip to content

Is it possible to package geometry / source definitions as new objects? #1143

Answered by rtownson
jburz2001 asked this question in Questions
Discussion options

You must be logged in to vote

There's not an easy way to do this how you are imagining, unfortunately. This is particularly because the geometry and source are fundamentally separate - the source location isn't really tied to a particular geometry. You'll have to create transformations for both of them, using egs_transformedGeometry and egs_transformedSource, but at least the transformations will be the same.

It's possible to define a geometry in an external file: https://nrc-cnrc.github.io/EGSnrc/doc/pirs898/group__Geometry.html#ga5bc12ceac1e65f64b3c7d3b62e4ce4ff

One option could be to have a python script that inserts both the geometry and source, copying from your "x-ray source" input file into another input file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jburz2001
Comment options

Answer selected by jburz2001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants