Skip to content

Conversation

@zhichen3
Copy link
Collaborator

Do some updates for the NSE_NET check. The primary change is to do all the rate filtering when writing out the rate index using pynucastro instead of doing it at runtime.

I made in_single_group() strictly to check for ONE group. Previously I optionally allow two groups: one for the light-isotope-group and the other one. If there are no neutron in the net, the definition for NSE configuration is even looser, where I only check for nuclei after si28 and see if they form a separate group for odd Z and even Z. I don't think this is correct because when we have configurations like this, this means that the integrated mass abundance will NOT be the same as the NSE abundance. In other words, if the network is intrinsically compatible with NSE, then this should not be needed.

zhichen3 and others added 30 commits December 23, 2025 19:37
@zhichen3 zhichen3 marked this pull request as ready for review January 27, 2026 17:14
@zhichen3
Copy link
Collaborator Author

This depends on networks regenerated after pynucastro/pynucastro#1244 is merged.

I'll open another pr with the regenerated networks and this change for testing.

@zhichen3 zhichen3 mentioned this pull request Jan 28, 2026
@zhichen3
Copy link
Collaborator Author

One of the "edge" case in make_table for NSE_NET changed. But I think its fine. Now in order to be considered as NSE, I now strictly allow ONE single group in the end. Previously I also optionally allowed the TWO groups -- LIG and non-LIG group.

constexpr int NumNSERatePairs = 22;

inline AMREX_GPU_MANAGED amrex::Array2D<std::int8_t, 1, NumNSERatePairs, 1, 10, amrex::Order::C> rate_pair_data {
1, 3, -1, 4, -1, -1, 3, 4, 1, 59, // fr: p_C12_to_N13_reaclib, rr: N13_to_p_C12_derived
Copy link
Member

Choose a reason for hiding this comment

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

we can eventually make this even easier to read by using the 1-based species keys here, like, like H1 instead of 1, C12 instead of 3, ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

indeed. I'll make a pr in pynucastro

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done in pynucastro/pynucastro#1254 and regenerated the nets

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