Finite Element Analysis Toolbox
navierstokes.m File Reference

Description

NAVIERSTOKES Navier-Stokes equations physics mode.

NAVIERSTOKES Define and generate a Navier-Stokes equations physics mode struct. Used with the ADDPHYS function.

Example
  1) Add default Navier-Stokes equations physics mode.

  fea.sdim = {'x', 'y'};
  fea.geom.objects = {gobj_circle};
  fea = addphys( fea, @navierstokes );

  2) Add Navier-Stokes equations physics mode with named dependent variables.

  fea.sdim = {'x', 'y', 'z'};
  fea.geom.objects = {gobj_block};
  fea = addphys( fea, @navierstokes, {'u1', 'u2', 'u3', 'p'} );

[ PHYS ] = NAVIERSTOKES( SDIM, DVAR, TAG, ISAXI ) Optional arguments when used without addphys are a cell array of space dimension variables SDIM (default {x, y}), dependent variable names DVAR (default {u, v, p}), mode tag TAG (default ns), and boolean ISAXI to specify 2D axisymmetric formulation (default false).

See also
addphys