PLUTO  4.4-patch2
Functions
hllc.c File Reference

HLLC Riemann solver for MHD. More...

#include "pluto.h"

Functions

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

Detailed Description

Solve the Riemann problem for the adiabatic MHD equations using a modified version of the HLLC Riemann solver of Li (2005). The isothermal version has not been implemented yet.

Our formulation differs from Li's original solver in the way transverse momenta are computed.

On input, this function takes left and right primitive state vectors stateL->v and state->v at zone edge i+1/2; On output, return flux and pressure vectors at the same interface i+1/2 (note that the i refers to i+1/2).

Also during this step, compute maximum wave propagation speed (cmax) for explicit time step computation.

Reference:

Authors
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Sep 11, 2019

Function Documentation

◆ HLLC_Solver()

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

Solve Riemann problem for the adiabatic MHD equations using a slightly modified version of the two-states HLLC Riemann solver of Li (2005).

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.