|
What Does A Script Look Like?
|
Previous Top Next |
|
a descriptive label for the output.
| |||
|
user controls over the default behavior of FlexPDE.
| |||
|
here the dependent variables are named.
| |||
|
useful parameters, relationships or functions are defined.
| |||
|
each variable is associated with a partial differential equation.
| |||
|
the geometry is described by walking the perimeter of the domain, stringing together line or arc segments to bound the figure.
| |||
|
desired graphical output is listed, including any combination of CONTOUR, SURFACE, ELEVATION or VECTOR plots.
| |||
|
completes the script.
|
|
|
| [Note: There are several other optional sections for describing special aspects of the problem. Some of these will be introduced later in this document. Detailed rules for all sections are presented in the FlexPDE Problem Descriptor Reference chapter "Sections".]
|
| · | { Anything inside curly brackets is a comment. }
|
| · | ! from an exclamation to the end of the line is a comment.
|
| TITLE 'Simple diffusion equation'
|
| { this problem lacks sources and boundary conditions }
|
| VARIABLES
|
| u
|
| DEFINITIONS
|
| k=3 { conductivity }
|
| EQUATIONS
|
| div(k*grad(u)) =0
|
| BOUNDARIES
|
| REGION 1
|
| START(0,0)
|
| LINE TO (1,0)
|
| TO (1,1)
|
| TO (0,1)
|
| TO CLOSE
|
| PLOTS
|
| CONTOUR(u)
|
| VECTOR(k*grad(u))
|
| END
|