|Message: Re: Rotating a field & obtaining the EM field in a certain point||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)|
Thank for your good questions.
> 1) ... when I  rotate the logical volume and place it inside the world, the field > is not rotated at all: is this behaviour expected?
It is indeed the expected (and I think documented) behaviour that the field is expressed in global coordinates, despite being hooked into the logical volume.
I emphasize that both position and field are in global coordinates: - the position you give to the field must be in global coordinates, and - the value of the field returned will be in global coordinates.
I will try to inspect your provided code to provide feedback soon.
> 2) What is the easiest way to know, once I have setup the > geometry of the fields, what is the total electromagnetic field - in > global coordinates - in a generic point in space? Does Geant4 > provide such a functionality?
This is a very good question - and likely should be in our FAQ.
First I note that only a single field exists for any point of space in Geant4 currently. It can be either a global field (the one chosen for all the setup) or a local field (that is set for a logical volume and can be propagated to ones below, and which overrides any global field.) [ Extensions which allow different field descriptions have been created, including BeamTools from D. Elvira at Fermilab. ]
A single method to get the global field value is not currently available. You will need to call several objects to do this currently and tailor it to your current field needs (eg B field only, EM field, custom field.) I will communicate privately a trial version of this, and once it is ironed out post it.
Best regards, John Apostolakis.
|Inline Depth:||Outline Depth:||Add message:|