Skip to content

Commit

Permalink
Add consistency tests for PureFluidPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jun 10, 2022
1 parent 99060c3 commit c6f82bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/data/consistency-cases.yaml
Expand Up @@ -99,3 +99,15 @@ electron-cloud:
- {T: 300, P: 1 atm}
- {T: 400, P: 1 atm}
- {T: 500, P: 10 atm}

# The Python test_purefluid.py test suite contains a much more extensive set of tests
# for the pure substance models
nitrogen-purefluid:
setup:
file: liquidvapor.yaml
phase: nitrogen
states:
- {T: 300, P: 1 atm}
- {T: 70, P: 1 atm}
- {T: 80, P: 100 atm}
- {T: 80, density: 100 kg/m^3}
6 changes: 6 additions & 0 deletions test/thermo/consistency.cpp
Expand Up @@ -195,4 +195,10 @@ INSTANTIATE_TEST_SUITE_P(ElectronCloud, TestConsistency,
testing::ValuesIn(getStates("electron-cloud")))
);

INSTANTIATE_TEST_SUITE_P(NitrogenPureFluid, TestConsistency,
testing::Combine(
testing::Values(getSetup("nitrogen-purefluid")),
testing::ValuesIn(getStates("nitrogen-purefluid")))
);

}

0 comments on commit c6f82bf

Please sign in to comment.