-
Notifications
You must be signed in to change notification settings - Fork 5
Description
These are two tutorial cases (Regressions: mixtank_tui and fluid-bed_tui). I will share cases with you @ajain-work
script
import os
os.chdir("C:/shared/testing/develop/tutorials/fluid-bed_tui/std/out")
import ansys.fluent.core as pyfluent
session = pyfluent.launch_fluent(precision="double", processor_count=2, version="2d")
solver = session.solver.root
solver.file.read(file_type = "case", file_name = "fluid-bed1.cas.h5")
solver.file.read(file_type = "data", file_name = "fluid-bed1.dat.h5")
from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics
set_config(blocking=True, set_view_on_display="isometric")
graphics = Graphics(session=session)
vof_solids = graphics.Contours["vof_solids"]
vof_solids.field = "solids-vof"
vof_solids.surfaces_list = ["fluid"]
vof_solids.display("windows-1")
script
import os
os.chdir("C:/shared/testing/develop/tutorials/mixtank_tui/std/out")
import ansys.fluent.core as pyfluent
session = pyfluent.launch_fluent(precision="double", processor_count=2, version="3d")
solver = session.solver.root
solver.file.read(file_type = "case", file_name = "mixtank1.cas.h5")
solver.file.read(file_type = "data", file_name = "mixtank1.dat.h5")
from ansys.fluent.visualization import set_config
from ansys.fluent.visualization.matplotlib import Plots
from ansys.fluent.visualization.pyvista import Graphics
set_config(blocking=True, set_view_on_display="isometric")
graphics = Graphics(session=session)
surf_plane_y = graphics.Surfaces["mid-plane-y"]
surf_plane_y.surface.type = "iso-surface"
iso_surf1 = surf_plane_y.surface.iso_surface
iso_surf1.field = "y-coordinate"
iso_surf1.iso_value = 0
surf_plane_y.display("window-1")
vof_air_contour = graphics.Contours["vof_air_contour"]
vof_air_contour.field = "air-vof"
vof_air_contour.surfaces_list = ["wall_impeller_1","wall_impeller_2"]
vof_air_contour.display("windows-1")
vof_air_contour.surfaces_list = ["mid-plane-y"]

