PLUTO
res_eta.c File Reference

Define the components of the diagonal resistive tensor. More...

#include "pluto.h"
Include dependency graph for res_eta.c:

Go to the source code of this file.

Functions

void Resistive_eta (double *v, double x1, double x2, double x3, double *J, double *eta)
 

Detailed Description

Define the components of the diagonal resistive tensor.

Use this function to supply the resistivity in the three directions $ \eta_{x1}$, $ \eta_{x2}$ and $ \eta_{x3}$.

Authors
T. Matsakos
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
March 22, 2013

Definition in file res_eta.c.

Function Documentation

void Resistive_eta ( double *  v,
double  x1,
double  x2,
double  x3,
double *  J,
double *  eta 
)

Compute the resistive tensor components as function of the primitive variables, coordinates and currents.

Parameters
[in]varray of primitive variables
[in]x1coordinate in the X1 direction
[in]x2coordinate in the X2 direction
[in]x3coordinate in the X3 direction
[in]Jcurrent components, J[IDIR], J[JDIR], J[KDIR]
[out]etaan array containing the three components of $ \tens{\eta}$.

Definition at line 17 of file res_eta.c.

32 {
33  eta[IDIR] = 1.0;
34  eta[JDIR] = 1.0;
35  eta[KDIR] = 1.0;
36 }
static double *** eta[3]
Definition: res_functions.c:94
#define KDIR
Definition: pluto.h:195
#define IDIR
Definition: pluto.h:193
#define JDIR
Definition: pluto.h:194

Here is the caller graph for this function: