GSI Forum - RDF feed
https://forum.gsi.de/index.php
homogenous magnetic field defined by radial coordinates
https://forum.gsi.de/index.phpindex.php?t=rview&goto=14508&th=3800#msg_14508
I would like to create a magnetic field produced by a solenoid. Ive looked into cbmroot, and I the only thing I found was CbmFieldConst.cxx. However, that just creates a boxed magnetic field defined by a minimum x, minimum y, minimum z, maximum x, maximum y, maximum z. I would rather create a constant magnetic field defined by a minimum z, maximum z, minimum r, maximum r. Can anyone help me get started on this??
Thank you,
Raphael]]>Raphael Cervantes2013-03-18T16:35:30-00:00Re: homogenous magnetic field defined by radial coordinates
https://forum.gsi.de/index.phpindex.php?t=rview&goto=14519&th=3800#msg_14519
The only constrain we have is to implement the virtual methods of the FairField class. The simulation engines call the method:
Which you have to implement in your subclass. Now how you calculate the field is up to you. if you look to PANDA there is different maps for the different regions (Solenoid, Dipole and the region between them).
The class HadesField is forwarding the field value request to another class that make the calculation from the symmetry and the field map that is saved in cylindrical coordinates.
In other words Geant3/4 will call the method "GetFieldValue" above and you are free to calculate it as you like and fill the result in the bField[3].
cheers,
Mohammad
]]>Mohammad Al-Turany2013-03-19T18:55:48-00:00