|Message: simultaneous B and E fields||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)|
I am trying to simulate a detector that has a local electric field applied to a subset of the detector volume and a global magnetic field. I understand from message #74 that this is possible using the G4ElectroMagneticField class, but it is unclear to me from the response to this message how to apply this class. If I setup global and local fields as in example field03 then do I simply convert
fField = new G4UniformElectricField(G4ThreeVector(0.0,0.0*volt,0.0 )); fLocalField = new G4UniformElectricField(G4ThreeVector(0.0,-5000.0*volt/m,0.0 ));
fField = new G4ElectroMagneticField(gbl_Bfield_x, gbl_Bfield_y, gbl_Bfieldz, gbl_Efield_x, gbl_Efield_y, gbl_Efield_z); fLocalField = new G4ElectroMagneticField(lcl_Bfield_x, lcl_Bfield_y, lcl_Bfieldz, lcl_Efield_x, lcl_Efield_y, lcl_Efield_z ));
Thank you for your advice.
ps. In reality I would prefer to apply both a local electric field and a local magnetic field to different subsets of my geometry. Is this really not possible in Geant4?
|Inline Depth:||Outline Depth:||Add message:|