|Message: Re: How is Base Material Optimized?||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)|
For some reason my recent reply is not seen in HyperNews, so I am reposting answers below:
> I would like to confirm two things: > 1. Does buildmaterialwithnewdensity work for custom (non NIST) materials such as where I add individual > elements
Should work for any base material
> 2a. For a parameterized geometry where the Material scan needs to create all the tables, how should I give it > materials? Should I give it my 18 base materials, or should I give it my 4000+?
if parametrized geometry is used all 4000 materials should be known to geometry independently if base material approach is used or not. To control correctness you need to dump material-cuts-couple list with cuts, which should include all materials. If you use base material approach at initialisation cross sections, dedx, range will be precomputed only for base materials but all other materials should be in place. If your derived materials will be used in different G4Regions from the base material then tables will be computed for this materials, so no initialisation saving. So, you need to be sure that the base and all derived are in the same G4Region.
> 2b. Additionally, will Geant4 automatically know that tissues[i] and tissues[i+1] are the same material with > different density scaling? Or will I need to enforce that somehow under my parameterized ComputeMaterial > section?
Everything should work automatically. All materials should be instantiated before geometry is created and physics initialised.