|Message: Re: Is it possible to change the geometry during the tracking of a particle?||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)|
Dear Wang Yue,
Your question is a fundamental one for the geometry modeler. The answer is:
It is not allowed to change or update any volume within a run.
The geometry is 'closed' once the beam is On (/run/beamOn). This step creates a cache of information, which is used during tracking to optimise the number of calls to volumes (and thus execution time).
So we cannot guarantee the behaviour of the simulation if a parameterised volume's, or any volume geometrical attributes are changed by the user. For most potential changes, the results will be wrong.
The information must remain unchanged by the user during the tracking of a particle, an event and all the events of a run.
I do note that a parameterised volume will have its ComputeTransformation, ComputeSolid (etc) methods called, and that the volume in memory will be changed to reflect the different copy/replica number of each volume. But copy number 1 must always be the same, as must all other copies - they cannot be different for one particle or one type of particle.
If you need to make changes there are a few possibilities: - run a set of events with one geometry, and then change it; - if you need to have a different geometry for one particle type, you could create a custom solution.
Please do explain what you want to do, so that we can provide further advise or suggestions.
Best regards, John Apostolakis
|Inline Depth:||Outline Depth:||Add message:|