Skip to content

Commit

Permalink
fix: failing meshing dm test in 24.2 (#2572)
Browse files Browse the repository at this point in the history
* fix: failing meshing dm test in 24.2

* Fix test for latest fluent version.

* Fix test for latest fluent version.

* Fix test for latest fluent version.
  • Loading branch information
prmukherj authored Mar 14, 2024
1 parent 5fc10d9 commit d811ffd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ansys/fluent/core/services/datamodel_se.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@ def create_instance(self) -> Optional["PyCommandArguments"]:
self.command,
self.path.copy(),
id,
static_info["args"],
static_info.get("args"),
)
except RuntimeError:
logger.warning(
Expand Down
11 changes: 9 additions & 2 deletions tests/test_new_meshing_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from ansys.fluent.core import examples
from ansys.fluent.core.meshing.watertight import watertight_workflow
from ansys.fluent.core.utils.fluent_version import FluentVersion


@pytest.mark.nightly
Expand Down Expand Up @@ -520,7 +521,6 @@ def test_snake_case_attrs_in_new_meshing_workflow(new_mesh_session):
watertight.import_geometry()


@pytest.mark.skip("https://github.com/ansys/pyfluent/issues/2569")
@pytest.mark.codegen_required
@pytest.mark.fluent_version(">=24.1")
def test_workflow_and_data_model_methods_new_meshing_workflow(new_mesh_session):
Expand All @@ -545,12 +545,19 @@ def test_workflow_and_data_model_methods_new_meshing_workflow(new_mesh_session):
watertight.task("import_geom_wtm").file_name = import_file_name
watertight.task("import_geom_wtm").length_unit = "in"
watertight.task("import_geom_wtm")()
assert watertight.task("import_geom_wtm").get_next_possible_tasks() == [
_next_possible_tasks = [
"import_body_of_influence_geometry",
"set_up_periodic_boundaries",
"create_local_refinement_regions",
"load_cad_geometry",
"run_custom_journal",
]
if meshing.get_fluent_version() < FluentVersion.v242:
_next_possible_tasks.remove("load_cad_geometry")
assert (
watertight.task("import_geom_wtm").get_next_possible_tasks()
== _next_possible_tasks
)
watertight.task("import_geom_wtm").insert_next_task(
"import_body_of_influence_geometry"
)
Expand Down

0 comments on commit d811ffd

Please sign in to comment.