#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"
Go to the source code of this file.
Functions | |
double | max_viscosity (double a, double b) |
int | viscosity (int i, int j, int k, int flag, int nmin, int nmax, double *rho_1D, double *vx_1D, double *vy_1D, double *vz_1D, double *pre_1D, double *e_int_1D, double *eng_1D, int lefter, double *rhodown, double *rhoup, double *rhofront, double *rhoback, double *vxdown, double *vxup, double *vxfront, double *vxback, double *vydown, double *vyup, double *vyfront, double *vyback, double *vzdown, double *vzup, double *vzfront, double *vzback, int dimension) |
|
inline |
Inline function to calculate the maximum of two doubles
Definition at line 17 of file viscosity.c.
int viscosity | ( | int | i, |
int | j, | ||
int | k, | ||
int | flag, | ||
int | nmin, | ||
int | nmax, | ||
double * | rho_1D, | ||
double * | vx_1D, | ||
double * | vy_1D, | ||
double * | vz_1D, | ||
double * | pre_1D, | ||
double * | e_int_1D, | ||
double * | eng_1D, | ||
int | lefter, | ||
double * | rhodown, | ||
double * | rhoup, | ||
double * | rhofront, | ||
double * | rhoback, | ||
double * | vxdown, | ||
double * | vxup, | ||
double * | vxfront, | ||
double * | vxback, | ||
double * | vydown, | ||
double * | vyup, | ||
double * | vyfront, | ||
double * | vyback, | ||
double * | vzdown, | ||
double * | vzup, | ||
double * | vzfront, | ||
double * | vzback, | ||
int | dimension | ||
) |
The velocity fluxes are changed due to viscosity Velocity-Flux = -nu * grad(v_x) This routine computes the velocity fluxes from viscosity and alters the velocity fluxes from the hydro step.
Definition at line 34 of file viscosity.c.
References dt, dynamic_viscosity(), gasconstant, max_array_length, x, xmax, xmin, y, ymax, ymin, z, zmax, and zmin.
Referenced by ppm_step().