LLE B-Field Driver
!
Time-step 0.1e-9
Resolution-time 1e-9
End-time 1.0e-6
Number-prints 5
Execute-cycles all
Grids no
Echo-setup no
Max-points 5001
!
!Start circuit definition
!
! Use a different capacitance than rev1.
! We start with a capacitor and switch with the parameters proposed for the 
! Thor II brick with 2, 150 nF caps from GA 
!  150 nF per brick, 15 nH/brick capacitor inductancde, 0.13  total ESR (est. from GA catalog)
!
! Then there is a 20 ft (30 ns) TL with an impedance close to the impedance of
! the capacitor and the switch and the header.
!
! The switch impedance at peak current was 0.37  from PhysRevSTAB.12.050401.2009
!
! The brick cables will be tied together and will feed the B-field coil through a ~ 10 parallel
! plate feed with Kapton insulation - Use a lumped inductance of 5 nH for this component
!
!
BRANCH
!
! Capacitor capacitance and charge voltage
!
RCG 1e+12 150e-9
Initial VC1 200e3
UFO VC1
$V_cap
! Cap inductance, case inductance, and ESR
Rlseries 0.13 50e-9
!
! Switch resistance and switch inductance - use the Martin Switch model here
!
Rlseries 0.37 50e-9
!
! Cable Header inductance
!
Rlseries 0.00 50e-9
!
! TLine 4, 10.2  cables in parallel
!
TRLine LIN 60e-9 2.55 2.55
UFO VIN
$V_Cable_in
UFO VOUT
$V_Cable_out
!
! Connection to the coil - could use skin depth model for Cu
!
Rlseries 0 5.0e-9
!
! Assume load resistance is ~ 5 m
! Assume B-field coil inductance is 
!
RLseries 0.00   70e-9
UFO IR2
$I_load
UFO VL2
$V_load
Rcground 0.005 0.0
!
! End circuit