Message: Re: holes in layers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: holes in layers 

Forum: Geometry
Re: None holes in layers (Balint Radics)
Date: 05 Dec, 2012
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 05 Dec 2012 14:32:17 GMT, Balint Radics wrote:
> I have some layers of G4Tubs tube thin objects. I would like to make small 
> holes in it (e.g. 50 um size holes with 50 um distance from each other). Would 
> you please give an example how to do that?

You want to create G4SubtractionSolids. Look in Section 4.1.2.2 of the Application Developer's Book on "Boolean solids" for some simple examples. Note that Boolean solids are strictly binary (i.e., they take two existing G4VSolids as input), and that one of the two inputs must be a simple CSG solid. With this method, take care that the G4Tubs you use to generate the holes extends beyond the surfaces of the solid in which you are making the holes.

If you have a very complex geometry, which is the same for all of your tubes, it may be more performant (but more difficult!) for you to write your own G4VSolid subclass which implements the geometry directly, in a parameterized way. The Toolkit Developer's Book discusses this in Section 3.1.2.

  -- Michael Kelsey

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

1 None: Re: holes in layers   (John Apostolakis - 05 Dec, 2012)
 Add Message Add Message
to: "Re: holes in layers"

 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 ]