Skip to content
Snippets Groups Projects
Commit 63658b1e authored by lhausamm's avatar lhausamm
Browse files

Update cooling with writeCoolingFlavor

parent 3a0d51c8
Branches
Tags
1 merge request!486Add chemistry in part
......@@ -38,11 +38,24 @@
#include "cooling_struct.h"
#include "error.h"
#include "hydro.h"
#include "io_properties.h"
#include "parser.h"
#include "part.h"
#include "physical_constants.h"
#include "units.h"
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeCoolingFlavor(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
io_write_attribute_s(
h_grpsph, "Cooling Model",
"const_du");
}
/**
* @brief Apply the cooling function to a particle.
*
......
......@@ -31,11 +31,24 @@
#include "const.h"
#include "error.h"
#include "hydro.h"
#include "io_properties.h"
#include "parser.h"
#include "part.h"
#include "physical_constants.h"
#include "units.h"
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeCoolingFlavor(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
io_write_attribute_s(
h_grpsph, "Cooling Model",
"const_lambda");
}
/**
* @brief Calculates du/dt in code units for a particle.
*
......
......@@ -50,7 +50,7 @@ void writeCoolingFlavor(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
io_write_attribute_s(
h_grpsph, "Chemistry Model",
h_grpsph, "Cooling Model",
"Grackle");
}
......
......@@ -31,11 +31,24 @@
/* Local includes. */
#include "error.h"
#include "hydro.h"
#include "io_properties.h"
#include "parser.h"
#include "part.h"
#include "physical_constants.h"
#include "units.h"
/**
* @brief Writes the current model of SPH to the file
* @param h_grpsph The HDF5 group in which to write
*/
void writeCoolingFlavor(hid_t h_grpsph) {
/* Viscosity and thermal conduction */
io_write_attribute_s(
h_grpsph, "Cooling Model",
"None");
}
/**
* @brief Apply the cooling function to a particle.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment