Message: Re: Cylinder volume filled with small spheres Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Cylinder volume filled with small spheres 

Forum: Geometry
Re: Question Cylinder volume filled with small spheres (Cristian Bungau)
Re: Idea Re: Cylinder volume filled with small spheres (Michael H. Kelsey)
Re: Ok Re: Cylinder volume filled with small spheres (Cristian Bungau)
Date: 08 Mar, 2018
From: Michael H. Kelsey <Michael H. Kelsey>

Cristian Bungau writes:
> Thank you for your reply. My experience with parametrised volumes is
> limited (so far I only used replicas), but now at least I know how to
> tackle this problem, so I can get to work...

The G4VPVParameterisation class is really simple to implement.  For your
case, all you need is the ComputeTransform() function, along with your own
constructor to maybe pass in the tube radius or a data file or whatever.
The coordinates must be in the frame of the enclosing "mother volume", so in
your case, a cylinder with the origin at the center.

The G4PVParameterised placement is also easy.  You pass it the mother
volume, the parametrization function, the solid (G4Orb for you), and the
number of copies.  It does everything else automatically.

Then you can take that mother volume, and place it (with rotations,
translations, etc.) into your geometry.

      -- Mike Kelsey

 Add Message Add Message
to: "Re: Cylinder volume filled with small spheres"

 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 ]