Message: Re: Set up new field Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Set up new field 

Forum: Fields: Magnetic and Otherwise
Re: Question Set up new field (Andrea)
Date: 07 May, 2010
From: John Apostolakis <John Apostolakis>

Dear Andrea,

The existing design was left open exactly for such a case.

You can use the existing classes for everything except your field and  
the equation.

Please check the recipe for creating a running application with an  
electric field.  Simply replace the electric field's pointer with the  
gravitational (and the equation too) when creating the ChordFinder and  
driver.

Cheers,
John

On May 6, 2010, at 3:35 PM, Andrea wrote:

>
> *** Discussion title: Fields: Magnetic and Otherwise
>
> Hi all, I'm trying to test neutral antimatter particle in the earth's
> gravitational field. My question is: Which are the mandatory steps in
> order to set up such a new field?
>
> I defined two new classes: the definition of the field (with the
> GetFieldValue method) and the equation of motion (with the
> EvaluateRhsGivenB method). In the former I treat the uniform
> gravitational field as a uniform electric field. Now I face the  
> issue of
> register the field in my geometry. Shall I inherit new G4MagInt_Driver
> and G4ChordFinder? Or could I make use of G4 classes? Lastly, what  
> shall
> I do to write a class to propagate my particles in the gravitational
> field?
>
> Thanks a lot Andrea
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply  
> or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/170.html

 Add Message Add Message
to: "Re: Set up new 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 ]