|Message: Re: how to create a grid||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 Simone, In addition to the first suggestion, there is a second way to create this type of geometry, which would be more efficient in Geant4, but requires that you do not care whether many volumes are created or just one. First choose an elementary cell of the grid Create a physical and logical volume for it, decide if it will have the material of the grid or of the holes as its material. Then add to it the contents needed - e.g. if you chose the material of the hole for this mother volume, then add two pieces of the structure as daughter volumes. Then replicate this elementary volume in one dimension, using either a loop of placements or a replica volume, placing them in an appropriate parent volume. Next replicate it the other dimension, again inside an appropriate parent volume. This approach is good if you do not have other volumes inside the upper parent volume -- at least none that are not replicated in the same manner as the grid structure, or either its rows or columns. Best regards John On 24.05.17 19:01, Simone wrote: > *** Discussion title: Geometry > > Hello, > > I have the necessity to create a grid, like the ones in the figures > attached. I have thought of a couple of ways to create such a geometry, > but my solutions are very complicated to implement, and I am not even > sure they would work. > > Is there a simple way to create such a grid without hundreds of lines of > code? Has someone already had experience with such a problem? > > Any help would be appreciated, thanks a lot. > > Simone > > Attachment: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2017/05/24/09.44-93287-11_16_132410_original.JPG > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2017/05/24/09.44-80372-2016-5485-500x500.jpg > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1533.html