Skip to content

PyFluent: Difference in the overset visualization w.r.t Fluent.  #51

@ypatel-qa

Description

@ypatel-qa

This is a Fluent Tutorial case (regression: overset_store_sep_tut). I will share it with you @ajain-work

script

import os
os.chdir("C:/shared/testing/develop/tutorials/overset_store_sep_tut/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 = "overset-pod-unsteady1.cas.h5")
solver.file.read(file_type = "data", file_name = "overset-pod-unsteady1.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)
velocity_contour = graphics.Contours["velocity_contour"]
velocity_contour.field = "velocity-magnitude"
velocity_contour.surfaces_list = ["component","downstream","fluid-background","upstream"]
pressure_contour = graphics.Contours["pressure_contour"]
pressure_contour.field = "pressure"
pressure_contour.surfaces_list = ["component","downstream","fluid-background","upstream"]
pressure_contour.display("windows-1")

image

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions