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


EX_NAVIERSTOKES1 2D Example for incompressible stationary flow in a channel.

[ FEA, OUT ] = EX_NAVIERSTOKES1( VARARGIN ) Sets up and solves stationary Poiseuille flow in a rectangular channel. The inflow profile is constant and the outflow should assume a parabolic profile ( u(y)=U_max*4/h^2*y*(h-y) ). Accepts the following property/value pairs.

Input       Value/{Default}        Description
rho         scalar {1}             Density
miu         scalar {0.001}         Molecular/dynamic viscosity
umax        scalar {0.3}           Maximum magnitude of inlet velocity
h           scalar {0.5}           Channel height
l           scalar {2.5}           Channel length
igrid       scalar 1/{0}           Cell type (0=quadrilaterals, 1=triangles)
hmax        scalar {0.04}          Max grid cell size
sf_u        string {sflag2}        Shape function for velocity
sf_p        string {sflag1}        Shape function for pressure
iphys       scalar 0/{1}           Use physics mode to define problem (=1)
iplot       scalar 0/{1}           Plot solution and error (=1)
Output      Value/(Size)           Description
fea         struct                 Problem definition struct
out         struct                 Output struct
Generated fields of fea:
Generated fields of out: