Home > freetb4matlab > bim > BIM1Aadvdiff.m

BIM1Aadvdiff

PURPOSE ^

%

SYNOPSIS ^

function A = BIM1Aadvdiff(x,alpha,gamma,eta,beta)

DESCRIPTION ^

% -*- texinfo -*-
%
% @deftypefn {Function File} @
% {@var{A}} = BIM1Aadvdiff (@var{mesh}, @var{alpha}, @var{gamma}, @var{eta}, @var{beta})
%
% Builds the Scharfetter-Gummel matrix for the 
% discretization of the LHS
% of the equation:
% 
% @iftex 
% @tex
% $ - ( \alpha  \gamma  ( \eta  u' - \vect{beta} u ))' = f $
% @end tex 
% @end iftex 
% @ifinfo
% - (@var{alpha} * @var{gamma} (@var{eta} u' - @var{beta} u ))' = f
% @end ifinfo
% 
% where: 
% @itemize @minus
% @item @var{alpha}: element-wise constant scalar function
% @item @var{eta}, @var{gamma}: piecewise linear conforming 
% scalar functions
% @item @var{beta}: element-wise constant vector function
% @end itemize
%
% Instead of passing the vector field @var{beta} directly
% one can pass a piecewise linear conforming scalar function
% @var{phi} as the last input.  In such case @var{beta} = grad @var{phi}
% is assumed.  If @var{phi} is a single scalar value @var{beta}
% is assumed to be 0 in the whole domain.
% 
%
% @seealso{BIM1Arhs, BIM21reaction, BIM1Alaplacian}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003