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

WIP: Update cell density based on cell-avg'ed temperature #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RonRahaman
Copy link
Collaborator

In this PR, the CoupledDriver computes cell density from cell-averaged temperature and the heat/fluid solver's pressure BC using the IAPWS correlation.

I'm marking this as "WIP" because, even though it's reasonable for Nek, it might not be appropriate for the heat surrogate. The SurrogateDriver solves for enthalpy H in fluid; then it computes T from pressure P and H using the IAPWS correlation. Seems odd to compute rho using a second correlation with T and P. Seems like it would be better to directly calculate rho based on T and H. But currently, the base class HeatFluids driver doesn't expose H to the CoupledDriver.

Given that we eventually want to do enthalpy coupling for all the head/fluids solvers, we might not want to merge this PR. I'm just creating the PR in case @emerzari and @hapfang want to use this for testing.

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.

None yet

1 participant