Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. m[t_] := {mx[t], my[t], mz[t]}
  2.  
  3. γ = 28;
  4.  
  5. h = 6.62*10^-34;
  6.  
  7. e = 1.6*10^-19;
  8.  
  9. Subscript[μ, 0] = 1.25*10^-6;
  10.  
  11. Subscript[μM, 0] = 800*10^-3;
  12.  
  13. Subscript[M, 0] = 0.64*10^6;
  14.  
  15. Subscript[r, 0] = 100*10^-9;
  16.  
  17. Subscript[l, 0] = 3*10^-9;
  18.  
  19. Subscript[I, dc] = 1*10^-3;
  20.  
  21. Subscript[B, dc] = 200*10^-3;
  22.  
  23. Subscript[α, G] = 0.01;
  24.  
  25. p = {0, 0, 1};
  26.  
  27. σ =(γ*h/2*e)*1/(Subscript[M, 0]*Pi*(Subscript[r, 0])^2)*Subscript[l, 0];
  28.  
  29. Subscript[B, eff] = {Subscript[B, dc], 0, 0}-Subscript[μM, 0]*(m[t]*p);
  30.  
  31. system1 ={D[m[t], t] ==γ*(Cross[Subscript[B, eff], m[t]]) + Subscript[α, G]*(Cross[m[t], D[m[t], t]]) +σ*Subscript[I, dc]*(Cross[m[t], Cross[m[t], p]]),(m[t] /. t -> 0) == {0, 1, 0}};
  32.  
  33. s1 = NDSolve[system1, m[t], {t, 0, 50}]
  34.  
  35. Plot[Evaluate[{mx[t], my[t], mz[t]} /. s1], {t, 0, 50},AxesLabel -> {t, m}]
  36.  
  37. Plot[Evaluate[mx[t] /. s1], {t, 0, 50}, AxesLabel -> {t, mx}]
  38.  
  39. Plot[Evaluate[mx[t] /. s1], {t, 0, 50}, AxesLabel -> {t, mx}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement