Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
028b731
update Makefile
ShuangShuang0411 Jul 21, 2021
022809b
first try of density truncation
ShuangShuang0411 Jul 21, 2021
a3b4ac9
truncate gas density
ShuangShuang0411 Jul 21, 2021
e64509c
truncate gas density
ShuangShuang0411 Jul 21, 2021
ff26a77
truncate total density
ShuangShuang0411 Jul 22, 2021
7bffd8c
successful total truncation
ShuangShuang0411 Jul 22, 2021
f52907d
truncation of two clusters
ShuangShuang0411 Jul 22, 2021
ac5573f
Merge remote-tracking branch 'fish-upstream/cool-core-center' into co…
ShuangShuang0411 Jul 24, 2021
46860b7
test cluster center tracing
ShuangShuang0411 Jul 25, 2021
8181268
single cluster test with truncation
ShuangShuang0411 Jul 27, 2021
3c97ab3
truncation adjustion 3.0
ShuangShuang0411 Jul 31, 2021
96a7ff3
truncation 3.1
ShuangShuang0411 Jul 31, 2021
57fa042
truncation adjustion 3.0
ShuangShuang0411 Jul 31, 2021
c3975c8
try again
ShuangShuang0411 Jul 31, 2021
5783055
final truncation
ShuangShuang0411 Aug 3, 2021
8b3611e
conflict fixed
ShuangShuang0411 Aug 5, 2021
b88e683
Merge remote-tracking branch 'fish-upstream/cool-core' into cool-core
ShuangShuang0411 Aug 6, 2021
f79b494
set environment to test Perseus cluster
ShuangShuang0411 Aug 9, 2021
1e4b801
FINAL set environment to test Perseus cluster
ShuangShuang0411 Aug 10, 2021
d14498e
cherry-pick 5ee5eae
ShuangShuang0411 Aug 9, 2021
e71dbde
set accretion rate as a global variable and compile successfully
ShuangShuang0411 Aug 10, 2021
a151af5
Modify Flu_ResetByUser_Bondi.cpp
ShuangShuang0411 Aug 11, 2021
12c2d01
Modify units conversion
ShuangShuang0411 Aug 11, 2021
e687e58
Modify Flu_ResetByUser_Bondi.cpp again
ShuangShuang0411 Aug 11, 2021
5a19d3f
Change functions' name / Record the accretion variables
ShuangShuang0411 Aug 12, 2021
1008f84
Merge "cool-core" to update the time interval
ShuangShuang0411 Aug 12, 2021
a216645
update the time interval
ShuangShuang0411 Aug 12, 2021
7b3e380
debug; the accretion part done
ShuangShuang0411 Aug 16, 2021
487f602
jet feedback with fixed orientation
ShuangShuang0411 Aug 23, 2021
b0b09a2
modify the momentum injection
ShuangShuang0411 Aug 25, 2021
bb98d52
Feedback recipe 2 test
ShuangShuang0411 Sep 30, 2021
6f5ab3f
feedback recipe 2 test-2 (add boosting factor/resolution)
ShuangShuang0411 Oct 2, 2021
68066a5
test uniform density
ShuangShuang0411 Oct 15, 2021
c9d8924
feedback Recipe 3 test
ShuangShuang0411 Apr 25, 2022
15e7635
update Record__Center parameters (half)
ShuangShuang0411 Apr 25, 2022
6f6d194
update Record__Center parameters (total) for R2&3
ShuangShuang0411 Apr 28, 2022
a9fbdae
pull fish-upstream/cool-core for Feedback2 2022.06.30
ShuangShuang0411 Jun 30, 2022
320789f
Further debug to make the update feedback work
ShuangShuang0411 Jun 30, 2022
ec0cfd6
Organize the 3 Recipes in one branch: cool-core-Feedback2
ShuangShuang0411 Jul 2, 2022
120cc32
Modify Recipe 3
ShuangShuang0411 Jul 21, 2022
ca1dd60
Modify the calculation of injection error / temporarily fix the BH
ShuangShuang0411 Aug 13, 2022
19dafc6
Add a user-defined refinement criterion onto jet region
ShuangShuang0411 Aug 31, 2022
e81f644
User-defined refinement criterion: Debug
ShuangShuang0411 Sep 7, 2022
2c8bb0c
Pull fish-upstream cool-core 2022.09.07
ShuangShuang0411 Sep 7, 2022
3fe5757
Calculate the exact volume of jet cylinder and normalization
ShuangShuang0411 Oct 5, 2022
8e8b34e
Modify the user-defined refinement criterion
ShuangShuang0411 Oct 11, 2022
f5662bf
Organize and clean up the code of AGN feedback
ShuangShuang0411 Oct 11, 2022
60c8ad4
Minor modification for AGN feedback resolution and Perseus cluster
ShuangShuang0411 Oct 18, 2022
5a29e30
Test moving cluster / OpenMP parallelization
ShuangShuang0411 Nov 14, 2022
c7acbe3
MPI parallelization
ShuangShuang0411 Dec 2, 2022
a5cb16d
Pull fish-upstream cool-core 2022.12.2 and add Emag
ShuangShuang0411 Dec 2, 2022
60ab3fa
Add the jet direction table
ShuangShuang0411 Jan 2, 2023
b278088
Jet direction: angular momentum direction
ShuangShuang0411 Jan 11, 2023
4feefe4
Pull fish-upstream cool-core 2023.1.14 and change Flu_ResetByUser_Fun…
ShuangShuang0411 Jan 14, 2023
339f0fe
Record individual jet
ShuangShuang0411 Jan 22, 2023
e3904e4
Merge branch 'cool-core' of https://github.com/hyschive/gamer-fork in…
ShuangShuang0411 Jan 22, 2023
fece5da
Find the potential minimum and reposition the BH
ShuangShuang0411 Jan 29, 2023
1795cf3
Pull fish-upstream cool-core 2023.1.30
ShuangShuang0411 Jan 29, 2023
96ba535
Initialize the BH position and velocity properly
ShuangShuang0411 Feb 15, 2023
90e0c50
Add the BH merger criteria
ShuangShuang0411 Feb 25, 2023
599dc69
Add paramters for adjusting BH position and velocity + Modify BH merg…
ShuangShuang0411 Apr 1, 2023
e80b2a2
Add adjustment parameters into Input__TestProb
ShuangShuang0411 Apr 1, 2023
2993c6d
Merge branch 'cool-core' of https://github.com/hyschive/gamer-fork in…
ShuangShuang0411 Apr 1, 2023
aca1b07
Add the ExactCooling SourceTerm (haven't tested)
ShuangShuang0411 Apr 11, 2023
e5984af
Add the ExactCooling SourceTerm (haven't tested) 2
ShuangShuang0411 Apr 11, 2023
da01e23
Add the ExactCooling TestProblem and test the ExactCooling SourceTerm
ShuangShuang0411 May 2, 2023
f0aea0b
Pull fish-upstream cool-core 2023.5.3
ShuangShuang0411 May 2, 2023
f0a82fb
Calculate the cooling error with a build-in function in ExactCooling …
ShuangShuang0411 May 25, 2023
94e521e
Change lambda array type from real to double, minor update
ShuangShuang0411 May 25, 2023
e615a0a
Update the cooling parameters of ExactCooling and ClusterMerger test …
ShuangShuang0411 May 25, 2023
7e90059
Add TCOOL field to store the cooling time and use it to limit the tim…
ShuangShuang0411 Jun 11, 2023
e29ceae
initializes h_Src* arrays in Src_Init_ExactCooling(), and initializes…
ShuangShuang0411 Jun 11, 2023
7c8c088
Add dt source file
ShuangShuang0411 Jun 11, 2023
5bd4de9
Clean the ExactCooling source term code
ShuangShuang0411 Jun 12, 2023
bc36f70
Clean the ExactCooling test problem code
ShuangShuang0411 Jun 12, 2023
4b1b3d2
Update the heap array allocation and clean the ClusterMerger test pro…
ShuangShuang0411 Jun 12, 2023
ab278e3
Debug and update code
ShuangShuang0411 Jun 18, 2023
ea8e450
Add JetDirection_case parameter to choose the jet direction
ShuangShuang0411 Jun 18, 2023
826f792
Pull fish-upstream cool-core 2023.7.3
ShuangShuang0411 Jul 3, 2023
1fd5a23
Merge branch 'hyschive:main' into master
ChunYen-Chen Aug 12, 2023
4695dbf
Merge branch 'hyschive:main' into master
ChunYen-Chen Aug 16, 2023
17acfa3
Merge branch 'hyschive:main' into master
ChunYen-Chen Aug 17, 2023
4db24a7
Merge branch 'main' of https://github.com/hyschive/gamer-fork
ChunYen-Chen Aug 29, 2023
8086cd8
Add OPT__SORT_PATCH_BY_LBIDX / Modify jet table initialization
ShuangShuang0411 Aug 30, 2023
9a81de1
Pull fish-upstream cool-core 2023.8.30
ShuangShuang0411 Aug 30, 2023
b36af85
Merge branch 'hyschive:main' into master
ChunYen-Chen Aug 31, 2023
93e1e5b
Merge branch 'hyschive:main' into master
ChunYen-Chen Sep 4, 2023
0df91df
Change the default AUTO_REDUCE_DT_FACTOR to 1.0
ChunYen-Chen Sep 9, 2023
27eef4b
Add more unphysical checks for MHM prediction.
ChunYen-Chen Sep 9, 2023
ede4f59
Update Flu_ResetByUser_ClusterMerger.cpp to support resetting magneti…
ShuangShuang0411 Sep 9, 2023
53ce63b
Minor: print temp floor in ExactCooling source term
ShuangShuang0411 Sep 9, 2023
6cdda1d
Pull fish-upstream 2023.9.9
ShuangShuang0411 Sep 9, 2023
9b8e4d2
Bug fix. Minor update.
ChunYen-Chen Sep 9, 2023
9fbeb00
Merge pull request #235 from ChunYen-Chen/extra_fix
hyschive Sep 9, 2023
ddc6e9b
Add MHM_CHECK_PREDICT
hyschive Sep 9, 2023
4249aa5
Solve the issue of extremely high temperature and minor updates
ShuangShuang0411 Sep 12, 2023
a5d2c5e
Merge branch 'main' of https://github.com/hyschive/gamer-fork into co…
ShuangShuang0411 Sep 12, 2023
5b0e81a
Minor update
ShuangShuang0411 Sep 27, 2023
6278721
Minor
ShuangShuang0411 Oct 1, 2023
36cf89a
Add subcycling for ExactCooling and update Eint calculation
ShuangShuang0411 Oct 25, 2023
50907ce
Minor updates
ShuangShuang0411 Oct 25, 2023
5c078e7
Fix the bugs in potential minimum calculation
ShuangShuang0411 Oct 25, 2023
7b55c1b
Minor updates on jet feedback
ShuangShuang0411 Oct 25, 2023
ff4b436
For testing purposes
ShuangShuang0411 Oct 25, 2023
6403024
Add a runtime parameter fixBH
ShuangShuang0411 Oct 26, 2023
a51dab5
Record gas mass injection error in Record__Center
ShuangShuang0411 Nov 1, 2023
7cd7f20
Fix the calculation of the exact volume of jet cylinder
ShuangShuang0411 Nov 5, 2023
9cee0f8
Cold accretion
ShuangShuang0411 Dec 7, 2023
dee01f3
Remove subcycling for ExactCooling source term
ShuangShuang0411 Dec 26, 2023
d395a06
Label particles for different clusters + update BH relocation
ShuangShuang0411 Dec 28, 2023
98b587b
Turn off the smaller jet entirely when 2 jets overlap
ShuangShuang0411 Dec 29, 2023
e05cddf
Refine 100 kpc; find pote min in 40 kpc; clean the code.
ShuangShuang0411 Jan 20, 2024
ab0ebe8
Add AGN_feedback parameter to turn on AGN feedback
ShuangShuang0411 Jan 24, 2024
69e8a4a
Add AGN_feedback parameter to turn on AGN feedback (2)
ShuangShuang0411 Jan 24, 2024
75a914b
Record Merger_Coll_NumHalos in BH_variable.bin and minor updates
ShuangShuang0411 Feb 2, 2024
e6afd39
Clean up the code
ShuangShuang0411 Feb 4, 2024
37ea4d6
Add Dual Energy
ShuangShuang0411 Apr 1, 2024
601abac
Minor updates: dual energy
ShuangShuang0411 Apr 12, 2024
d8a495d
Parallelize the potential minimum calculation
Jul 5, 2024
b21bd7b
Minor update: final check
Jul 9, 2024
436ef86
minor update: ClusterMerger/README
Jul 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/test_problem/ELBDM/ExtPot/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/AcousticWave/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ DT__FLUID_INIT -1.0 # dt criterion: DT__FLUID at the first
OPT__DT_USER 0 # dt criterion: user-defined -> edit "Mis_GetTimeStep_UserCriteria.cpp" [0]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/BlastWave/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/Bondi/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 2 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/CDM_LSS/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/CMZ/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 0 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.5 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/Caustic/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down
22 changes: 22 additions & 0 deletions example/test_problem/Hydro/ClusterMerger/Input__Flag_User
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Level User-defined Criteria
0 6.0
1 6.0
2 6.0
3 6.0
4 6.0
5 6.0
6 6.0
7 6.0
8 6.0
9 6.0
10 6.0
11 6.0
12 6.0
13 6.0
14 6.0
15 6.0
16 6.0
17 6.0
18 6.0
19 6.0
20 6.0
23 changes: 19 additions & 4 deletions example/test_problem/Hydro/ClusterMerger/Input__Parameter
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ OPT__DT_USER 0 # dt criterion: user-defined -> edit "
OPT__DT_LEVEL 3 # dt at different AMR levels (1=shared, 2=differ by two, 3=flexible) [3]
OPT__RECORD_DT 1 # record info of the dt determination [1]
AUTO_REDUCE_DT 1 # reduce dt automatically when the program fails (for OPT__DT_LEVEL==3 only) [1]
AUTO_REDUCE_DT_FACTOR 0.8 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [0.8]
AUTO_REDUCE_DT_FACTOR 1.0 # reduce dt by a factor of AUTO_REDUCE_DT_FACTOR when the program fails [1.0]
AUTO_REDUCE_DT_FACTOR_MIN 0.1 # minimum allowed AUTO_REDUCE_DT_FACTOR after consecutive failures [0.1]
AUTO_REDUCE_MINMOD_FACTOR 0.8 # reduce MINMOD_COEFF by this factor together with AUTO_REDUCE_DT (1.0=off) [0.8] ##HYDRO ONLY##
AUTO_REDUCE_MINMOD_MIN 1.0e-2 # minimum allowed MINMOD_COEFF after consecutive failures [1.0e-2] ##HYDRO ONLY##
Expand Down Expand Up @@ -124,9 +124,20 @@ OPT__MINIMIZE_MPI_BARRIER 0 # minimize MPI barriers to improve loa
# (STORE_POT_GHOST, PAR_IMPROVE_ACC=1, OPT__TIMING_BARRIER=0 only; recommend AUTO_REDUCE_DT=0)


# source terms
SRC_DELEPTONIZATION 0 # deleptonization (for simulations of stellar core collapse) [0] ##HYDRO ONLY##
SRC_EXACTCOOLING 0 # exact cooling scheme from Gaspari (2009) [0] ##HYDRO ONLY##
SRC_EC_TEF_N 6001 # number of points for lambda(T) sampling in LOG
SRC_EC_SUBCYCLING 1 # perform subcycling when the cooling time step is small [0=off, 1=on]
SRC_EC_DTCOEF 0.5 # the coefficient of the cooling time step
SRC_USER 0 # user-defined source terms -> edit "Src_User.cpp" [0]
SRC_GPU_NPGROUP -1 # number of patch groups sent into the CPU/GPU source-term solver (<=0=auto) [-1]


# fluid solver in HYDRO (MODEL==HYDRO only)
GAMMA 1.666666666667 # ratio of specific heats (i.e., adiabatic index) [5.0/3.0]
MOLECULAR_WEIGHT 0.59242761692650336 # mean molecular weight -> currently only for post-processing [0.6]
MU_NORM 1.6737352238051868e-24 # m_H value, fully consistent with yt
MINMOD_COEFF 2.0 # coefficient of the generalized MinMod limiter (1.0~2.0) [1.5]
MINMOD_MAX_ITER 0 # maximum number of iterations to reduce MINMOD_COEFF when data reconstruction fails (0=off) [0]
OPT__LR_LIMITER 1 # slope limiter of data reconstruction in the MHM/MHM_RP/CTU schemes:
Expand All @@ -146,9 +157,12 @@ OPT__FIXUP_RESTRICT 1 # correct coarse grids by averaging th
OPT__CORR_AFTER_ALL_SYNC -1 # apply various corrections after all levels are synchronized (see "Flu_CorrAfterAllSync"):
# (-1=auto, 0=off, 1=every step, 2=before dump) [-1]
OPT__NORMALIZE_PASSIVE 1 # ensure "sum(passive_scalar_density) == gas_density" [1]
MIN_DENS 1.0e-07 # minimum mass density (must >= 0.0) [0.0] ##HYDRO, MHD, and ELBDM ONLY##
MIN_PRES 1.0e-09 # minimum pressure (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##
MIN_EINT 1.0e-09 # minimum internal energy (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##
OPT__RESET_FLUID 0 # reset fluid variables after each update -> edit "Flu_ResetByUser.cpp" [0]
OPT__RESET_FLUID_INIT 0 # reset fluid variables during initialization (<0=auto -> OPT__RESET_FLUID, 0=off, 1=on) [-1]
MIN_DENS 0.0 # minimum mass density (must >= 0.0) [0.0] ##HYDRO, MHD, and ELBDM ONLY##
MIN_PRES 0.0 # minimum pressure (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##
MIN_EINT 0.0 # minimum internal energy (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##
MIN_TEMP 1.0e4 # minimum temperature in K (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##
MIN_ENTR 0.0 # minimum entropy (must >= 0.0) [0.0] ##HYDRO and MHD ONLY##


Expand Down Expand Up @@ -228,6 +242,7 @@ OPT__MANUAL_CONTROL 1 # support manually dump data or stop r
# (by generating the file DUMP_GAMER_DUMP or STOP_GAMER_STOP) [1]
OPT__RECORD_USER 0 # record the user-specified info -> edit "Aux_RecordUser.cpp" [0]
OPT__OPTIMIZE_AGGRESSIVE 0 # apply aggressive optimizations (experimental) [0]
OPT__SORT_PATCH_BY_LBIDX 1 # sort patches to improve bitwise reproducibility [SERIAL:0, LOAD_BALACNE:1]


# checks
Expand Down
35 changes: 35 additions & 0 deletions example/test_problem/Hydro/ClusterMerger/Input__TestProb
Original file line number Diff line number Diff line change
@@ -1,33 +1,68 @@
# problem-specific runtime parameters
Merger_Coll_NumHalos 2 # number of halos
AGN_feedback 0 # turn on/off (1/0) AGN feedback

# parameters for cluster 1
Merger_File_Prof1 profile1_gamer.h5 # profile table of cluster 1
Merger_File_Par1 1to3_b0.0_gamerp_1.h5 # particle file of cluster 1
Unit_R1 1.0 # the unit of length in cluster 1's IC file (in cgs)
Unit_D1 1.0 # the unit of density in cluster 1's IC file (in cgs)
Unit_P1 1.0 # the unit of pressure in cluster 1's IC file (in cgs)
Merger_Coll_PosX1 6000.0 # X-center of cluster 1 in kpc
Merger_Coll_PosY1 7500.0 # Y-center of cluster 1 in kpc
Merger_Coll_VelX1 375.0 # X-velocity of cluster 1 in km/s
Merger_Coll_VelY1 0.0 # Y-velocity of cluster 1 in km/s
Merger_Coll_IsGas1 1 # If cluster 1 should have gas and not have DM only
Bondi_MassBH1 3.4e8 # black hole mass (in Msun)
Mdot_BH1 0.0 # accretion rate of cluster 1 in Msun/yr
Jet_HalfHeight1 0.70 # jet 1: half height of the cylinder-shape jet source (in kpc)
Jet_Radius1 0.35 # jet 1: radius of the cylinder-shape jet source (in kpc)

# parameters for cluster 2
Merger_File_Prof2 profile2_gamer.h5 # profile table of cluster 2
Merger_File_Par2 1to3_b0.0_gamerp_2.h5 # particle file of cluster 2
Unit_R2 1.0 # the unit of length in cluster 2's IC file (in cgs)
Unit_D2 1.0 # the unit of density in cluster 2's IC file (in cgs)
Unit_P2 1.0 # the unit of pressure in cluster 2's IC file (in cgs)
Merger_Coll_PosX2 9000.0 # X-center of cluster 2 in kpc
Merger_Coll_PosY2 7500.0 # Y-center of cluster 2 in kpc
Merger_Coll_VelX2 -1125.0000000000002 # X-velocity of cluster 2 in km/s
Merger_Coll_VelY2 0.0 # Y-velocity of cluster 2 in km/s
Merger_Coll_IsGas2 1 # If cluster 2 should have gas and not have DM only
Bondi_MassBH2 3.4e8 # black hole mass (in Msun)
Mdot_BH2 0.0 # accretion rate of cluster 2 in Msun/yr
Jet_HalfHeight2 0.70 # jet 2: half height of the cylinder-shape jet source (in kpc)
Jet_Radius2 0.35 # jet 2: radius of the cylinder-shape jet source (in kpc)

# parameters for cluster 3 (disabled for this example)
Merger_File_Prof3 none # profile table of cluster 3
Merger_File_Par3 none # particle file of cluster 3
Unit_R3 1.0 # the unit of length in cluster 3's IC file (in cgs)
Unit_D3 1.0 # the unit of density in cluster 3's IC file (in cgs)
Unit_P3 1.0 # the unit of pressure in cluster 3's IC file (in cgs)
Merger_Coll_PosX3 0 # X-center of cluster 3 in kpc
Merger_Coll_PosY3 0.0 # Y-center of cluster 3 in kpc
Merger_Coll_VelX3 0.0 # X-velocity of cluster 3 in km/s
Merger_Coll_VelY3 0.0 # Y-velocity of cluster 3 in km/s
Merger_Coll_IsGas3 0 # If cluster 3 should have gas and not have DM only
Bondi_MassBH3 3.4e8 # black hole mass (in Msun)
Mdot_BH3 0.0 # accretion rate of cluster 3 in Msun/yr
Jet_HalfHeight3 0.70 # jet 3: half height of the cylinder-shape jet source (in kpc)
Jet_Radius3 0.35 # jet 3: radius of the cylinder-shape jet source (in kpc)

# parameters of AGN jet feedback
Accretion_Mode 1 # 1: hot mode; 2: code mode; 3: combine (hot + cold)
eta 1.0 # mass loading factor in jet feedback
eps_f 0.001 # the radiative efficiency in jet feedback
eps_m 0.0 # the fraction of total energy that goes into the thermal energy in jet feedback
R_acc 4.0 # accretion radius: compute the accretion rate (in kpc)
R_dep 4.0 # radius to deplete the accreted gas (in kpc)
JetDirection_case 1 # Methods for choosing the jet direction: 1. Fixed at x-axis; 2. Import from table (generate JetDirection.txt); 3. Align with angular momentum

# other parameters
Merger_Coll_UseMetals 0 # look for a metal field in the profile files [1]
Merger_Coll_LabelCenter 1 # label the particle closest to the center of each cluster [1]
AdjustBHPos 1 # (true/false) --> Adjust the BH position
AdjustBHVel 0 # (true/false) --> Adjust the BH velocity
AdjustPeriod 10 # the time interval of adjustment (in Myr)
fixBH 0 # fix the BH at the simulation box center and set its velocity to be zero (1 cluster only)
6 changes: 6 additions & 0 deletions example/test_problem/Hydro/ClusterMerger/README
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Default setup:
2. Default resolution ~ 15 kpc (MAX_LEVEL = 3)


AGN feedback:
========================================
1. Enable OPT__RESET_FLUID in Input__Parameter and "AGN_feedback" in Input__TestProb.
2. To refine regions around the SMBHs, enable OPT__FLAG_USER and set MAX_LEVEL accordingly.


Note:
========================================
1. Mimic the merging cluster simulation setup of Flash provided by John ZuHone
Expand Down
2 changes: 1 addition & 1 deletion example/test_problem/Hydro/ClusterMerger/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ rm -f Record__Note Record__Timing Record__TimeStep Record__PatchCount Record__Du
PowerSpec_* Particle_* nohup.out Record__Performance Record__TimingMPI_* \
Record__ParticleCount Record__User Patch_* Record__NCorrUnphy FailedPatchGroup* *.pyc Record__LoadBalance

rm -f Record__Center
rm -f Record__Center BH_variable.bin
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@


# load data
ds_gamer = yt.load( "../Data_000008" )
ds_gamer = yt.load( "../Data_000000" )
#ds_gamer = yt.load( "gamer/Data_000100" )
#ds_flash = yt.load( "flash/fiducial_1to1_b0_hdf5_plt_cnt_0100" )


# create a sphere on the max density location
sp_gamer = ds_gamer.sphere( "max", (2.5e3, "kpc") )
sp_gamer = ds_gamer.sphere( "max", (1.0e4, "kpc") )
#sp_flash = ds_flash.sphere( "max", (2.5e3, "kpc") )


Expand Down Expand Up @@ -144,4 +144,4 @@

# show/save figure
plt.savefig( FileOut, bbox_inches='tight', pad_inches=0.05 )
plt.show()
#plt.show()
Loading