Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hkjeldsberg committed Oct 24, 2023
1 parent 8879887 commit 8eb75e2
Showing 1 changed file with 0 additions and 85 deletions.
85 changes: 0 additions & 85 deletions tests/test_meshing_tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,88 +45,3 @@ def test_meshing_tube():
# Remove output files
for output_file in output_files:
remove(output_file)


#
#
# def test_mesh_model_with_one_inlet_and_two_outlets():
# model_path = "tests/test_data/artery/artery.stl"
# # Get default input parameters
# common_input = read_command_line(model_path)
# common_input.update(dict(meshing_method="diameter",
# smoothing_method="laplace",
# refine_region=True,
# region_points=[33, 30, 40],
# coarsening_factor=1.3,
# visualize=False,
# compress_mesh=False,
# outlet_flow_extension_length=1,
# inlet_flow_extension_length=1
# ))
#
# # Run pre processing
# run_pre_processing(**common_input)
#
# model_name = model_path.replace(".stl", "")
#
# # Define output files and check if they exist
# output_files = [model_name + suffix for suffix in ['.vtu', '.xml', '_info.json', '_probe_point.json']]
# check_files(output_files)
#
# # Check that mesh is not empty with VTK/morphMan and FEniCS and contains correct amount of points and cells
# num_points = 12684
# num_cells = 71987
# check_mesh(output_files, num_points=num_points, num_cells=num_cells)
#
# # Remove output files
# for output_file in output_files:
# remove(output_file)
#
#
# def test_moving_domain_meshing():
# model_path = "tests/test_data/artery/artery.stl"
# # Get default input parameters
# common_input = read_command_line(model_path)
# common_input.update(dict(meshing_method="diameter",
# coarsening_factor=1.3,
# smoothing_method="laplace",
# moving_mesh=True,
# clamp_boundaries=True,
# refine_region=False,
# visualize=False,
# compress_mesh=False,
# add_boundary_layer=False,
# outlet_flow_extension_length=1,
# inlet_flow_extension_length=1
# ))
#
# # Run pre processing
# run_pre_processing(**common_input)
#
# model_name = model_path.replace(".stl", "")
#
# # Check that output files exist (standard output files plus artery_points.np)
# output_files = [model_name + suffix for suffix in ['.vtu', '.xml', '_info.json', '_probe_point.json']]
# check_files(output_files)
#
# # Check moving domain meshing files
# displacement_file = [model_name + "_points.np"]
# check_files(displacement_file)
#
# extended_folder = model_name + "_extended"
# assert path.exists(extended_folder)
# assert listdir(extended_folder) != []
#
# num_points = 3180
# num_cells = 17065
# check_mesh(output_files, num_points=num_points, num_cells=num_cells)
#
# # Remove output files
# for output_file in output_files + displacement_file:
# remove(output_file)
#
# shutil.rmtree(extended_folder)


if __name__ == "__main__":
test_mesh_model_with_one_inlet()

0 comments on commit 8eb75e2

Please sign in to comment.