SHARE
TWEET

Untitled

a guest Apr 25th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TITLE 'Elektro-termo-mechanika'    
  2. VARIABLES      
  3. Temp Volt        
  4.  DEFINITIONS    
  5. lambda ro
  6. k=10
  7. Vg=100 Va=0
  8. Ta=273
  9. j=-ro*grad(Volt)
  10. q=-lambda*grad(Temp)
  11. heat=dot(j,j)/ro
  12. EQUATIONS      
  13. Volt: Div(j)=0
  14. Temp: Div(q)=heat
  15. BOUNDARIES      
  16. region 1 {Prostokat}
  17.  lambda=1 ro=1
  18.  start (0,0)
  19.  natural(Temp)=k*(Temp-Ta)natural(Volt)=0
  20.  line to (3,0)
  21.  natural(Temp)=0 value(Volt)=Va
  22.  line to (3,1)
  23.  natural(Temp)=k*(Temp-Ta)natural(Volt)=0
  24.  line to (0,1)
  25.  natural(Temp)=0 value(Volt)=Vg
  26.  line to close
  27. region 2 {Kolo}
  28.  lambda=10 ro=10
  29.  start(1.5,0.25)
  30.  arc(center=1.5,0.5) angle=-360
  31. PLOTS
  32. contour(Volt) vector(j)
  33. contour(Temp) vector(q)
  34. END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top