Finite Elements Using Flex Pde
Finite Elements Using Flex Pde
Finite-Elements mini-course
using FlexPDE
• Rapid prototyping
• Easy to use
• Recommended to try
FlexPDE
• FlexPDE is a "scripted finite element model
builder and numerical solver".
• FlexPDE is also a "problem solving
environment".
• The FlexPDE scripting language is a "natural"
language.
How Do I Set Up My
Problem?
• Define the variables and equations
• Define the domain
• Define the material parameters
• Define the boundary conditions
• Specify the graphical output
Problem Setup Guidelines
• Start with a fundamental statement of the
physical system
• Start with a simple model, preferably one for
which you know the answer
• Use simple material parameters at first
• Map out the domain
• Use MONITORS
• Annotate your script with frequent comments
FlexPDE-> file -> new script
Template:
BOUNDARIES
REGION 1 'box'
START(-1,-1)
VALUE(Phi)=0 LINE TO (1,-1)
NATURAL(Phi)=0 LINE TO (1,1)
VALUE(Phi)=1 LINE TO (-1,1)
NATURAL(Phi)=0 LINE TO CLOSE
REGION 2 'blob' { the embedded blob }
k = 0.001
START 'ring' (R,0)
ARC(CENTER=0,0) ANGLE=360 TO CLOSE
PLOTS
CONTOUR(Phi)
VECTOR(-k*grad(Phi))
ELEVATION(Phi) FROM (0,-1) to (0,1)
ELEVATION(Normal(-k*grad(Phi))) ON 'ring'
END
Problem domain