PLUTO
visc_nu.c File Reference
#include "pluto.h"
Include dependency graph for visc_nu.c:

Go to the source code of this file.

Functions

void Visc_nu (double *v, double x1, double x2, double x3, double *nu1, double *nu2)
 Calculate first and second viscosity coefficients as functions of data and coordinates. More...
 

Function Documentation

void Visc_nu ( double *  v,
double  x1,
double  x2,
double  x3,
double *  nu1,
double *  nu2 
)

Calculate first and second viscosity coefficients as functions of data and coordinates.

Parameters
[in]vpointer to data array containing cell-centered quantities
[in]x1real, coordinate value
[in]x2real, coordinate value
[in]x3real, coordinate value
[in,out]nu1pointer to first viscous coefficient
[in,out]nu2pointer to second viscous coefficient
Returns
This function has no return value.

Definition at line 7 of file visc_nu.c.

9 {
10  double rmin = g_domBeg[IDIR];
11  double rmax = g_domEnd[IDIR];
12  double Re = g_inputParam[REYN];
13 
14  *nu1 = g_inputParam[OMEGA]*rmin*(rmax - rmin)*v[RHO]/Re;
15  *nu2 = 0.0;
16 }
#define RHO
Definition: mod_defs.h:19
#define IDIR
Definition: pluto.h:193
double g_inputParam[32]
Array containing the user-defined parameters.
Definition: globals.h:131
#define REYN
double g_domBeg[3]
Lower limits of the computational domain.
Definition: globals.h:125
#define OMEGA
double g_domEnd[3]
Upper limits of the computational domain.
Definition: globals.h:126