GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
N_upwind.c File Reference
#include <math.h>
#include "grass/N_pde.h"
Include dependency graph for N_upwind.c:

Go to the source code of this file.

Functions

double N_full_upwinding (double sprod, double distance, double D)
 full upwinding stabilization algorithm More...
 
double N_exp_upwinding (double sprod, double distance, double D)
 exponential upwinding stabilization algorithm More...
 

Function Documentation

double N_exp_upwinding ( double  sprod,
double  distance,
double  D 
)

exponential upwinding stabilization algorithm

The arguments are values to compute the local peclet number

Parameters
sproddouble – the scalar produkt between the velocity vector and the normal vector between two points
distancedouble – distance between two points
Ddouble – diffusion/dispersion tensor part between two points
Returns
the weighting factor

Definition at line 63 of file N_upwind.c.

References D.

Referenced by N_callback_solute_transport_2d(), and N_callback_solute_transport_3d().

double N_full_upwinding ( double  sprod,
double  distance,
double  D 
)

full upwinding stabilization algorithm

The arguments are values to compute the local peclet number

Parameters
sproddouble – the scalar produkt between the velocity vector and the normal vector between two points
distancedouble – distance between two points
Ddouble – diffusion/dispersion tensor part between two points
Returns
the weighting factor

Definition at line 33 of file N_upwind.c.

References D.

Referenced by N_callback_solute_transport_2d().