FEATool  v1.7
Finite Element Analysis Toolbox
 All Files Functions Pages
ex_diffusion2.m File Reference


EX_DIFFUSION2 1D Time dependent diffusion equation examples.

[ FEA, OUT ] = EX_DIFFUSION2( VARARGIN ) 1D time dependent diffusion equation on a line with exact solutions. Accepts the following property/value pairs.

Input       Value/{Default}        Description
nu          scalar {1e-1}          Diffusion coefficient
icase       scalar {2}             Test case
hmax        scalar {1/25}          Max grid cell size
dt          scalar {0.1}           Time step size
ischeme     scalar {3}             Time stepping scheme
sfun        string {sflag1}        Shape function
iplot       scalar 0/{1}           Plot solution (=1)
Output      Value/(Size)           Description
fea         struct                 Problem definition struct
out         struct                 Output stuct
Generated fields of fea:
Generated fields of out: