FEATool  v1.6
Finite Element Analysis Toolbox
 All Files Functions Pages
ex_convdiff3.m File Reference

Description

EX_CONVDIFF3 1D Time dependent convection and diffusion equation example.

[ FEA, OUT ] = EX_CONVDIFF3( VARARGIN ) 1D time dependendt convection and diffusion equation on a line with an infinately oscillating exact solution. Accepts the following property/value pairs.

Input       Value/{Default}        Description
-----------------------------------------------------------------------------------
w           scalar {1.5*pi}        Simulation parameter
U           scalar {2}             Simulation parameter
a           scalar {1}             Convection velocity
nu          scalar {0.1}           Diffusion coefficient
hmax        scalar {1/25}          Max grid cell size
dt          scalar {0.02}          Time step size
ischeme     scalar {3}             Time stepping scheme
sfun        string {sflag2}        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: