PLUTO  4.0
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
fluxes.c File Reference

Compute the MHD flux. More...

#include "pluto.h"

Functions

void Flux (double **ucons, double **wprim, double *a2, double **bck, double **fx, double *p, int beg, int end)
 

Detailed Description

Compute the flux of the conservative MHD equations in the direction given by g_dir. This function defines the component of the hyperbolic flux tensor of the standard MHD equations.
In what follows:

Author
A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
Aug 16, 2012

Function Documentation

void Flux ( double **  ucons,
double **  wprim,
double *  a2,
double **  bck,
double **  fx,
double *  p,
int  beg,
int  end 
)
Parameters
[in]ucons1D array of conserved quantities
[in]wprim1D array of primitive quantities
[in]a21D array of sound speeds
[in]bck1D array of background field values
[out]fx1D array of fluxes (total pressure excluded)
[out]p1D array of pressure values
[in]beginitial index of computation
[in]endfinal index of computation
Returns
This function has no return value.