Guest User

Untitled

a guest
Dec 15th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. > restart;
  2. > refresh(tools);
  3. > with(plots);
  4. > Digits := 5;
  5. > h := 100;
  6. > x := -h;
  7. > u := 0.25;
  8. > nu := (1-u)*(1/2);
  9. > i := sqrt(-1);
  10. > t := .1;
  11. > D1 := 10^(-8);
  12. > D2 := 10^(-6);
  13. > k[1] := 1/sqrt(D1);
  14. > k[2] := 1/sqrt(D2);
  15. > with(Student[Calculus1]);
  16. > M := proc (x, h) options operator, arrow; (k[1]*cosh(k[1]*rho^nu*exp(i*Pi*nu)*x)-k[2]*sinh(k[1]*rho^nu*exp(i*Pi*nu)*x))*exp(-rho*t)/((k[1]*cosh(k[1]*rho^nu*exp(i*Pi*nu)*h)+k[2]*sinh(k[1]*rho^nu*exp(i*Pi*nu)*h))*rho) end proc;
  17. > a := ApproximateInt(M(x, h), rho = 0 .. 100);
  18. > N := proc (x, h) options operator, arrow; (k[1]*cosh(k[1]*rho^nu*exp(-i*Pi*nu)*x)-k[2]*sinh(k[1]*rho^nu*exp(-i*Pi*nu)*x))*exp(-rho*t)/((k[1]*cosh(k[1]*rho^nu*exp(-i*Pi*nu)*h)+k[2]*sinh(k[1]*rho^nu*exp(-i*Pi*nu)*h))*rho) end proc;
  19. > b := ApproximateInt(N(x, h), rho = 0 .. 100);
  20. > p := evalf(1+a/(2*i*Pi)-b/(2*i*Pi));
  21. > plot(p(-100, .1), -100 .. 0, 0 .. 1, colour = ["green"], axes = BOXED, labels = ["layer thickness, μm", "reduced concentration, C/C"], labeldirections = [horizontal, vertical]);
Add Comment
Please, Sign In to add comment