PLUTO
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
visc_nu.c
Go to the documentation of this file.
1
#include "
pluto.h
"
2
3
/*---------------------------------------------------------------------------*/
4
/*---- Specification of explicit first and second viscosity coefficients ----*/
5
/*---------------------------------------------------------------------------*/
6
7
void
Visc_nu
(
double
*v,
double
x1,
double
x2,
double
x3,
8
double
*nu1,
double
*nu2)
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
}
RHO
#define RHO
Definition:
mod_defs.h:19
IDIR
#define IDIR
Definition:
pluto.h:193
g_inputParam
double g_inputParam[32]
Array containing the user-defined parameters.
Definition:
globals.h:131
REYN
#define REYN
Definition:
definitions_01.h:24
g_domBeg
double g_domBeg[3]
Lower limits of the computational domain.
Definition:
globals.h:125
pluto.h
PLUTO main header file.
OMEGA
#define OMEGA
Definition:
definitions_01.h:23
Visc_nu
void Visc_nu(double *v, double x1, double x2, double x3, double *nu1, double *nu2)
Definition:
visc_nu.c:7
g_domEnd
double g_domEnd[3]
Upper limits of the computational domain.
Definition:
globals.h:126
Test_Problems
HD
Viscosity
Taylor_Couette
visc_nu.c
Generated by
1.8.10