Message: Re: how to create a grid Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to create a grid 

Forum: Geometry
Re: Question how to create a grid (Simone)
Date: 26 May, 2017
From: John Apostolakis <John Apostolakis>

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


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:
> -------------------------------------------------------------
> Visit this GEANT4 at message (to reply or unsubscribe) at:

 Add Message Add Message
to: "Re: how to create a grid"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]