Support feedback from resolved Type II supernovae#434
Open
hsinhaoHHuang wants to merge 20 commits intogamer-project:mainfrom
Open
Support feedback from resolved Type II supernovae#434hsinhaoHHuang wants to merge 20 commits intogamer-project:mainfrom
hsinhaoHHuang wants to merge 20 commits intogamer-project:mainfrom
Conversation
… FB_ResolvedSNeII
Contributor
Author
|
I have updated the non-local feedback part, and this PR is ready for review again. |
Contributor
Author
|
I have updated the feedback for leaf patches on non-MAX_LEVEL, and this PR is ready for review again. |
13 tasks
Conflicts: src/Output/Output_DumpData_Total_HDF5.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Changes
Generalize the feedback to the leaf patches on levels < MAX_LEVEL
FB_LEVELtoFB_MIN_LEVELto specify the minimum AMR level to apply feedback.Add feedback routine
FB_Resolved_SNeII()and its runtime optionsFB_RESOLVED_SNEII*inInput__ParameterFB_RESOLVED_SNEII_N_PER_MASS<=1).FB_RESOLVED_SNEII_N_PER_MASS).FB_RESOLVED_SNEII_DELAY_TIME). The explosion time is then decided during the star formation.FB_RESOLVED_SNEII_EJECT_ENGY,FB_RESOLVED_SNEII_EJECT_MASS,FB_RESOLVED_SNEII_EJECT_METAL) into surrounding fluid cells where the particle is located.FB_RESOLVED_SNEII_MIN_M_GAS. The feedback of mass and energy will be distributed uniformly in an inscribed sphere with the decided diameter.FB_RESOLVED_SNEII_RECORDto record the information of the feedback event.--feedback=trueand--par_attribute_flt=1(to have theParSNIITimeattribute) forconfigure.pyduring compilation.Add a new test problem,
Hydro/SNFeedbackBlastWaveHydro/BlastWave.Add SNeII feedback in
Hydro/AGORA_IsolatedGalaxyResults
Results of the SNeII feedback in
Hydro/SNFeedbackBlastWave1.0e-22 g/cm^310 K3.5 pc100 Msun12.95 Msun17 km/salong the diagonal line of the box10 Myr1.0e51 erg15 Msun3 Msun10^51 ergatt = 10 Myr3 Msunatt = 10 Myrwhile the particle metal mass decreases by3 Msunand the particle total mass decreases by15 Msun.Hydro/BlastWavetest problem (with the modified input files attached inexample/test_problem/Hydro/SNFeedbackBlastWave/ForBlastWave/) --> very similarbackground$\rho=10^{-24}\ \mathrm{g/cm^3}$ , $dh=3.5\ \mathrm{pc}$ , gas mass per cell = $0.63\ M_\odot$ ,target minimum gas mass = $10\ M_\odot$ , actual enclosed mass = $12\ M_\odot$
background$\rho=10^{-24}\ \mathrm{g/cm^3}$ , $dh=3.5\ \mathrm{pc}$ , gas mass per cell = $0.63\ M_\odot$ ,target minimum gas mass = $1000\ M_\odot$ , actual enclosed mass = $246\ M_\odot$ (limited by FB_GHOST_SIZE = 8)


background$\rho=10^{-24}\ \mathrm{g/cm^3}$ , $dh=3.5\ \mathrm{pc}$ , gas mass per cell = $0.63\ M_\odot$ , target minimum gas mass = $10\ M_\odot$ , actual enclosed mass = $5.1\ M_\odot$ . When the particle is too close to the AMR coarse-fine boundary, the feedback region will be limited such that no feedback will be applied at the coarse level.


FB_MIN_LEVEL = 3,MAX_LEVEL = 4. The feedback can work as usual on the leaf-patches of Lv 3.FB_MIN_LEVEL = 3,MAX_LEVEL = 4. The feedback will not cross the AMR coarse-fine boundary and is only applied to the leaf patches.Results of the SNeII feedback in
Hydro/AGORA_IsolatedGalaxySF_CREATE_STAR_MIN_STAR_MASS=3.2e4 MsunFB_RESOLVED_SNEII_N_PER_MASS=1.0e-5 per MsunFB_RESOLVED_SNEII_DELAY_TIME=100.0 Myr--> Note that the parameters for SNeII feedback are not physical and are for testing only.