|Message: Re: How can i construct local Electric field?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hello, Unfortunately there is no specific example for local electric field. To create and use one, you need to combine what you do for two cases - the global electric field and the local magnetic field. Here is a guideline how to do it: A. similarly to the global electric field: 1) construct your field object - either an existing class ( Uniform ) or as an instance of your own non-uniform class 2) construct the equation of motion for this case ( the one that has both electric and magnetic fields ) 3) create a chord finder and field manager B. similarly to the local magnetic field: 1) you need to assign the field manager to the logical volume (or potentially region) which you wish to use it in. Note that the Electric field will be in *global* coordinates. Both the position given as input and the field returned must be in global coordinates. Maybe this is what is cause you problems. The term "local" electric field refers to the fact that it is used in one logical volume ( or potentially a region ) to override a field which is used for the whole setup / geometry. In case you need to use the local coordinates instead of the global coordinates, it is possible to use the local to global transformation from current G4TouchableHistory to make this transformation in your local EM field class. Look the the PreStepPoint's touchable. You can get this from the current step, which is available from the G4SteppingManager which is a singleton. You can find the details in the Users Guide for Application Developers. I hope that these suggestions resolve your issue(s). In case you are still stuck, please explain where. Best regards, John =================================================== John Apostolakis, PH Department, CERN SFT (SoFTware for Experiments) Group > On 23 Jan 2015, at 07:37, HyeonDeok Seo <firstname.lastname@example.org> wrote: > > > *** Discussion title: Fields: Magnetic and Otherwise > > Hello ~^^ > > I've tried for few weeks to construct Local Electric field, But i can't. > > I can implemented Global&Local Magnetic Field and Global Electric field, > except Local electric field. > > Also, I Can not fine example for local electric field. > > Do you guys know examples for implementing local electric field?? > > Please let me know ㅠㅠ > > ------------------------------------------------------------- > Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: > http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emfields/221.html