Message: Variable Local Magnetic Field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Variable Local Magnetic Field 

Forum: Fields: Magnetic and Otherwise
Date: 29 Apr, 2017
From: Jim Streuli <Jim Streuli>

I've been trying to set up commands to be able to change the strength of a magnetic field within a local area. I've combed through quite a few examples, especially the "field03" and "field04" examples. My code is essentially modeled verbatim after to field03, however whenever I issue a command and the field strength changes, it turns into a global field.

Looking through the documentation, I see that in the history file, this may have been an issue before, but it was supposedly fixed. Here's the snippet:

Apr 27th, 2007 Peter Gumplinger (fieldex03-V08-02-00)
- Fixed bug in F03FieldSetup:
  fFieldManager = fLocalFieldManager = GetGlobalFieldManager();
  fFieldManager->SetDetectorField(fMagneticField );
  fLocalFieldManager->SetDetectorField(fLocalMagneticField );
  The above is a pointer copy and the two G4FieldManager point
  to the same object; i.e. fLocalMagneticField replaces fMagneticField
  in the GlobalFieldManager. This is not at all the intended functionalty
  supposed to be exhibited by this example!

If anyone can give me a hand with this, I'd appreciate it.

Thanks, Jim

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

1 Feedback: Re: Variable Local Magnetic Field   (Gumplinger Peter - 01 May, 2017)
 Add Message Add Message
to: "Variable 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 ]