Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@cp -f "$(SOURCEDIR)/_static/sphx_glr_post_processing_exhaust_manifold_011.png" "$(BUILDDIR)/html/_images/"
@cp -f "$(SOURCEDIR)/_static/sphx_glr_post_processing_exhaust_manifold_012.png" "$(BUILDDIR)/html/_images/"

# customized clean due to examples gallery
clean:
Expand Down
2 changes: 2 additions & 0 deletions doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ if errorlevel 9009 (
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
xcopy /s "%SOURCEDIR%\_static\sphx_glr_post_processing_exhaust_manifold_011.png" "%BUILDDIR%\html\_images\" /Y
xcopy /s "%SOURCEDIR%\_static\sphx_glr_post_processing_exhaust_manifold_012.png" "%BUILDDIR%\html\_images\" /Y
goto end

:clean
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions examples/00-postprocessing/post_processing_exhaust_manifold.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
filename="exhaust_system.dat.h5", directory="pyfluent/exhaust_system"
)

session = pyfluent.launch_fluent(precision="double", processor_count=2)
session = pyfluent.launch_fluent(
precision="double", processor_count=2, start_transcript=False
)

session.solver.tui.file.read_case(case_file_name=import_case)
session.solver.tui.file.read_data(case_file_name=import_data)
Expand Down Expand Up @@ -116,7 +118,7 @@
temperature_contour = graphics.Contours["contour-temperature"]
temperature_contour.field = "temperature"
temperature_contour.surfaces_list = ["mid-plane-x", "outlet-plane"]
temperature_contour.display("window-4")
temperature_contour.display("window-6")

###############################################################################
# Contour plot of temperature on the manifold
Expand All @@ -131,19 +133,17 @@
"solid_up:1",
"solid_up:1:830",
]
temperature_contour_manifold.display("window-5")
temperature_contour_manifold.display("window-7")

###############################################################################
# Vector on the mid-plane
# Currently using outlet-plane since mid-plane is affected by Issue # 276
# Vector on a predefined surface

velocity_vector = graphics.Vectors["velocity-vector"]
velocity_vector.surfaces_list = ["solid_up:1:830"]
velocity_vector.scale = 2
velocity_vector.display("window-6")
velocity_vector.display("window-8")

###############################################################################
# Commenting out due to issue #290
# Start the Plot Object for the session
plots_session_1 = Plots(session)

Expand All @@ -158,18 +158,18 @@

###############################################################################
# Plot the created XY-Plot
xy_plot.plot("window-7")
xy_plot.plot("window-9")

###############################################################################
# Plot residual

matplotlib_plots1 = Plots(session)
residual = matplotlib_plots1.Monitors["residual"]
residual.monitor_set_name = "residual"
residual.plot("window-8")
residual.plot("window-10")

###############################################################################
# Solve and Plot Solution Minitors.
# Solve and Plot Solution Monitors.

session.solver.tui.solve.initialize.hyb_initialization()
session.solver.tui.solve.set.number_of_iterations(50)
Expand All @@ -178,12 +178,12 @@
matplotlib_plots1 = Plots(session)
mass_bal_rplot = matplotlib_plots1.Monitors["mass-bal-rplot"]
mass_bal_rplot.monitor_set_name = "mass-bal-rplot"
mass_bal_rplot.plot("window-9")
mass_bal_rplot.plot("window-11")

matplotlib_plots1 = Plots(session)
point_vel_rplot = matplotlib_plots1.Monitors["point-vel-rplot"]
point_vel_rplot.monitor_set_name = "point-vel-rplot"
point_vel_rplot.plot("window-10")
point_vel_rplot.plot("window-12")

###############################################################################
# Close Fluent
Expand Down