Advertisement
kestutisma

runMc36sm.jl

Apr 10th, 2019
1,334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.69 KB | None | 0 0
  1. include("mc36sm_ss.jl")
  2. include("mc36sm.jl")
  3. function runGj()
  4.     println("starting..")
  5.     vj = -[ zeros(1, 250) LinRange(0, 120, 750)' ];
  6.    gj = zeros(length(vj))
  7.    parAllFast = [ .15 28 24e-9 * 4 24e-9 * 4 / 10 800 50 .01 -1;       .1 36 140e-9 * 4 140e-9 * 4 / 10 1e10 1e10 .03 1 ];
  8.    parAllSlow = [ .1 48 140e-9 * 4  1e-15 1e10 1e10 .03 -1;            .1 48 140e-9 * 4  1e-15 1e10 1e10 .03 1 ];
  9.    par = [parAllFast; parAllSlow];
  10.    pc1c2 = 0;
  11.    pc2c1 = 0;
  12.    pc1c2 = 0.01;
  13.    pc2c1 = 0.001;
  14.    ppp = zeros(1, 36);
  15.    ppp[1] = 1;
  16.    for i = 1:length(vj)
  17.        gj[i] = MC36SM_Mindaugo_SS(vj[i], par, ppp, pc1c2, pc2c1);
  18.    end
  19.    println("done.")
  20.    return vj, gj
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement