Replies: 1 comment
-
@mcoolman, thank you for this contribution. If you can, please post your changes as a Pull Request (PR), so we can discuss, edit and eventually merge your code into the EGSnrc project. We can create the pull request if you prefer, but it is best if you do it, to ensure that authors gets the credit they deserve, as your name would be recorded in the commits. To draft a PR, you will need to fork the EGSnrc repo in your area (@mcoolman), create a new branch, modify the files (or add new files), then create a PR. See instructions for more details, or let me know if I can assist you in the process. |
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
-
A colleague has suggested that I should post my self implemented source here. I implemented a source as a new type of angular spread source, that can read in a distribution from file. The distribution is read in the same way as spectra and stored in an alias_table object.
The file with the distribution has a very similar formatting as a spectrum file. I attached an example. Then the program samples an angle from the distribution and applies it. You can choose the direction of the spread (x, y, or both). Therefore I added two methods in the
egs_vector.h
file:I attached the implementation files (I was not able to attach them as
.cpp
,.h
andMakefile
files, so I attached them as.txt
). It is just a first attempt and works for my goals. I'm not fully sure that it works for every case. If you are interested you can have a look. I am happy about any ideas, comments or improvements.Greetings
Malu
Use in
.egsinp
:80kV_body_prob_distribution.txt
egs_angular_spread_distribution_source_cpp.txt
egs_angular_spread_distribution_source_h.txt
Makefile.txt
Beta Was this translation helpful? Give feedback.
All reactions