Difference between revisions of "TOSCA simulation for Pol He3 Field"

From HallCWiki
Jump to: navigation, search
(How to run these scripts to combine maps)
(How to run these scripts to combine maps)
Line 28: Line 28:
  
 
==How to run these scripts to combine maps ==
 
==How to run these scripts to combine maps ==
#) configure the 7 component maps in 'Field map block', which is just a list. <br>
+
1) configure the 7 component maps in 'Field map block', which is just a list. <br>
 
The structure of this list is: Path_of_table, Current_of_table, Target_current.<br>
 
The structure of this list is: Path_of_table, Current_of_table, Target_current.<br>
 
Jixie will provide the Current_of_table for each map. What you need to change is<br>
 
Jixie will provide the Current_of_table for each map. What you need to change is<br>
Line 34: Line 34:
 
the current go through the coils, not the current you read back in the GUI monitor.)<br>
 
the current go through the coils, not the current you read back in the GUI monitor.)<br>
  
#) Keep in mind that in D2N experiment, HS coil current in read back is in opposite<br>
+
2) Keep in mind that in D2N experiment, HS coil current in read back is in opposite<br>
 
sign, VL and VS are switched. <br>
 
sign, VL and VS are switched. <br>
 
In A1N experiment, HS coil current in read back is also in opposite sign.<br>
 
In A1N experiment, HS coil current in read back is also in opposite sign.<br>
 
When you provide "Target_current", you really need to be careful.<br>
 
When you provide "Target_current", you really need to be careful.<br>
  
#) This script can make some plot using functions. For example "PlotGradientVsZ(xx,yy,figname)"  <br>
+
3) This script can make some plot using functions. For example "PlotGradientVsZ(xx,yy,figname)"  <br>
 
will plot the 9 gradients as a function of z at line (x=xx,y=yy).<br>
 
will plot the 9 gradients as a function of z at line (x=xx,y=yy).<br>
 
User need to specify xx and yy locations and output figure name. <br>
 
User need to specify xx and yy locations and output figure name. <br>

Revision as of 11:38, 9 September 2020

By Jixie Zhang, Sep 9th,2020

Introduction

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:
ifarm1901:/u/group/c-polhe3/Users/jixie/TOSCA/A1NMap
ifarm1901:/u/group/c-polhe3/Users/jixie/TOSCA/D2NMap

Scripts to combine maps

Jixie provides python scrips 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 will also make some plots of "Field vs Y|Z"
and "Gradient vs Y|Z". These scrips are stored at
ifarm1901:/u/group/c-polhe3/Users/jixie/TOSCA/Scripts


How to run these scripts to combine maps

1) configure the 7 component maps in 'Field map block', which is just a list.
The structure of this list is: Path_of_table, Current_of_table, Target_current.
Jixie will provide the Current_of_table for each map. What you need to change is
the "Path_of_table" and "Target_current" for each of them. ("Target_current" is
the current go through the coils, not the current you read back in the GUI monitor.)

2) Keep in mind that in D2N experiment, HS coil current in read back is in opposite
sign, VL and VS are switched.
In A1N experiment, HS coil current in read back is also in opposite sign.
When you provide "Target_current", you really need to be careful.

3) This script can make some plot using functions. For example "PlotGradientVsZ(xx,yy,figname)"
will plot the 9 gradients as a function of z at line (x=xx,y=yy).
User need to specify xx and yy locations and output figure name.