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

Description

EX_WAVEEQUATION1 2D Wave equation example on a circle.

[ FEA, OUT ] = EX_WAVEEQUATION1( VARARGIN ) Wave equation on a circle with zero source term by variable splitting. Accepts the following property/value pairs.

Input       Value/{Default}        Description
-----------------------------------------------------------------------------------
radi        scalar {1}             Radius of circle
c2          scalar {1}             Wave speed (squared)
init        scalar {1-(x^2+y^2)}   Initial shape
tmax        scalar {1}             Stopping time
tstep       scalar {0.1}           Time step size
igrid       scalar 0/{1}           Cell type (0=quadrilaterals, 1=triangles)
hmax        scalar {0.05}          Grid cell size
iexpl       scalar {0}             Use explicit (or implicit) right hand side
ischeme     scalar {3}             Time stepping scheme
sfun        string {sflag1}        Shape function
iphys       scalar 0/{1}           Use physics mode to define problem    (=1)
                                   or directly define fea.eqn/bdr fields (=0)
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: