Message: Re: Setting a local magnetic Field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Setting a local magnetic Field 

Keywords: local magnetic field
Forum: Fields: Magnetic and Otherwise
Re: Question Setting a local magnetic Field (Laihem)
Date: 20 Oct, 2004
From: Gumplinger Peter <Gumplinger Peter>

try this, for example:

  G4double fieldValue = 1.*kilogauss;

  G4UniformMagField* intField
    = new G4UniformMagField(G4ThreeVector(0.,0.,fieldValue));

  G4Mag_UsualEqRhs* iEquation = new G4Mag_UsualRhs(intField);

  G4MagIntegratorStepper* iStepper = new G4ClassicalRK4(iEquation);

  G4ChordFinder* iChordFinder = new G4ChordFinder(intField,1.0e-2*mm,iStepper);

  G4FieldManager* fieldMgr = new G4FieldManager(intField,iChordFinder);

  G4Box* interiorTank_box
    = new G4Box("intTank_box",tank_x,tank_y,tank_z);

  G4LogicalVolume* interiorTank_log =
    new G4LogicalVolume(interiorTank_box,Air,"intTank_log",

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

1 None: Re: Setting a local magnetic Field   (Laihem - 21 Oct, 2004)
 Add Message Add Message
to: "Re: Setting a local magnetic Field"

 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 ]