PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
res.h File Reference

Resistive MHD module header file. More...

Go to the source code of this file.

Functions

void ResistiveFlux (Data_Arr, double **, double **, int, int, Grid *)
 
void GetCurrent (Data_Arr, real **, Grid *)
 

Detailed Description

Contains prototypes for the resistive MHD module.

Authors
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
T. Matsakos
Date
Sep 13, 2012

Function Documentation

void GetCurrent ( Data_Arr  V,
double **  curlB,
Grid grid 
)
Parameters
[in]VA 3D array of cell-centered primitive quantities
[out]curlBA 1D array containing two components of the current in a the direction set by g_dir
[in]grida pointer to an array of Grid structures
void ResistiveFlux ( Data_Arr  V,
double **  RF,
double **  dcoeff,
int  beg,
int  end,
Grid grid 
)

Compute resistive fluxes for the induction and energy equations. Also, compute the diffusion coefficient. Called by either ParabolicFlux or ParabolicRHS.

Parameters
[in]V3D data array of primitive variables
[out]RFthe resistive fluxes
[out]dcoeffthe diffusion coefficients evaluated at cell interfaces
[in]beginitial index of computation
[in]endfinal index of computation
[in]gridpointer to an array of Grid structures.