Skip to content
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

New neutrino cooling routine #1389

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

khanakbhargava
Copy link
Collaborator

Adding rates using expressions from Kippenhahn & Weigert. Still working on adding derivatives.

dsnudz = 0.0e0_rt;

// constants
constexpr Real q_e = 4.8032e-10_rt; // Electron charge cm^3/2 g^1/2 s^-1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to get all of these from fundamental_constants.H


template <int do_derivatives>
AMREX_GPU_HOST_DEVICE AMREX_INLINE
void sneut5(const Real temp, const Real dens, const Real abar,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should give this a different name, and then we need to write a driver that wraps the different implmentations and let's us chose which to use, just like we do with screening

@khanakbhargava khanakbhargava marked this pull request as draft November 19, 2023 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants