/******************************************************************************* * This file is part of SWIFT. * Copyright (c) 2025 Zachary Rey (zachary.rey@epfl.ch) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * ******************************************************************************/ #ifndef SWIFT_GEAR_STELLAR_WIND_H #define SWIFT_GEAR_STELLAR_WIND_H #include "hdf5_functions.h" #include "interpolation.h" #include "stellar_evolution_struct.h" void stellar_wind_read_yields(struct stellar_wind *sw, struct swift_params *params, const struct stellar_model *sm, const int restart); void stellar_wind_init(struct stellar_wind *sw, struct swift_params *params, const struct stellar_model *sm, const struct unit_system *us); void stellar_wind_read_yields_array( struct stellar_wind *sw, struct interpolation_2d *interp, const struct stellar_model *sm, hid_t group_id, const char *hdf5_dataset_name, hsize_t *previous_count, int interpolation_size_m, int interpolation_size_z); void stellar_wind_clean(struct stellar_wind *sw); double stellar_wind_get_ejected_energy(const struct stellar_wind *sw, float log_m, float log_z); double stellar_wind_get_ejected_energy_IMF(const struct stellar_wind *sw, float log_m, float log_z); double stellar_wind_get_ejected_mass(const struct stellar_wind *sw, float log_m, float log_z); double stellar_wind_get_ejected_mass_IMF(const struct stellar_wind *sw, float log_m, float log_z); #endif