Skip to content

Commit

Permalink
Remove all visualization code comments from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed Jun 25, 2022
1 parent 857404e commit 605b6c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
31 changes: 0 additions & 31 deletions examples/00-fluent/exhaust_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples

# from ansys.fluent.post import set_config
# from ansys.fluent.post.pyvista import Graphics

# set_config(blocking=True, set_view_on_display="isometric")

import_filename = examples.download_file(
"exhaust_system.fmd", "pyfluent/exhaust_system"
)
Expand Down Expand Up @@ -594,7 +589,6 @@
"()",
"quit",
)
# session.solver.tui.display.objects.display("pathlines-1")

###############################################################################
# Create an iso-surface through the manifold geometry.
Expand Down Expand Up @@ -630,7 +624,6 @@
"quit",
"quit",
)
# session.solver.tui.display.objects.display("contour-velocity")

session.solver.tui.display.objects.create(
"mesh", "mesh-1", "surfaces-list", "*", "()", "quit"
Expand All @@ -654,30 +647,6 @@
"quit",
"quit",
)
# session.solver.tui.display.objects.display("scene-1")

###############################################################################
# Mesh display using PyVista

# graphics_session = Graphics(session)
# mesh_1 = graphics_session.Meshes["mesh-1"]
# mesh_1.show_edges = True
# mesh_1.surfaces_list = [
# "inlet-1",
# "inlet-2",
# "inlet-3",
# "outlet-1",
# "flow-pipe",
# "main.1",
# "object1.1",
# "object2.1",
# "outpipe3.1",
# ]

# mesh_1.display()
###############################################################################
# Save case, data.
# session.solver.tui.file.write_case_data("exhaust_system.cas.h5")

#########################################################################
# Close Fluent
Expand Down
3 changes: 0 additions & 3 deletions examples/00-fluent/mixing_elbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@
"banded",
"quit",
)
# session.solver.tui.display.objects.display("contour-vel")

###############################################################################
# Create and display a definition for temperature contours on the symmetry
Expand All @@ -393,7 +392,6 @@
"smooth",
"quit",
)
# session.solver.tui.display.objects.display("contour-temp")

###############################################################################
# Create and display velocity vectors on the symmetry-xyplane plane:
Expand All @@ -417,7 +415,6 @@
"2",
"quit",
)
# session.solver.tui.display.objects.display("vector")

###############################################################################
# Create an iso-surface representing the intersection of the plane z=0 and the
Expand Down
5 changes: 0 additions & 5 deletions examples/00-fluent/mixing_elbow_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@
"velocity_vector_symmetry"
].scale.scale_f = 4
session.solver.root.results.graphics.vector["velocity_vector_symmetry"].style = "arrow"
# session.solver.root.results.graphics.vector["velocity_vector_symmetry"].display()

###############################################################################
# Compute mass flow rate
Expand All @@ -190,10 +189,6 @@
session.solver.root.solution.report_definitions.flux["mass_flow_rate"].print_state()
session.solver.root.solution.report_definitions.compute(report_defs=["mass_flow_rate"])

###############################################################################
# Write final case and data.
# session.solver.tui.file.write_case_data('mixing_elbow2_set.cas.h5')

#########################################################################
# Close Fluent

Expand Down

0 comments on commit 605b6c9

Please sign in to comment.