Skip to content

Commit

Permalink
Try using a smaller case to fix the memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 committed May 4, 2022
1 parent 8e12a85 commit 802f87e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
2 changes: 2 additions & 0 deletions examples/01-parametric/parametric_static_mixer_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
data_frame = pd.read_csv(design_point_table_study_2)
print(data_frame)

session.exit()

#########################################################################
# Access a new parametric session using the flprj saved earlier

Expand Down
40 changes: 15 additions & 25 deletions examples/02-postprocessing/post_processing_exhaust_manifold.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,15 @@
# Meshing mode, double precision, number of processors: 4

import_case = examples.download_file(
filename="manifold_solution.cas.h5", directory="pyfluent/exhaust_manifold"
)

import_data = examples.download_file(
filename="manifold_solution.dat.h5", directory="pyfluent/exhaust_manifold"
"Static_Mixer_main.cas.h5", "pyfluent/static_mixer"
)

session = pyfluent.launch_fluent(precision="double", processor_count=2)
root = session.get_settings_root()

session.tui.solver.file.read_case(case_file_name=import_case)
session.tui.solver.file.read_data(case_file_name=import_data)
session.tui.solver.solve.initialize.initialize_flow()
session.tui.solver.solve.iterate(50)

###############################################################################
# Get the graphics object for mesh display
Expand All @@ -62,13 +59,9 @@
# Get the surfaces list

mesh1.surfaces_list = [
"in1",
"in2",
"in3",
"out1",
"solid_up:1",
"solid_up:1:830",
"solid_up:1:830-shadow",
"inlet1",
"inlet2",
"outlet",
]
mesh1.display("window-1")

Expand All @@ -81,29 +74,29 @@
###############################################################################
# Create iso-surface on the outlet plane

surf_outlet_plane = graphics.Surfaces["outlet-plane"]
surf_outlet_plane = graphics.Surfaces["outlet"]
surf_outlet_plane.surface.type = "iso-surface"
iso_surf1 = surf_outlet_plane.surface.iso_surface
iso_surf1.field = "y-coordinate"
iso_surf1.iso_value = -0.125017
iso_surf1.iso_value = 0.0
surf_outlet_plane.display("window-3")

###############################################################################
# Create iso-surface on the mid-plane (Issue # 276)

surf_mid_plane_x = graphics.Surfaces["mid-plane-x"]
surf_mid_plane_x = graphics.Surfaces["plane-4"]
surf_mid_plane_x.surface.type = "iso-surface"
iso_surf2 = surf_mid_plane_x.surface.iso_surface
iso_surf2.field = "x-coordinate"
iso_surf2.iso_value = -0.174
iso_surf2.iso_value = 0.0
surf_mid_plane_x.display("window-4")

###############################################################################
# Temperature contour on the mid-plane and the outlet

temperature_contour = graphics.Contours["contour-temperature"]
temperature_contour.field = "temperature"
temperature_contour.surfaces_list = ["mid-plane-x", "outlet-plane"]
temperature_contour.surfaces_list = ["plane-4", "outlet"]
temperature_contour.display("window-4")

###############################################################################
Expand All @@ -112,12 +105,9 @@
temperature_contour_manifold = graphics.Contours["contour-temperature-manifold"]
temperature_contour_manifold.field = "temperature"
temperature_contour_manifold.surfaces_list = [
"in1",
"in2",
"in3",
"out1",
"solid_up:1",
"solid_up:1:830",
"inlet1",
"inlet2",
"outlet",
]
temperature_contour_manifold.display("window-5")

Expand All @@ -126,7 +116,7 @@
# Currently using outlet-plane since mid-plane is affected by Issue # 276

velocity_vector = graphics.Vectors["velocity-vector"]
velocity_vector.surfaces_list = ["outlet-plane"]
velocity_vector.surfaces_list = ["outlet"]
velocity_vector.scale = 1
velocity_vector.display("window-6")

Expand Down

0 comments on commit 802f87e

Please sign in to comment.