TOSCA simulation for Pol He3 Field

From HallCWiki
Revision as of 11:26, 9 September 2020 by Jixie (Talk | contribs)

Jump to: navigation, search

By Jixie Zhang, Sep 9th,2020


The TOSCA simulation geometry files were prepared by Steven Lassiter. 
The simulation were performed by both Steven and Jixie.
In D2N, the target base was not rotated. The axis of horizontal large coils (HL) is along Lab X axis.
The axis of horizontal small coils (HS) is along Lab Z axis.
In A1N, the target base was rotated clockwise (top view) about Y axis by 45 degrees.
Please keep in mind that the coordinate system in the TOSCA simulation is defined in this way:
X axis goes to beam right, y axis goes up, Z axis goes to upstream.
We have rotated the output about Y axis by 180 degrees to make it in the Lab frame.

Where is the maps located

The rotated TOSCA field maps for each single set of coils are stored in group dir:

Scripts to combine maps

Jixie provides python code to combine these 7 rotated individual maps (HB, HL, HS, VL, VS, HLCC and HSCC)
into one map with each map scaled to the given current. These scrips are stored at ifarm1901:/u/group/c-polhe3/Users/jixie/TOSCA/Scripts

How to run these scripts to combine maps

  1. python script to add 6 maps into one
  2. How to run it?
  3. 1) configure the 6 conponent maps in 'Field map block'.It is just a list.
  4. the strucrure of this list is: Path_of_table, Currrent_of_table, Target_current.
  5. Jixie will provide Path_of_table and Currrent_of_table, what you need to do is
  6. provide Target_current for each of them.
  1. 2) Keep in mind that in D2N experiment, HS coil current in read back is in opposite
  2. sign, VL and VS are switched.
  3. In A1N experiment, HS coil current in read back is also in opposite sign.
  4. 3) This script can make some plot using functions. For example "PlotGradientVsZ(xx,yy,figname)".
  5. User need to sipecify xx and yy locations and output figure name.
  6. 4) Jixie will put all the somponent maps in work disk.