-
Hi all, we have an automated system for calculating linac treatment plans using BEAM/DOSXYZnrc from DICOM files. We have recently run into a weird issue I am having trouble figuring out: the system scales the number of histories to be simulated based on the treatment field area, and when a larger field is being simulated (femur and whole brain have been examples), it seems like something is getting flipped or mirrored, and the resulting dose distribution is completely incorrect. When I halve the number of histories used, everything looks OK. Everything is calculated using an Ubuntu TORQUE cluster with 43 nodes, using the Varian IAEA phase space files. Available hard disk space on the master node is maybe a little low, but does changing the number of histories have an impact on disk space usage (I thought it wouldn't)? Any ideas or questions would be welcomed as this is really perplexing me. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 17 replies
-
This sounds like an interesting application. What are the number of histories that work and that don't? Are you using an intermediate phase space or are you using a shared library? |
Beta Was this translation helpful? Give feedback.
-
~250m histories produces the abnormal results, and then 125m histories works fine. I haven't tested to figure out what the upper limit is on histories before this happens. I am using a vendor supplied IAEA phase space scored just above the jaws, then simulating through SYNCJAWS and SYNCVMLC compiled as a shared library using source 20 in DOSXYZnrc. |
Beta Was this translation helpful? Give feedback.
-
2 more questions for you
|
Beta Was this translation helpful? Give feedback.
-
Yes, let us know how that works. Previous discussions on However, I don't see how your issue is related to memory, since it does work with fewer histories, and memory does not normally scale with the number of histories. Does this also happen if you use a simple source instead of a phase space file? If you can reproduce the problem with a simple source and a simple DOSXYZnrc phantom, we could try to reproduce the problem at our end. |
Beta Was this translation helpful? Give feedback.
-
I don't think I've seen a dependence on the number of histories like this before. This is just a stab in the dark - try reducing the number of batches to 1. |
Beta Was this translation helpful? Give feedback.
-
If you are using a large recycling number, this could cause some wild dose effects. Make sure recycling is <10, unless you are using azimuthal particle redistribution like MCTWIST (not part of BEAMnrc by default). |
Beta Was this translation helpful? Give feedback.
-
I wrote my own C++ program using the dcmtk toolkit from "offis" about years ago that did the trick. In the meantime there are other posibilities like Slicer-3D
that can read the dose from the 3ddose files and transform it.
Sent with [Proton Mail](https://proton.me/mail/home) secure email.
…On Tuesday, October 29th, 2024 at 10:03 PM, physicsmed ***@***.***> wrote:
thank u ***@***.***(https://github.com/livingag) for the answer, but how you can put the results of DOSXYZnrc into a DICOM file?
—
Reply to this email directly, [view it on GitHub](#995 (reply in thread)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AJK7WO3YZAOZ63DCRQ242IDZ57Z27AVCNFSM6AAAAABPNIOKXKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBZGI2TONQ).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
If you are not familiar with C++ or Python programming ,Have a look at this discussion here: https://discourse.slicer.org/t/converting-dosxyz-output-3ddose-to-dicom-rt-to-be-read-in-pinncale-and-eclipse/14499 you might be able to transform the 3ddose file in dicom without having to write code. |
Beta Was this translation helpful? Give feedback.
Are you using DOSXYZ directly with the Varian phsp source? Or DOSXYZ with a phase-space output from BEAMnrc, which itself uses the Varian phsp source? Or DOSXYZ with source 9, and BEAMnrc with the Varian phsp? Just so we're on the same page.
If you are using the Varian phsp in BEAMnrc, have BEAMnrc output a phase-space and then take a look at it in beamdp - does the particle scatter plot look correct for the collimator setup you're using in BEAMnrc?
In the DOSXYZnrc output, check for messages about recycling and restarting. How many particles does it read from the phsp and how many are you simulating, in the case where the result looks bad?
Is there a chance you've accidentally turned on …