Skip to content
Snippets Groups Projects

Gear merge pressure floor and GEAR star formation

Merged Loic Hausammann requested to merge gear_merge_pressure_star into master

Here I am moving around some piece of the code in order to clean up a bit my work.

I am mostly removing the iact part of the star formation in order to put it inside the pressure floor.

Matthieu, I will assign this merge request to you once it is finished (should be done before tomorrow).

Edited by Matthieu Schaller

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
128
129 /**
130 * @brief Finishes the density calculation.
131 *
132 * @param p The particle to act upon
133 * @param cosmo The current cosmological model.
134 */
135 __attribute__((always_inline)) INLINE static void pressure_floor_end_density(
136 struct part* restrict p, const struct cosmology* cosmo) {
137
138 /* To finish the turbulence estimation we devide by the density */
139 p->pressure_floor_data.sigma2 /=
140 pow_dimension(p->h) * hydro_get_physical_density(p, cosmo);
141
142 /* Add the cosmological factor */
143 p->pressure_floor_data.sigma2 *= cosmo->a * cosmo->a;
  • Loic Hausammann added 2 commits

    added 2 commits

    • 23feffb2 - GEAR Pressure floor: fix sigma2 and add units in description
    • fa8c771d - Pressure floor: split get_pressure into comoving + physical

    Compare with previous version

  • Loic Hausammann added 2 commits

    added 2 commits

    Compare with previous version

  • I found a bug in PU (the physical soundspeed was wrong), I have updated it.

  • I am done with the modifications

  • thanks. I'll have a look later today.

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading