Replies: 2 comments 2 replies
-
|
Did you use AI to generate these inputs? Most of it is invalid - do not use AI to generate .egsinp files. It sounds like you could use a collimated source to do what you describe. In that source, there's a https://nrc-cnrc.github.io/EGSnrc/doc/pirs898/classEGS__CollimatedSource.html |
Beta Was this translation helpful? Give feedback.
-
|
Can you please give me some detail program blocks?My mother language is not English ,so it's too difficult for my to search methods on the website.It can be much easier,I don't want a srange target shape ,just on the xy-plane is okay.But I really can't handle it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my simulation, the detectors are all set in the xy-plane. Therefore, when I use a point source, a significant amount of simulation in space has no impact on my results, which wastes a lot of time and computational resources.
Is there a way to restrict the particle range to within ±5° above and below the xy-plane, like a pizza that is thin in the middle and thick on both sides? However, the positions of my point sources are randomly generated through scripts, so directly limiting the simulation range of the particles is not feasible. A better approach would be to modify the characteristics of the source.
Is this operation possible? If so, how should I set it up?
Below is a piece of code I wrote, but it seems that it does not work as I intended.
Could you help me take a look? I would greatly appreciate it.
:start source:
name = cs137_source
library = egs_beam_source
charge = 0
:start shape:
type = point
position = {{SOURCE_POSITION_X}} {{SOURCE_POSITION_Y}} {{SOURCE_POSITION_Z}} # 脚本会替换源位置
:stop shape:
:start spectrum:
type = monoenergetic
energy = 0.662
:stop spectrum:
:start angular distribution:
type = uniform
theta min = 85
theta max = 95
phi min = 0
phi max = 360
:stop angular distribution:
:stop source:
simulation source = cs137_source
:stop source definition:
Beta Was this translation helpful? Give feedback.
All reactions