Skip to content

Commit 25eea7c

Browse files
committed
reset icfd cylinder flow model
1 parent 8cc7a05 commit 25eea7c

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

examples/ICFD/icfd_cylinderflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
icfd_solution = DynaSolution(hostname)
3131
# Import the initial mesh data(nodes and elements)
3232
fns = []
33-
path = examples.icfd_cylinderflow + os.sep
34-
fns.append(path + "mesh.k")
33+
path = examples.cylinder_flow + os.sep
34+
fns.append(path + "cylinder_flow.k")
3535
icfd_solution.open_files(fns)
3636
# Set total time of simulation
3737
icfd_solution.set_termination(termination_time=100)

src/ansys/dyna/core/pre/examples/examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
em_railgun = os.path.join(_module_path, "em", "em_railgun")
1616
belted_dummy = os.path.join(_module_path, "explicit", "belted_dummy")
1717
# ICFD
18-
icfd_cylinderflow = os.path.join(_module_path, "icfd", "icfd_cylinderflow")
18+
cylinder_flow = os.path.join(_module_path, "icfd", "cylinder_flow")
1919
internal_3d_flow = os.path.join(_module_path, "icfd", "internal_3d_flow")
2020
plate_flow = os.path.join(_module_path, "icfd", "plate_flow")
2121
mesh_size = os.path.join(_module_path, "icfd", "mesh_size")
File renamed without changes.

tests/test_dynaicfd.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def comparefile(outputf, standardf):
4949
return True
5050

5151

52-
def test_icfd(icfd_initialfile, resolve_server_path, resolve_standard_path):
52+
def test_icfd_cylinder_flow(resolve_icfd_path, resolve_server_path, resolve_standard_path):
5353
solution = DynaSolution("localhost")
54+
icfd_initialfile = os.path.join(resolve_icfd_path, "test_cylinder_flow.k")
5455
fns = []
5556
fns.append(icfd_initialfile)
5657
solution.open_files(fns)
@@ -66,8 +67,8 @@ def test_icfd(icfd_initialfile, resolve_server_path, resolve_standard_path):
6667
icfd.add(meshvol)
6768
solution.create_database_binary(dt=1)
6869
solution.save_file()
69-
outputfile = os.path.join(resolve_server_path, "output", "test_icfd.k")
70-
standardfile = os.path.join(resolve_standard_path, "icfd.k")
70+
outputfile = os.path.join(resolve_server_path, "output", "test_cylinder_flow.k")
71+
standardfile = os.path.join(resolve_standard_path, "icfd", "cylinder_flow.k")
7172
assert comparefile(outputfile, standardfile)
7273

7374

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)