#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_dt_first (double a, double b) |
double | min_dt_first (double a, double b) |
int | dt_calc_first (int x, int y, int z) |
int dt_calc_first | ( | int | x, |
int | y, | ||
int | z | ||
) |
This function calculates the hydrodynamical time step for the first time in the simulation It is based on the signal velocity in the medium and the courant factor, specified in the parameterfile.
Definition at line 50 of file dt_calc_first.c.
References courant, dimension, dom, dt, Gamma1, gasconstant, intial_soundspeed, kinematic_viscosity(), max_dt_first(), min_dt_first(), pre, rho, spacing, viscosity_on_off, vx, vy, vz, x, y, z, zdx, zdy, and zdz.
Referenced by main().
|
inline |
Inline function to calculate the maximum of two doubles
Definition at line 21 of file dt_calc_first.c.
Referenced by dt_calc_first().
|
inline |
Inline function to calculate the minimum of two doubles
Definition at line 34 of file dt_calc_first.c.
Referenced by dt_calc_first().