Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into main
  • Loading branch information
prmukherj committed Jul 8, 2024
2 parents cd34356 + 074b049 commit d17fb8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples

from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics
from ansys.fluent.visualization import Graphics, Plots, set_config

pyfluent.CONTAINER_MOUNT_PATH = pyfluent.EXAMPLES_PATH

Expand Down
2 changes: 2 additions & 0 deletions src/ansys/fluent/visualization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ def version_info() -> str:


from ansys.fluent.visualization._config import get_config, set_config # noqa: F401
from ansys.fluent.visualization.matplotlib import Plots # noqa: F401
from ansys.fluent.visualization.pyvista import Graphics # noqa: F401
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ def _display_contour(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):
plotter.add_mesh(mesh.contour(isosurfaces=20))

def _fetch_surface(self, obj):
surface_api = obj._api_helper.surface_api
surface_api.create_surface_on_server()
dummy_object = "dummy_object"
post_session = obj.get_root()
if (
Expand All @@ -403,7 +401,6 @@ def _fetch_surface(self, obj):
mesh.show_edges = obj.show_edges()
self._fetch_mesh(mesh)
del post_session.Meshes[dummy_object]
surface_api.delete_surface_on_server()

def _display_surface(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):
dummy_object = "dummy_object"
Expand Down

0 comments on commit d17fb8a

Please sign in to comment.