diff --git a/doc/Makefile b/doc/Makefile index 65139ea9..2ec62fb1 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -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: diff --git a/doc/make.bat b/doc/make.bat index 30c8f03d..287c05d6 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -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 diff --git a/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_011.png b/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_011.png new file mode 100644 index 00000000..8f707e72 Binary files /dev/null and b/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_011.png differ diff --git a/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_012.png b/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_012.png new file mode 100644 index 00000000..8f20cc23 Binary files /dev/null and b/doc/source/_static/sphx_glr_post_processing_exhaust_manifold_012.png differ diff --git a/examples/00-postprocessing/post_processing_exhaust_manifold.py b/examples/00-postprocessing/post_processing_exhaust_manifold.py index a5e9b67a..f26db79c 100644 --- a/examples/00-postprocessing/post_processing_exhaust_manifold.py +++ b/examples/00-postprocessing/post_processing_exhaust_manifold.py @@ -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) @@ -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 @@ -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) @@ -158,7 +158,7 @@ ############################################################################### # Plot the created XY-Plot -xy_plot.plot("window-7") +xy_plot.plot("window-9") ############################################################################### # Plot residual @@ -166,10 +166,10 @@ 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) @@ -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