Creating non-uniform electric field

Hi Mike,

thanks for replying. Yeah, my COMSOL model was set around the Geant4 convention of (0, 0, 0).

I’ve returned the Tabulated3d field to default by removing my multipliers and [7.4 6.66 -1.48] is now being displayed by Geant4 as [74 66.6 -14.8] and lenUnit is now centimetre.

I have previously plotted the COMSOL generated field field in Matlab and it looks sensible (see attachment, apologies for arrow heads).

The messages from TabulatedField3D (below) seem correct. So, the field should be visible.

T

------------------------------------------------------------

  •  Electric field*
    

-----------------------------------------------------------

  • —> Reading the field grid from Cauldron_Ex_Ey_Ez_Circumscribed_Rectangle_cm.txt … *

  • [ Number of values x,y,z: 75 75 41 ] *

  • —> … done reading *

  • —> assumed the order: x, y, z, Bx, By, Bz *

  • —> Min values x,y,z: -7.2 -7.4 -4.5 cm *

  • —> Max values x,y,z: 7.4 7.4 3.5 cm *

  • —> The field will be offset by 0 cm *

After reordering if neccesary

  • —> Min values x,y,z: -7.2 -7.4 -4.5 cm *
  • —> Max values x,y,z: 7.4 7.4 3.5 cm *
  • —> Dif values x,y,z (range): 14.6 14.8 8 cm in z *
    -----------------------------------------------------------
  • F02ElectricFieldSetup: The minimal step is equal to 0.01 mm*
    G4ClassicalRK4 is called