Message: Re: generating replicated small detectors volumes inside mother volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: generating replicated small detectors volumes inside mother volume  

Forum: Geometry
Re: None generating replicated small detectors volumes inside mother volume (Philip McGeachy)
Date: 22 Feb, 2013
From: John Apostolakis <John Apostolakis>

If you want to use replicas, it is possible so long as the material of all the sub-volumes is the same.

Note that you will need to create a series of volumes:
  Mother sliced into X-slice
  X-slice sliced into XY-slices
  XY-slice sliced into XYZ slices (ie. the smallest boxes.)

After this you need to decide how to store the energy deposition (the data structures.)  You can use the ReplicaNumber (copy no) of the volumes at each level to determine where to store it.

But it should be much easier to use the existing functionality in the scoring module of Geant4 - this can be steered using interactive commands, which is simpler than creating a geometry.  I refer you to the application developer guide for details.

Regards,
John
===================================================
John Apostolakis, SFT (SoFTware) Group, PH Department, CERN
Email:  john.apostolakis@cern.ch       Office Tel:  +41-22-767-7239
------------------------------------------------------------------------------------------

On Feb 21, 2013, at 1:46 AM, Philip McGeachy wrote:

> 
> *** Discussion title: Geometry
> 
> Hello all,
> 
> I have been trying to do something pretty simple, however, have had
> quite a bit of trouble getting it to work.
> 
> I want to partition a 40 cm x 40 cm x 40 cm water box into smaller cube
> detectors of dimension 0.5 cm x 0.5 cm x 0.5 cm so I can generate fairly
> accurate depth dose profiles for monoenergetic photons incident on this
> water box.
> 
> After doing a bit of reading, it seems like my only to options are to
> use G4Replica contructor or G4Parameterised constructor.
> 
> Since G4Replica just slices the mother volume into divisions of
> specified width along a specified axis, I thought I could just use this
> three times, along each axis, to divide my cube into a volume of small
> cube elements like so:
> 
> G4Replica repx("Lin X Array",
>                                pXRepLogical,   
>                                pContainingMother, //mother logical volume
>                                KXaxis, 80, 5.*mm)
> G4Replica repz("Lin Z Array",
>                                pZRepLogical,
>                                pContainingMother,
>                                KZaxis, 80, 5.*mm)
> 
> G4Replica repy("Lin Y Array",
>                                pYRepLogical,
>                                pContainingMother,
>                                KYaxis, 80, 5.*mm)
> 
> However, this didn't give me what I wanted. I was just wondering if
> anyone had any quick suggestions so I don't waste more time on this
> issue that seems like it should be fairly easy to implement in practice.
> 
> Cheers,
> 
> P
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1258.html 

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: generating replicated small detectors volumes inside mother volume   (Philip McGeachy - 22 Feb, 2013)
 Add Message Add Message
to: "Re: generating replicated small detectors volumes inside mother volume "

 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 ]