21#ifndef SWIFT_MINIMAL_HYDRO_PARAMETERS_H
22#define SWIFT_MINIMAL_HYDRO_PARAMETERS_H
51#define const_viscosity_beta 3.0f
57#define hydro_props_default_viscosity_alpha_feedback_reset 0.8f
63#define hydro_props_default_viscosity_alpha 0.8f
96 const struct unit_system* us,
97 const struct phys_const* phys_const,
129#if defined(HAVE_HDF5)
136static INLINE void viscosity_print_snapshot(
139 io_write_attribute_f(h_grpsph,
"Alpha viscosity", viscosity->
alpha);
156 const struct unit_system* us,
157 const struct phys_const* phys_const,
185static INLINE void diffusion_print_snapshot(
static INLINE void viscosity_print(const struct viscosity_global_data *viscosity)
Prints out the viscosity parameters at the start of a run.
#define hydro_props_default_viscosity_alpha
#define const_viscosity_beta
static INLINE void diffusion_print(const struct diffusion_global_data *diffusion)
Prints out the diffusion parameters at the start of a run.
static INLINE void diffusion_init_no_hydro(struct diffusion_global_data *diffusion)
Initialises a diffusion struct to sensible numbers for mocking purposes.
static INLINE void viscosity_init(struct swift_params *params, const struct unit_system *us, const struct phys_const *phys_const, struct viscosity_global_data *viscosity)
Initialises the viscosity parameters in the struct from the parameter file, or sets them to defaults.
static INLINE void diffusion_init(struct swift_params *params, const struct unit_system *us, const struct phys_const *phys_const, struct diffusion_global_data *diffusion)
Initialises the diffusion parameters in the struct from the parameter file, or sets them to defaults.
static INLINE void viscosity_init_no_hydro(struct viscosity_global_data *viscosity)
Initialises a viscosity struct to sensible numbers for mocking purposes.
#define INLINE
Defines inline.