Message: Re: To simulate the divided atmosphere Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: To simulate the divided atmosphere 

Forum: Geometry
Re: Question To simulate the divided atmosphere
Date: 22 Dec, 2008
From: <bgastro@pmo.ac.cn>

Thank you for your quick reply. I have two more question:

1) Do you mean I can use the "for" loop to construct the model roughly like this:

> for(int i=0; i++; i<40){
> G4Box* MySolidBox[i] = new G4Box(nameString[i], 1 km, 2 km, i km);
> G4LogicalVolume* MyLogicBox[i] = new G4LogicalVolume(MySolidBox[i],density[i],
> ...);
> G4PhysicalVolume* MyPhysicalBox[i] = new 
> G4PVPlacement(...MyLogicBox[i]...position[i]...)} 
?

2) Beacause these layers are successive, for example, the top of layerA is the bottom of layerB. So is it ok if I take the code as follows:

> position[i]=position[i-1]+1/2(thickness[i]+thickness[i-1]);

And if I take the spherical layers, each layer will be a spherical shell. For example, if layerA and layerB are the two successive spherical shell and layerA is outside of layerB, so the inner radius of layerA is equal the outer radius of LayerB, how to handle this situation? Can I just take them equally without geometry overlapping error?

Best regards,

Bao

 Add Message Add Message
to: "Re: To simulate the divided atmosphere"

 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 ]