Message: Re: Local to Global... again Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Local to Global... again 

Keywords: geometry local to global G4VPhysicalVolume G4LogicalVolume G4Navigator
Forum: Geometry
Re: None Local to Global... again (Nathaniel Tagg)
Date: 30 Mar, 2007
From: Tom Roberts <Tom Roberts>

This is more a whole different way to approach your problem, rather than a direct answer to your question.

You might be interested in G4beamline, a program to apply Geant4 single-particle tracking to beamlines (primarily muon cooling for neutrino factories and muon colliders, but also of general use). If your problem fits within its capabilities, you'll find it is a truly ENORMOUS reduction in effort to use it rather than write a Geant4 simulation from scratch. If your problem doesn't fit within its capabilities, email me and we can discuss whether it makes sense to enhance the program.

G4beamline reads a text input file to define the system to be simulated. The way it solves your problem is to construct its own object-oriented hierarchy while reading the input file, and then construct the Geant4 geometry at the end of input. So it knows, say, that quadrupole Q1 has thus-and-so physical dimensions and field gradient, and is placed at x=0,y=0,z=1000. Its field is defined in terms of the local coordinates of the quadrupole, and the conversion global-to-local for computing the field is determined from the G4beamline internal geometry (includes rotating B back to the global coordinate basis). Overlapping fields are handled automatically and efficiently.

The problem with fields in a volume is that real-world fields are not so constrained -- volumes cannot overlap but real fields do. All of my magnet objects (quadrupoles, bends, sector bends, and most especially solenoids) have fringe fields that extend outside their geometrical boundaries. If one attempted to make large-enough geometrical volumes to contain the fringe fields, the rules on intersecting volumes would make it impossible to construct realistic systems.

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

1 None: Re: Local to Global... again   (Nathaniel Tagg - 30 Mar, 2007)
 Add Message Add Message
to: "Re: Local to Global... again"

 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 ]