ohmic_dist1.m
USAGE: [ohmic_dist_data] = ohmic_dist1(ohmic_calc_inputs)
PURPOSE: Calculates the Best Ohmic current distribution for F coils
INPUTS: [default]
ohmic_calc_inputs = structure, containing one or more of following:
cccirc = coil connection vector
Pcc = mapping from coil states to all PF coils
(only one of cccirc or Pcc should be provided)
pfcoils_oh = indices of PF coil to use in ohmic distribution
flux0 = target flux at center, scaler (Vs) [1]
bz_targ = target vertical field scaler or (npt,1) (T) [0]
ic_min = minimum coil currents (A), either full set or current states
ic_max = maximum coil currents (A), either full set or current states
vacuum_objs = vacuum model objects for the device
npt = Number of points on boundary for optimization [101]
r_plasma = Major radius of breakdown circle (m)
z_plasma = Z Location of center of breakdown circle (m) [0]
rpt, zpt = R,Z Plasma boundary Points (m) (alternatively, use a,k,d below)
a_plasma = Minor radius of breakdown circle (only needed if no rpt,zpt)
k_plasma = Elongation of breakdown circle (only needed if no rpt,zpt) [1]
d_plasma = Triangularity of breakdown circle(only needed if no rpt,zpt)[0]
minimize_i = 0.1; Includes currents in opts. to reduce +-I [0]
minimize_i weights how much I smooting to perform
Value of 0 to 0.1 are reasonable
pause_it= 1; => pause between figures [0];
figure_num = optional, if not provided then no plotting
OUTPUTS:
ohmic_dist_data = structure, containing:
ic_ohmic = Optimum Ohmic Terminal Current vector (A)
ict_ohmic= Optimum Ohmic Amp-Turn Current vector (A-Turns)
fl = Flux on Boundary (Vs)
br = Br-field on Boundary (T)
bz = Bz-field on Boundary (T)
rpt zpt = R,Z boundary points used in analysis (m)
err = Average Error in booundary flux value (Delta_Vs/Vs)
figure_num = updated figure number (if figure_num is input)
Plots:
figure(1): geometry -- Flux contour -- cccirc numbering -- coil current
figure(2): geometry -- B-field contour -- A-turn for full coil system
figure(3): flux variation around circumference of breakdown circle
figure(4): B-field variation around circumference of breakdown circle
RESTRICTIONS:
METHOD:
Determine optimum Coil current distribution using least square technique
to produce a uniform 1 Vs flux on the boundary see ohmic_dist.m
now very similar to CUROPT by including Bz and constraints on currents
now calculates based on terminal currents rather than (amp-turns)
Dependencies