Skip to content

Commit

Permalink
test: Enable aliasing test (#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 authored Jan 8, 2025
1 parent edffdf0 commit 7a75882
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/test_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,27 +495,27 @@ def test_generated_code_special_cases(new_solver_session):
assert _OutputFile in write_file_bases


@pytest.mark.skip("https://github.com/ansys/pyfluent/issues/3591")
@pytest.mark.fluent_version(">=25.1")
def test_child_alias_with_parent_path(mixing_elbow_settings_session):
solver = mixing_elbow_settings_session

# Disabled due to https://github.com/ansys/pyfluent/issues/3591
# Following set_state should not throw InactiveObjectError
solver.settings.setup.materials.fluid["air"] = {
"density": {"option": "ideal-gas"},
"specific_heat": {"value": 1006.43, "option": "constant"},
"thermal_conductivity": {"value": 0.0242, "option": "constant"},
"molecular_weight": {"value": 28.966, "option": "constant"},
}
assert solver.settings.setup.materials.fluid["air"].density.option() == "ideal-gas"
assert solver.settings.setup.materials.fluid["air"].specific_heat.value() == 1006.43
assert (
solver.settings.setup.materials.fluid["air"].thermal_conductivity.value()
== 0.0242
)
assert (
solver.settings.setup.materials.fluid["air"].molecular_weight.value() == 28.966
)
# solver.settings.setup.materials.fluid["air"] = {
# "density": {"option": "ideal-gas"},
# "specific_heat": {"value": 1006.43, "option": "constant"},
# "thermal_conductivity": {"value": 0.0242, "option": "constant"},
# "molecular_weight": {"value": 28.966, "option": "constant"},
# }
# assert solver.settings.setup.materials.fluid["air"].density.option() == "ideal-gas"
# assert solver.settings.setup.materials.fluid["air"].specific_heat.value() == 1006.43
# assert (
# solver.settings.setup.materials.fluid["air"].thermal_conductivity.value()
# == 0.0242
# )
# assert (
# solver.settings.setup.materials.fluid["air"].molecular_weight.value() == 28.966
# )

solver.settings.solution.initialization.hybrid_initialize()
assert (
Expand Down

0 comments on commit 7a75882

Please sign in to comment.