Skip to content

Commit

Permalink
Add thermo consistency test for CoverageDependentSurfPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
jongyoonbae authored and speth committed Mar 18, 2023
1 parent d7e2415 commit 2a8d54e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/data/consistency-cases.yaml
Expand Up @@ -277,6 +277,21 @@ ideal-edge:
- {T: 300, P: 1 atm}
- {T: 900, P: 20 atm}

coverage-dependent-surface:
setup:
file: copt_covdepsurf_example.yaml
phase: covdep
atol_v: 1e-7
states:
- {T: 700, P: 1 atm,
coverages: {Pt: 0.0, OC_Pt: 0.1, CO2_Pt: 0.5, C_Pt: 0.1, O_Pt: 0.3}}
- {T: 800, P: 5 atm,
coverages: {Pt: 0.12, OC_Pt: 0.07, CO2_Pt: 0.21, C_Pt: 0.17, O_Pt: 0.43}}
- {T: 300, P: 3 atm,
coverages: {Pt: 0.0, OC_Pt: 0.71, CO2_Pt: 0.08, C_Pt: 0.07, O_Pt: 0.14}}
- {T: 500, P: 10 atm,
coverages: {Pt: 0.0, OC_Pt: 0.0, CO2_Pt: 0.09, C_Pt: 0.81, O_Pt: 0.1}}

liquid-water-IAPWS95:
setup:
file: liquidvapor.yaml
Expand Down
6 changes: 6 additions & 0 deletions test/thermo/consistency.cpp
Expand Up @@ -734,6 +734,12 @@ INSTANTIATE_TEST_SUITE_P(IdealEdge, TestConsistency,
testing::ValuesIn(getStates("ideal-edge")))
);

INSTANTIATE_TEST_SUITE_P(CoverageDependentSurface, TestConsistency,
testing::Combine(
testing::Values(getSetup("coverage-dependent-surface")),
testing::ValuesIn(getStates("coverage-dependent-surface")))
);

INSTANTIATE_TEST_SUITE_P(LiquidWaterIapws95, TestConsistency,
testing::Combine(
testing::Values(getSetup("liquid-water-IAPWS95")),
Expand Down

0 comments on commit 2a8d54e

Please sign in to comment.