Skip to content

Commit

Permalink
Bugfix/byer3/internal energy der 3053 (#3105)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjb-ltk authored May 8, 2024
1 parent fec6ac2 commit b8cd271
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .integrated_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
baselines:
bucket: geosx
baseline: integratedTests/baseline_integratedTests-pr2917-4878-4907334
baseline: integratedTests/baseline_integratedTests-pr3105-4885-a1a85c1

allow_fail:
all: ''
Expand Down
5 changes: 5 additions & 0 deletions BASELINE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ This file is designed to track changes to the integrated test baselines.
Any developer who updates the baseline ID in the .integrated_tests.yaml file is expected to create an entry in this file with the pull request number, date, and their justification for rebaselining.
These notes should be in reverse-chronological order, and use the following time format: (YYYY-MM-DD).

PR #3105 (2024-05-08)
======================

Added missing derivative for temperature, hence small numerical diffs in thermal tests results and numeracal behavior


PR #2917 (2024-05-07)
======================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ MultiFluidBase::KernelWrapper::
{
integer const numPhase = numPhases();
integer const numComp = numComponents();
integer const numDOF = numComp + 2;
for( integer ip = 0; ip < numPhase; ++ip )
{

Expand All @@ -1059,7 +1060,7 @@ MultiFluidBase::KernelWrapper::
real64 const densInv = 1.0 / phaseMassDens.value[ip];
real64 const densInvSquared = densInv * densInv;
phaseInternalEnergy.value[ip] = phaseEnthalpy.value[ip] - pressure * densInv;
for( integer idof = 0; idof < numComp; ++idof )
for( integer idof = 0; idof < numDOF; ++idof )
{
phaseInternalEnergy.derivs[ip][idof] = phaseEnthalpy.derivs[ip][idof] + pressure * phaseMassDens.derivs[ip][idof] * densInvSquared;
}
Expand Down

0 comments on commit b8cd271

Please sign in to comment.