Skip to content

Commit

Permalink
Add consistency tests for MetalPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jun 10, 2022
1 parent 5d6b126 commit 99060c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/data/consistency-cases.yaml
Expand Up @@ -85,3 +85,17 @@ binary-solution-tabulated:
- {T: 300, P: 1 atm, X: {"Li[anode]": 1.0, "V[anode]": 0.0}}
- {T: 300, P: 5 atm, X: {"Li[anode]": 1.0e-10, "V[anode]": 1.0}}
- {T: 300, P: 1 atm, X: {"Li[anode]": 1.0, "V[anode]": 1.0e-10}}

electron-cloud:
setup:
file: thermo-models.yaml
phase: Metal
known-failures:
hk_eq_uk_plus_P_times_vk: partialMolarIntEnergies is not implemented
gk_eq_hk_minus_T_times_sk: partialMolarEntropies is not implemented
"[usv]_eq_sum_[usv]k_Xk": partialMolar IntEnergies/Entropies/Volumes not implemented

states:
- {T: 300, P: 1 atm}
- {T: 400, P: 1 atm}
- {T: 500, P: 10 atm}
6 changes: 6 additions & 0 deletions test/thermo/consistency.cpp
Expand Up @@ -189,4 +189,10 @@ INSTANTIATE_TEST_SUITE_P(BinarySolutionTabulated, TestConsistency,
testing::ValuesIn(getStates("binary-solution-tabulated")))
);

INSTANTIATE_TEST_SUITE_P(ElectronCloud, TestConsistency,
testing::Combine(
testing::Values(getSetup("electron-cloud")),
testing::ValuesIn(getStates("electron-cloud")))
);

}

0 comments on commit 99060c3

Please sign in to comment.