|
Time Dependence
|
Previous Top Next |
| · | The THRESHOLD of meaningful values for each variable (if not apparent from initial values).
|
| · | The time-dependent PDE's
|
| · | The time range of interest,
|
| · | The times at which plots should be produced
|
| · | Any history plots that may be desired
|
| [Note: FlexPDE can treat only first derivatives in time. Second-order equations must be split into two equations by defining an intermediate variable.]
|
|
|
| TIME <start> TO <finish>
|
| FOR T = <t1> <t2> BY <step> TO <t3>
.
|
| Div(k*grad(Phi)) = c*dt(Phi)
|
| TITLE 'Transient Heat flow around an Insulating blob'
|
| VARIABLES
|
| Phi (threshold=0.01) { the temperature }
|
| DEFINITIONS
|
| K = 1 { default conductivity }
|
| C = 1 { default heat capacity }
|
| R = 1/2
|
| EQUATIONS
|
| Div(-K*grad(phi)) + C*dt(Phi) = 0
|
| BOUNDARIES
|
| REGION 1 'box'
|
| START(-1,-1)
|
| VALUE(Phi)=0 LINE TO (1,-1)
|
| NATURAL(Phi)=0 LINE TO (1,1)
|
| VALUE(Phi)=sin(t) LINE TO (-1,1)
|
| NATURAL(Phi)=0 LINE TO CLOSE
|
| REGION 2 'blob' { the embedded blob }
|
| K = 0.001
|
| C = 0.1
|
| START(R,0)
|
| ARC(CENTER=0,0) ANGLE=360
|
| TIME 0 TO 2*pi
|
| PLOTS
|
| FOR T = pi/2 BY pi/2 TO 2*pi
|
| CONTOUR(Phi)
|
| VECTOR(-K*grad(Phi))
|
| ELEVATION(Phi) FROM (0,-1) to (0,1)
|
| HISTORIES
|
| HISTORY(Phi) AT (0,r/2) (0,r) (0,3*r/2)
|
| END
|
|
|