-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvisc_nu.c
24 lines (24 loc) · 1.1 KB
/
visc_nu.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* /////////////////////////////////////////////////////////////////// */
/*! \file
* \brief Specification of explicit first and second viscosity coefficients*/
/* /////////////////////////////////////////////////////////////////// */
#include "pluto.h"
/* ************************************************************************** */
void Visc_nu(double *v, double x1, double x2, double x3,
double *nu1, double *nu2)
/*!
*
* \param [in] v pointer to data array containing cell-centered quantities
* \param [in] x1 real, coordinate value
* \param [in] x2 real, coordinate value
* \param [in] x3 real, coordinate value
* \param [in, out] nu1 pointer to first viscous coefficient
* \param [in, out] nu2 pointer to second viscous coefficient
*
* \return This function has no return value.
* ************************************************************************** */
{
// According to normalization in the Whole-Sun convection benchmark document (cf eq. 63)
*nu1 = (g_gamma-1.0) / g_gamma * g_inputParam[SIGMA] * g_inputParam[CK];
*nu2 = 0.0;
}