-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
To reproduce:
- Start Fluent using pyfluent.
- Use case and data from the following location: https://tfs.ansys.com:8443/tfs/FluentTesting/FluentTesting/_git/tutorials?path=%2Fexhaust_manifold_tui_fltg%2Fstd%2Fout
- Run the following script:
#######################################################
import ansys.fluent.core as pyfluent
from ansys.fluent.post.pyvista import Graphics
s = pyfluent.launch_fluent(precision="double", processor_count=4)
root = s.get_settings_root()
s.tui.solver.file.read_case(case_file_name="manifold_solution.cas.h5")
s.tui.solver.file.read_data(case_file_name="manifold_solution.dat.h5")
# Get the graphics object for mesh display
gs_1 = Graphics(s)
# Create a graphics object for mesh display
mesh1 = gs_1.Meshes["mesh-1"]
# Show edges and faces
mesh1.show_edges = True
mesh1.show_faces = True
# Get the surfaces list
mesh1.surfaces_list = ['in1','in2','in3','out1','solid_up:1', 'solid_up:1:830','solid_up:1:830-shadow']
mesh1.display("window-1")
# Disable edges and display again
mesh1.show_edges = False
mesh1.display("window-2")
# Create iso-surface on the outlet plane
surf_outlet_plane = gs_1.Surfaces["outlet-plane"]
surf_outlet_plane.surface_type.iso_surface.field = 'y-coordinate'
surf_outlet_plane.surface_type.iso_surface.iso_value.value = "-125.0188 [mm]"
surf_outlet_plane.display("window-3")
# Create iso-surface on the mid-plane
surf_mid_plane_x = gs_1.Surfaces["mid-plane-x"]
surf_mid_plane_x.surface_type.iso_surface.field = 'x-coordinate'
surf_mid_plane_x.surface_type.iso_surface.iso_value.value = "-174 [mm]"
surf_mid_plane_x.display("window-4")
# Temperature contour on the mid-plane and the outlet
contour_temp = gs_1.Contours["contour-temperature"]
contour_temp.field = "temperature"
#contour_temp.surfaces_list = [surf_outlet_plane,surf_mid_plane_x] - This line also does not work
contour_temp.surfaces_list = ["outlet-plane","mid-plane-x"]PyVista is unable to recognize iso-surface names as allowed values.
The following error is shown in the console:
Metadata
Metadata
Assignees
Labels
No labels
