Message: Getting NAN for values of Point in a magnetic field class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Getting NAN for values of Point in a magnetic field class 

Forum: Fields: Magnetic and Otherwise
Date: 16 Jul, 2012
From: Aaron Liblong <Aaron Liblong>

Hi,

I'm developing a class for a parameterizable non-uniform magnetic field that inherits from G4MagneticField. The user sets a range of parameters that are saved as member data and later used in the GetFieldValue method (same arguments as in G4MageticField) to calculate the field at the particle's location. However, when running the simulation, the values of "Point" (the argument in GetFieldValue, representing the coordinates of the particle) periodically become "NAN", resulting in an incalculable magnetic field. Any ideas why this might be? I'm running version 9.4 of G4.

Thanks,

Aaron

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

1 Feedback: Re: Getting NAN for values of Point in a magnetic field class   (Gumplinger Peter - 16 Jul, 2012)
(_ None: Re: Getting NAN for values of Point in a magnetic field class   (Aaron Liblong - 17 Jul, 2012)
1 None: Re: Getting NAN for values of Point in a magnetic field class   (Youming Yang - 17 Jul, 2012)
2 Feedback: Re: Getting NAN for values of Point in a magnetic field class   (Gumplinger Peter - 17 Jul, 2012)
1 None: Re: Getting NAN for values of Point in a magnetic field class   (Aaron Liblong - 18 Jul, 2012)
... 1 Message(s)
 Add Message Add Message
to: "Getting NAN for values of Point in a magnetic field class"

 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 ]