Compute viscosity fluxes. More...
#include "pluto.h"
Functions | |
void | ViscousFlux (Data_Arr V, real **ViF, real **ViS, double **dcoeff, int beg, int end, Grid *grid) |
Computes viscous fluxes and source terms for the HD/MHD equations. | |
void ViscousFlux | ( | Data_Arr | V, |
real ** | ViF, | ||
real ** | ViS, | ||
double ** | dcoeff, | ||
int | beg, | ||
int | end, | ||
Grid * | grid | ||
) |
[in] | V | data array containing cell-centered quantities |
[in,out] | ViF | pointer to viscous fluxes |
[in,out] | ViS | pointer to viscous source terms |
[in,out] | dcoeff | pointer to diffusion coefficient for dt calculation |
[in] | beg | integer, index for loop beg |
[in] | end | integer, index for loop end |
[in] | grid | pointer to array of Grid structures |
Calculates the stress tensor components (at the i+1/2 face of each cell) and adds explicit viscous terms to the energy and momentum equation. It is called in the during the sweep integrators. The stress tensor is given by
where and the components are given by
where and
whereas m,l are the first and second parameter of viscosity respectively