Message: Re: Placing Daughter Volumes within repeated Mother Volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Placing Daughter Volumes within repeated Mother Volume 

Keywords: Volume Placement
Forum: Geometry
Re: Question Placing Daughter Volumes within repeated Mother Volume (Andre)
Re: Question Re: Placing Daughter Volumes within repeated Mother Volume (Gabriele Cosmo)
Re: None Re: Placing Daughter Volumes within repeated Mother Volume
Date: 15 Aug, 2007
From: Gabriele Cosmo <Gabriele Cosmo>

> I am having issues placing a daughter volume within a repeated mother volume. 
> Essentially I have three for loops (nested) which place repeated instances of 
> the mother volume in a three dimensional quincunx array. What I want is 
> to place one instance of the daughter volume in each instance of the mother 
> volume. If I declare the placement of the daughter volume inside my nested for 
> loops I end up having multiple daughter volumes for each mother volume. However, 
> when I declare the placement of the daughter volume outside the nested for loop 
> it appears there is only one daughter volume for each mother volume. Since I am 
> still fairly new to Geant4 I am not confident that my program is functioning the
> way I want. It doesn't make sense to me that declaring the placement of the daughter 
> volume outside the loops would place it inside each instance of the mother volume.

I'm not sure to understand what you want to do, also looking at the code you provide...
- all volumes you place inside the loop become daughters of 'world_log' (under
  certain conditions);
- in the end, outside the loop, you place a volume 'TheLeadBlock_log' (already placed
  in 'world_log' inside the loop, under certain conditions) inside 'TheEpoxyBlock_log'
  (which is in turn already placed in 'world_log' inside the loop under certain
  conditions)... This 'TheLeadBlock_log' of course becomes daughter also of
  'TheEpoxyBlock_log', and therefore will appear inside any occurence of its placement !
Am I missing something ?

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

1 None: Re: Placing Daughter Volumes within repeated Mother Volume   (Andre - 15 Aug, 2007)
(_ More: Re: Placing Daughter Volumes within repeated Mother Volume   (Gabriele Cosmo - 15 Aug, 2007)
 Add Message Add Message
to: "Re: Placing Daughter Volumes within repeated 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 ]