Gear star formation split
Here is my implementation of partial star formation. In GEAR, we wish to have a high resolution for the stars, therefore during the star formation, we transform a small part of a gas particle into a star particle.
Here are the key points for the merge request:
- at the beginning of the simulation, I am computing the average mass of the gas particles and use it as the mass of my future particles.
- We use two different functions for the star formation. Either we create a new spart or if the gas particle does not have enough mass we convert it to a spart.
- For creating a new spart, we need a new gpart (A simple copy / paste of the spart functions is enough).
- The code was crashing due to a small mistake in
space.c
. The functionspace_allocate_extra
was using the wrong number ofgparts
. - The same function was not updating the
gpart
pointers in the black holes when a new gpart is created.
I have been able to do the IsolatedGalaxy and SmallCosmologicalVolume simulations until the end with the new way of SF and will test it more later with my comparison between SWIFT and GEAR.
Merge request reports
Activity
assigned to @matthieu
added 35 commits
-
cce6423c...7761e32a - 27 commits from branch
master
- 3441f2b1 - GEAR: implement computation of stats on part
- 42901820 - GEAR: implemented particle splitting for SF
- 3733e413 - Partial star formation is working
- 9274dc29 - Update the gitignore and small fixes
- a12fa1d5 - format
- 5e628474 - Add missing functions
- a639f4d2 - Correct number of I/O fields
- 0723bfd8 - Fix rebase
Toggle commit list-
cce6423c...7761e32a - 27 commits from branch
Here they do not include the correct file: https://gitlab.cosma.dur.ac.uk/swift/swiftsim/blob/master/src/star_formation_logger.h#L34 and there is more error to it. I guess that the QLA team is still working on it and there is no need to do more than adding the new functions.
Edited by Loic HausammannA missing parenthesis increases quickly the number of errors. It should be fine now.
Edited by Loic Hausammannadded 10 commits
-
33fa0ec4 - 1 commit from branch
master
- 73389bd5 - GEAR: implement computation of stats on part
- 54d2fad5 - GEAR: implemented particle splitting for SF
- f29fd5af - Partial star formation is working
- 73fee4d4 - Update the gitignore and small fixes
- 3fe33618 - format
- a01ed69d - Add missing functions
- eea4956a - Correct number of I/O fields
- f219ea57 - Fix rebase
- 62061e85 - Small fix
Toggle commit list-
33fa0ec4 - 1 commit from branch
- Resolved by Matthieu Schaller
- Resolved by Loic Hausammann
- Resolved by Loic Hausammann
- Resolved by Loic Hausammann