PLUTO
res_eta.c
Go to the documentation of this file.
1 /* ///////////////////////////////////////////////////////////////////// */
2 /*!
3  \file
4  \brief Define the components of the diagonal resistive tensor.
5 
6  Use this function to supply the resistivity in the three directions
7  \f$ \eta_{x1}\f$, \f$ \eta_{x2}\f$ and \f$ \eta_{x3}\f$.
8 
9  \authors T. Matsakos \n
10  A. Mignone (mignone@ph.unito.it)\n
11  \date March 22, 2013
12 */
13 /* ///////////////////////////////////////////////////////////////////// */
14 #include "pluto.h"
15 
16 /* ********************************************************************* */
17 void Resistive_eta(double *v, double x1, double x2, double x3,
18  double *J, double *eta)
19 /*!
20  * Compute the resistive tensor components as function of the primitive
21  * variables, coordinates and currents.
22  *
23  * \param [in] v array of primitive variables
24  * \param [in] x1 coordinate in the X1 direction
25  * \param [in] x2 coordinate in the X2 direction
26  * \param [in] x3 coordinate in the X3 direction
27  * \param [in] J current components, J[IDIR], J[JDIR], J[KDIR]
28  * \param [out] eta an array containing the three components of
29  * \f$ \tens{\eta}\f$.
30  *
31  *********************************************************************** */
32 {
33  eta[IDIR] = g_inputParam[ETA];
34  eta[JDIR] = g_inputParam[ETA];
35  eta[KDIR] = g_inputParam[ETA];
36 }
static double *** eta[3]
Definition: res_functions.c:94
#define KDIR
Definition: pluto.h:195
#define IDIR
Definition: pluto.h:193
double g_inputParam[32]
Array containing the user-defined parameters.
Definition: globals.h:131
void Resistive_eta(double *v, double x1, double x2, double x3, double *J, double *eta)
Definition: res_eta.c:17
PLUTO main header file.
#define ETA
#define JDIR
Definition: pluto.h:194