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


EX_CONVREACT1 1D Time dependent convection-reaction equation example.

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

Input       Value/{Default}        Description
k           scalar {1e-1}          Reaction coefficient
a           scalar {1}             Convection velocity
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: