-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Genchiaki merge2 #143
base: main
Are you sure you want to change the base?
Genchiaki merge2 #143
Conversation
…mmit) to initialize_rates.c
@@ -594,60 +864,298 @@ cdef class chemistry_data: | |||
cdef double[:] memview = <double[:self.NumberOfTemperatureBins]>(<double*> self.rates.k58) | |||
return np.asarray(memview) | |||
|
|||
property h2dust: | |||
property k125: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did the return statement get lost here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the comment.
In addition to this bug, there are still many conflicts in pygrackle. I'll fix them in the later commit.
Co-authored-by: Matthew Abruzzo <[email protected]>
@@ -0,0 +1,20 @@ | |||
#include <stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is automatically generated by the build system. Can you delete this file?
int radiative_transfer_H2II_diss; | ||
int radiative_transfer_HDI_diss; | ||
int radiative_transfer_metal_ion; | ||
int radiative_transfer_metal_diss; | ||
|
||
/* flag to H2 self-shielding in hydro code */ | ||
int radiative_transfer_use_H2_shielding; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These parameters need defaults set in grackle_chemistry_data_fields.def
.
/* flags for alternative rate calculations */ | ||
int use_palla_salpeter_stahler_1983; //Alternative k13dd calculation scheme | ||
int use_stancil_lepp_dalgarno_1998; //Alternative calculation scheme for k50-k56 | ||
int use_omukai_gas_grain; //Alternative calculation scheme for gas_grain | ||
int use_uniform_grain_dist_gamma_isrf; //Alternative calculation scheme for gamma_isrf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These parameters need defaults set in grackle_chemistry_data_fields.def
.
This is a re-issue of PR #78 with many, but not all, upstream changes merged in. Gen has tested this extensively with results shown here.
Below is the original description from PR #78.
Metal/dust chemistry/cooling is included into grackle.
Each new feature can be switched on/off with corresponding parameters:
primordial_chemistry = 4
switch to solve chemistry for 3 extra primordial species (D-, HD+, and HeH+)
metal_chemistry
switch to solve metal chemistry
grain_growth
switch to solve the growth of dust grains
multi_metals
This switch enables to consider multiple metal sources (e.g. supernovae with different metal yields).
Now this version includes
metal_abundances
If
multi_metals = 0
, you can select a single metal/dust yield from the list above.dust_species
You can consider multiple grain species
dust_temperature_multi
switch to consider different dust temperature for each species if
dust_species > 0
dust_sublimation
switch to include dust sublimation
Also photochemistry of metal species is included
radiative_transfer_HDI_diss
photodissociation of HD molecules
radiative_transfer_metal_ion
photoionization of C and O atoms
radiative_transfer_metal_diss
photodissociation of CO, OH and H2O molecules