-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add a test for System Coupling related settings (#2812)
* test: Add a test for System Coupling related settings * fix: proper path for system coupling test (#2829) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Raphael Luciano <[email protected]>
- Loading branch information
1 parent
c23aab7
commit 2f038e8
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.fluent_version(">=24.1") | ||
def test_systemcoupling_mixing_elbow_settings(load_mixing_elbow_case_dat): | ||
"""Very superficial test of System Coupling related settings.""" | ||
solver = load_mixing_elbow_case_dat | ||
# check participant type, analysis type, regions, and variables | ||
assert solver.system_coupling.participant_type == "FLUENT" | ||
assert solver.system_coupling.get_analysis_type() == "Steady" | ||
regions = solver.system_coupling.get_regions() | ||
variables = solver.system_coupling.get_variables() | ||
# [wall-inlet, wall-elbow, elbow-fluid, hot-inlet, cold-inlet, outlet] | ||
assert len(regions) >= 6 | ||
# [force, dsip, temp, htc, hflow, nwt, hrate, cond, lorentz-force] | ||
assert len(variables) >= 9 |