PLUTO Test Problems  4.4-patch2
Functions
res_eta.c File Reference

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

Functions

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

Detailed Description

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

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Feb 26, 2019

Function Documentation

◆ Resistive_eta()

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}$.