Skip to content
Snippets Groups Projects
Commit 18b55ecb authored by Stefan Arridge's avatar Stefan Arridge
Browse files

Edited cooling function data in constant lambda cooling: lambda stored as a...

Edited cooling function data in constant lambda cooling: lambda stored as a double, removed min_temperature and min_energy_cgs
parent db00cce5
No related branches found
No related tags found
2 merge requests!272Added README files to examples,!271Stats include external potential energy
......@@ -35,24 +35,6 @@
#include "physical_constants.h"
#include "units.h"
/* Cooling Properties */
struct cooling_data {
/*! Cooling rate in cgs units. Defined by 'rho * du/dt = -lambda * n_H^2'*/
double lambda;
/*! Fraction of gas mass that is Hydrogen. Used to calculate n_H*/
float hydrogen_mass_abundance;
/* 'mu', used to convert min_temperature to min_internal energy*/
float mean_molecular_weight;
/*! Minimally allowed internal energy of the particles */
float min_energy;
/*! Constant multiplication factor for time-step criterion */
float cooling_tstep_mult;
};
/**
* @brief Calculates du/dt in code units for a particle.
......
......@@ -29,20 +29,16 @@
struct cooling_function_data {
/*! Cooling rate in cgs units. Defined by 'rho * du/dt = -lambda * n_H^2'*/
float lambda;
double lambda;
/*! Minimum temperature (in Kelvin) for all gas particles*/
float min_temperature;
/*! Fraction of gas mass that is Hydrogen. Used to calculate n_H*/
/*! Fraction of gas mass that is Hydrogen. Used to calculate n_H */
float hydrogen_mass_abundance;
/* 'mu', used to convert min_temperature to min_internal energy*/
/*! 'mu', used to convert min_temperature to min_internal energy */
float mean_molecular_weight;
/*! Minimally allowed internal energy of the particles */
/*! Minimally allowed internal energy of all the particles */
float min_energy;
float min_energy_cgs;
/*! Constant multiplication factor for time-step criterion */
float cooling_tstep_mult;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment