|Message: 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)|
I have two unrelated questions on electromagnetic fields: 1) when I associate a field to a logical volume with SetFieldManager, when I then rotate the logical volume and place it inside the world, the field is not rotated at all: is this behaviour expected? Do I have to rotate the field by hand? What I do is: G4double fieldValue = 1.5*tesla; G4UniformMagField* intField = new G4UniformMagField(G4ThreeVector(0.,0.,fieldValue)); G4Mag_UsualEqRhs* iEquation = new G4Mag_UsualEqRhs(intField); G4MagIntegratorStepper* iStepper = new G4ClassicalRK4(iEquation); G4ChordFinder* iChordFinder = new G4ChordFinder(intField,1.0e-6*mm,iStepper); G4FieldManager* fieldMgr = new G4FieldManager(intField,iChordFinder); G4RotationMatrix* RotPos = new G4RotationMatrix( G4ThreeVector( 0., 0. , 1 ), G4ThreeVector( 0., 1. , 0.), G4ThreeVector(-1., 0. , 0. ) ); G4Tubs* solidInnerSol = new G4Tubs("sInnerSolenoid", 0., rmin, length/2.0, startphi, deltaphi); G4LogicalVolume* logicInnerSol = new G4LogicalVolume(solidInnerSol, CentralVacuum, "lInnerSolenoid", fieldMgr); G4VPhysicalVolume* physiInnerSol = new G4PVPlacement(RotPos, G4ThreeVector(), logicInnerSol, "pInnerSolenoid", logicWorld, false, 0); What I obtain is a cilinder with axis along x, but the field inside it is still parallel to z. Isn't there any connection between the orientation of a volume and that of its associated field? 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? I am using Geant4 8.1.patch01 on a Linux machine. Thanks Giovanni
|Inline Depth:||Outline Depth:||Add message:|