Examples
little_example
This is a small example, suitable to illustrate the general idea, and to serve as a template for other problems. The worksheet, example.mws, is structured and commented so that it should be reasonably self explanatory.
The two equations that are solved are one Laplacian, and one diffusion equation with a source term. A 2D triangular mesh produced with femlab is included.
Solution for v(x,y) at time =1.
More detailed information about the content of little_example is given here:
Some of the files that are found here are:
a.out
The executable code.
indata
indata_sample
'indata_sample' is written during generation of the program and is a template for input of scalar parameters. It also controls timestepping, when to save data, etc. Typically this is copied to indata, which is edited to contain the real input parameters, to avoid that the real input data is overwritten by accident.
out*.inp
Holds the output. the string 'out' is specified in 'indata'. Theses files are readable by AVS.
area.scratch
This holds a mesh, typically this is written by FEMLAB after the mesh generation is complete.
makefile
The input file to make that controls compilation, where to find libraries, etc.
tmpSave1
A dump file that is written when the run is complete. This file is written in a way that makes it suitable to restart from. If the second entry on the first line in 'indata' is changed from empty' to tmpSave1, the initial conditions are taken from this file instead of being computed from the expressions inserted under 'initial conditions' in the Maple worksheet.
2DP1_gsq_bsf
This file contains the description of the finite element (piecewise linear on triangles in this case). It is read by the Maple commands during code generation.