PLUTO
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
] = 1.0;
34
eta[
JDIR
] = 1.0;
35
eta[
KDIR
] = 1.0;
36
}
eta
static double *** eta[3]
Definition:
res_functions.c:94
KDIR
#define KDIR
Definition:
pluto.h:195
IDIR
#define IDIR
Definition:
pluto.h:193
Resistive_eta
void Resistive_eta(double *v, double x1, double x2, double x3, double *J, double *eta)
Definition:
res_eta.c:17
pluto.h
PLUTO main header file.
JDIR
#define JDIR
Definition:
pluto.h:194
Src
MHD
Resistivity
res_eta.c
Generated by
1.8.10