Skip to content

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

Open
RonRahaman wants to merge 1 commit intoenrico-dev:masterfrom
RonRahaman:cell-density
Open

WIP: Update cell density based on cell-avg'ed temperature#135
RonRahaman wants to merge 1 commit intoenrico-dev:masterfrom
RonRahaman:cell-density

Conversation

@RonRahaman
Copy link
Copy Markdown
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.

1 participant