PLUTO
visc_nu.c
Go to the documentation of this file.
1 /* /////////////////////////////////////////////////////////////////// */
2 /*! \file
3  * \brief Specification of explicit first and second viscosity coefficients*/
4 /* /////////////////////////////////////////////////////////////////// */
5 #include "pluto.h"
6 #include <stdio.h>
7 /* ************************************************************************** */
8 void Visc_nu(double *v, double x1, double x2, double x3,
9  double *nu1, double *nu2)
10 /*!
11  * \brief Calculate first and second viscosity coefficients as functions of data and coordinates
12  *
13  * \param [in] v pointer to data array containing cell-centered quantities
14  * \param [in] x1 real, coordinate value
15  * \param [in] x2 real, coordinate value
16  * \param [in] x3 real, coordinate value
17  * \param [in, out] nu1 pointer to first viscous coefficient
18  * \param [in, out] nu2 pointer to second viscous coefficient
19  * \return This function has no return value.
20  * ************************************************************************** */
21 
22 {
23  *nu1 = g_inputParam[NU_VISC];
24  *nu2 = 0.0;
25 }
#define NU_VISC
double g_inputParam[32]
Array containing the user-defined parameters.
Definition: globals.h:131
PLUTO main header file.
void Visc_nu(double *v, double x1, double x2, double x3, double *nu1, double *nu2)
Definition: visc_nu.c:7