%This script solves the parameter space in which ignition is achievable for given values of %rho, which is the ratio of helium energy confinement time to general plasma confinement time %fz, which is the fraction of impurities %Z, which is the impurity charge state. %Additionally, the script plots the ignition parameter space for pure DT fusion for the sake of comparison. %Running the script requires solve_fthe.m, which is used for solving the helium fraction. %INPUT PARAMETERS %You can play with these parameters %%%%%%% rhovec = [5, 5, 5, 5]; % Give the rho values (>0) to be plotted, e.g. rho = 5 fzvec = [0, 4e-5, 8e-5, 1e-4]; %Give the impurity concentration vector, e.g. fz = 1e-4. Zvec = [50, 50, 50, 50]; % Give the impurity charge vector, e.g. Z=6 for carbon. radiationflag = 1;% Give the radiation flag (1 for radition included, 0 for radiation neglected). colvec = [0,0,0; 1,0,0; 0,0,1; 1,0.4,0];%Give the colors of the curves, just cosmetic. %SCRIPT STARTS DOING ITS THING %You don't have to change anything in here. %%%%%%%%%%% for j=1:length(rhovec) % looping over the rho values rho=rhovec(j); fz = fzvec(j); Z = Zvec(j); for i=4.5:0.1:500; % looping over the temperatures from 4.5 to 100 keV % Solving the f_He values [x_out,dtc] = solve_fhe(i,rho,fz,Z,radiationflag); % Excluding values outside 0 0; loglog(x(ind),ya(ind),'m^','LineWidth',2) grid on hold off