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

an EOS interface with NSE #1405

Merged
merged 23 commits into from
Dec 20, 2023
Merged

Conversation

zingale
Copy link
Member

@zingale zingale commented Dec 7, 2023

solving for T(e) or T(p) in NSE is trickier than our standard interface because Abar and Zbar are
also a function of rho, T, Ye through the NSE table. This does a self-consistent inversion of the
EOS together with the NSE table.

@zingale zingale changed the title an EOS interface with NSE [WIP] an EOS interface with NSE Dec 7, 2023
@zingale
Copy link
Member Author

zingale commented Dec 13, 2023

this seems to work really well now, but needs a bit of cleaning

@zingale
Copy link
Member Author

zingale commented Dec 14, 2023

this is ready, but depends on #1407 so that should be reviewed / merged first

@zingale zingale changed the title [WIP] an EOS interface with NSE an EOS interface with NSE Dec 18, 2023

constexpr bool skip_X_fill{true};
nse_interp(nse_state, skip_X_fill);
Real abar_old = nse_state.abar;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This abar_old looks unncessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's needed for the EOS call

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean why can't we just do nse_state.abar in line 71

Copy link
Member Author

Choose a reason for hiding this comment

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

oh. we could. I didn't think it mattered much.

unit_test/test_nse_interp/nse_cell.H Outdated Show resolved Hide resolved
unit_test/test_nse_interp/nse_cell.H Outdated Show resolved Hide resolved
@zingale zingale merged commit 7de2124 into AMReX-Astro:development Dec 20, 2023
25 of 26 checks passed
@zingale zingale deleted the new_nse_eos branch December 20, 2023 19:29
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