MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include "forcetree.h"
#include "types.h"
#include "timestep.h"
#include "density.h"
#include "utils/paramset.h"
Go to the source code of this file.
Functions | |
void | hydro_force (const ActiveParticles *act, const double atime, struct sph_pred_data *SPH_predicted, double MinEgySpec, const DriftKickTimes times, Cosmology *CP, const ForceTree *const tree) |
void | set_hydro_params (ParameterSet *ps) |
int | DensityIndependentSphOn (void) |
int DensityIndependentSphOn | ( | void | ) |
Definition at line 49 of file hydra.c.
References hydro_params::DensityIndependentSphOn, and HydroParams.
Referenced by register_io_blocks(), run(), setup_density_indep_entropy(), and setup_smoothinglengths().
void hydro_force | ( | const ActiveParticles * | act, |
const double | atime, | ||
struct sph_pred_data * | SPH_predicted, | ||
double | MinEgySpec, | ||
const DriftKickTimes | times, | ||
Cosmology * | CP, | ||
const ForceTree *const | tree | ||
) |
This function is the driver routine for the calculation of hydrodynamical force and rate of change of entropy due to shock heating for all active particles .
Definition at line 147 of file hydra.c.
References ActiveParticles::ActiveParticle, HydraPriv::atime, CP, HydraPriv::drifts, endrun(), sph_pred_data::EntVarPred, TreeWalk::ev_label, HydraPriv::FgravkickB, TreeWalk::fill, GAMMA, GAMMA_MINUS1, get_exact_drift_factor(), get_exact_gravkick_factor(), get_exact_hydrokick_factor(), HydraPriv::gravkicks, TreeWalk::haswork, ForceTree::hmax_computed_flag, hubble_function(), HYDRA_GET_PRIV, hydro_copy(), hydro_haswork(), hydro_ngbiter(), hydro_postprocess(), hydro_reduce(), HydraPriv::hydrokicks, slots_manager_type::info, is_timebin_active(), HydraPriv::MinEgySpec, DriftKickTimes::mintimebin, myfree, mymalloc, TreeWalk::ngbiter, TreeWalk::ngbiter_type_elsize, ActiveParticles::NumActiveParticle, P, DriftKickTimes::PM_kick, TreeWalk::postprocess, PressurePred(), TreeWalk::priv, TreeWalk::query_type_elsize, TreeWalk::reduce, TreeWalk::result_type_elsize, slot_info::size, SlotsManager, SPH_EOMDensity(), HydraPriv::SPH_predicted, SphP, DriftKickTimes::Ti_Current, DriftKickTimes::Ti_kick, DriftKickTimes::Ti_lastactivedrift, TIMEBINS, TreeWalk::timecommsumm1, TreeWalk::timecommsumm2, TreeWalk::timecomp1, TreeWalk::timecomp2, TreeWalk::timecomp3, HydraPriv::times, TreeWalk::timewait1, TreeWalk::timewait2, TreeWalk::tree, treewalk_run(), treewalk_visit_ngbiter(), TreeWalk::visit, walltime_add, WALLTIME_IGNORE, and walltime_measure.
Referenced by run().
void set_hydro_params | ( | ParameterSet * | ps | ) |
Definition at line 37 of file hydra.c.
References hydro_params::ArtBulkViscConst, hydro_params::DensityContrastLimit, hydro_params::DensityIndependentSphOn, HydroParams, param_get_double(), param_get_int(), and ThisTask.
Referenced by read_parameter_file().