|Message: bad_alloc error after changing geometry||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have a problem with my optical photons simulation: I got a code which described a scintillation crystal within a box of aluminum as a reflector. On its one end of the crystal there is placed a quartz window and a photon sensitive detector. Everything with this code seems to work fine. Now, to make it more realistic, I tried to create a thin air gap between the crystal and the Aluminum reflector. I followed the same system as before: A box of Aluminum, which contains a box of air, which contains a box of scintillator. Air and scintillator should be shifted to one end, so that between the quartzwindow and the scintillator there is no other material. Please find my detector construction code attached.
If I start this version, after some while (during the first event) I get a bad_alloc error. I can avoid this error by setting the polish of the crystal-air-surface to a 0.99. But still this version then needs a lot more (~ at least 10 times more) time than the version without the air-gap. My guess was that between the two parallel polished surfaces photons are captured for eternity. I tried to limit the maximum run time for a photon as described in the Application Guide on page 176 for neutrons, but if I set the maximum time to 200 ns (which is already too short for my simulation) the eror still occurs. Now I am running out of ideas what could cause this error or this extreme long duration of simulation. I have seen that some of you have implemented similar scenarios which are working fine. Does anyone have an idea what's wrong with my code? thanks in advance and best regards,
|Inline Depth:||Outline Depth:||Add message:|