Message: Re: G4Sphere::DistanceToOut(p,v,..) Undefined side ... Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4Sphere::DistanceToOut(p,v,..) Undefined side ... 

Forum: Geometry
Re: Question G4Sphere::DistanceToOut(p,v,..) Undefined side ... (Hossein AFSHARPOUR)
Re: None Re: G4Sphere::DistanceToOut(p,v,..) Undefined side ... (Vladimir Grichine)
Date: 24 Mar, 2010
From: Hossein AFSHARPOUR <Hossein AFSHARPOUR>

Hi The geaometry consists of 1000 spherical concentric shells with 1mm thickness. The dose is scored in each shell. Here is a part of the code:

// Mother spherical volume

G4VSolid* sphereSolid = new G4Sphere("Sphere_Solid", innerRadius, outerRadius, 0.*deg, 360.*deg, 0.*deg, 180.*deg); G4LogicalVolume* sphereLogical = new G4LogicalVolume(sphereSolid, world_material, "Sphere_Logical"); new G4PVPlacement(0, G4ThreeVector(0.,0.,0.), sphereLogical, "Volume_Physical", fpWorldLogical, false, 0);

// constructing 1000 Parametrised shells with 1 mm thickness. // Scoring shells

G4double deltaR = 1.*mm;

G4VSolid* scoreSolid = new G4Sphere("Score_Solid",   // Name
                                        innerRadius,   // Inner radius
                                        outerRadius,   // Outer radius
                                        0.*deg,        // Starting phi
                                        360.*deg,      // Delta phi    
                                        0.*deg,       // Starting theta
                                        180.*deg);     // Delta theta

G4LogicalVolume* fScoreLogical = new G4LogicalVolume(scoreSolid, world_material, "scoreLog");

ScoreParameterisation* param = new ScoreParameterisation(innerRadius, outerRadius, deltaR);

new G4PVParameterised("scorePhys",   // Name
                         fScoreLogical, // Logical volume
                         sphereLogical, // Mother volume
                         kZAxis,        // Axis
                         1000,            // Number of replicas 
                         param);        // Parameterisation

// Construct scoring components SetupScoring(fScoreLogical);

 Add Message Add Message
to: "Re: G4Sphere::DistanceToOut(p,v,..) Undefined side ..."

 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 ]