PLUTO  4.4-patch2
Functions
tvdlf.c File Reference

Lax-Friedrechs (Rusanov) Riemann solver for resistive RMHD. More...

#include "pluto.h"

Functions

void LF_Solver (const Sweep *sweep, int beg, int end, double *cmax, Grid *grid)
 

Detailed Description

Solve the Riemann problem for resistive relativistic MHD equation using the Lax-Friedrichs Rusanov Riemann solver with local maximum characteristic speed equal to the speed of light:

\[ \hat{F}_{i+\HALF} = \frac{F^L_{i+\HALF} + F^R_{i+\HALF}}{2} - c^{\rm max}_{i+\HALF}\frac{U^R_{i+\HALF} - U^L_{i-\HALF}}{2} \]

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Apr 05, 2020

Function Documentation

◆ LF_Solver()

void LF_Solver ( const Sweep sweep,
int  beg,
int  end,
double *  cmax,
Grid grid 
)

Solve Riemann problem for the adiabatic MHD equations using the Lax-Friedrichs (Rusanov) Riemann solver.

Parameters
[in,out]sweeppointer to Sweep structure
[in]beginitial grid index
[out]endfinal grid index
[out]cmax1D array of maximum characteristic speeds
[in]gridpointer to array of Grid structures.