PLUTO  4.4-patch2
Functions
hall_mhd.h File Reference

Header file for Hall MHD. More...

Go to the source code of this file.

Functions

void HallMHD_WhistlerSpeed (const State *, int, int, Grid *)
 
double HallMHD_ne (double *)
 
void HallMHD_Flux (const Sweep *, Data_Arr, double **, double **, int, int, Grid *)
 

Detailed Description

Provides macros, function prototypes and structure definitions for the Hall-MHD module.

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Feb 23, 2017

Function Documentation

◆ HallMHD_Flux()

void HallMHD_Flux ( const Sweep sweep,
Data_Arr  curlB,
double **  hall_flux,
double **  lambdaH,
int  beg,
int  end,
Grid grid 
)

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

Parameters
[in]sweepPointer to the sweep structure
[out]hall_fluxThe hall mhd fluxes
[out]lambdaHThe diffusion coefficients evaluated at cell interfaces
[in]beginitial index of computation
[in]endfinal index of computation
[in]gridpointer to an array of Grid structures.
Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
June 27, 2019

◆ HallMHD_ne()

double HallMHD_ne ( double *  v)

Compute the ne term for Hall MHD variables, coordinates and currents.

Parameters
[in]varray of primitive variables

◆ HallMHD_WhistlerSpeed()

void HallMHD_WhistlerSpeed ( const State p,
int  beg,
int  end,
Grid grid 
)

Define the whistler speed defined from the equation in the Appendix of Lesur et al. 2014.

Parameters
[in]ppointer to a state structure
[in]beginitial index of computation
[in]endfinal index of computation
[in]gridpointer to an array of Grid structures
Returns
This function has no return value.