Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. eqns={D[c1[t,x],t]==D[c1[t,x],x,x],D[c2[t,y],t]==D[c2[t,y],y‌​,y]};
  2. bcs={c1[t,0]==1,c1[t,1]==c2[t,1],Derivative[0, 1][c1][t, 1] ==
  3. Derivative[0, 1][c2][t, 1],c2[t,2]==Exp[-1000*t]};
  4. ics={c1[0,x]==1,c2[0,y]==1}; Tmax=0.5;
  5. sol=NDSolveValue[{eqns,bcs,ics},{c1,c2},{t,0,Tmax},{x,0,1},{‌​y,1,2}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement