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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
needs: [docs-style]
runs-on: [self-hosted, pyfluent]
env:
DOC_DEPLOYMENT_IMAGE_TAG: v23.2.0
DOC_DEPLOYMENT_IMAGE_TAG: v24.1.0

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-dev-doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
DOCUMENTATION_CNAME: 'fluent.docs.pyansys.com'
DOC_DEPLOYMENT_IMAGE_TAG: v23.2.0
DOC_DEPLOYMENT_IMAGE_TAG: v24.1.0
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_TIMEOUT_FORCE_EXIT: 30
PYFLUENT_LAUNCH_CONTAINER: 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
DOCUMENTATION_CNAME: 'fluent.docs.pyansys.com'
DOC_DEPLOYMENT_IMAGE_TAG: v23.2.0
DOC_DEPLOYMENT_IMAGE_TAG: v24.1.0
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
PYFLUENT_TIMEOUT_FORCE_EXIT: 30
PYFLUENT_LAUNCH_CONTAINER: 1
Expand Down
Binary file modified doc/source/_static/exhaust_system_016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/source/_static/exhaust_system_017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/source/_static/exhaust_system_018.png
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.
Binary file modified doc/source/_static/mixing_elbow_014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/source/_static/mixing_elbow_015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/source/_static/mixing_elbow_016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/_static/mixing_elbow_tui_016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 50 additions & 13 deletions examples/00-fluent/exhaust_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
# Launch Fluent as a service in meshing mode with double precision running on
# two processors.

meshing = pyfluent.launch_fluent(precision="double", processor_count=2, mode="meshing")
meshing = pyfluent.launch_fluent(
precision="double",
processor_count=4,
mode="meshing",
)

###############################################################################
# Initialize workflow
Expand Down Expand Up @@ -551,13 +555,6 @@

solver.tui.mesh.check()

###############################################################################
# Set units for length
# ~~~~~~~~~~~~~~~~~~~~
# Set the units for length.

solver.tui.define.units("length", "mm")

###############################################################################
# Select turbulence model
# ~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -615,10 +612,31 @@

# solver.tui.report.volume_integrals.volume("fluid-region-1","()","yes","volume.vrp")

###############################################################################
# Write the case and data files
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

solver.tui.file.write_case_data("exhaust_system.cas.h5", "yes")

###############################################################################
# Configure graphics picture export
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Since Fluent is being run without the GUI, we will need to export plots as
# picture files. Edit the picture settings to use a custom resolution so that
# the images are large enough.

picture = solver.tui.display.set.picture
# use-window-container TUI option not available inside containers
if not solver.connection_properties.inside_container:
picture.use_window_resolution("no")
picture.x_resolution("1920")
picture.y_resolution("1440")

###############################################################################
# Create path lines
# ~~~~~~~~~~~~~~~~~
# Create path lines highlighting the flow field.
# Create path lines highlighting the flow field, display it, then export the
# image for inspection.

###############################################################################
# .. image:: /_static/exhaust_system_016.png
Expand All @@ -642,6 +660,12 @@
"()",
"quit",
)
solver.tui.display.objects.display("pathlines-1")

views = solver.tui.display.views
views.restore_view("isometric")
views.auto_scale()
solver.tui.display.save_picture("pathlines-1.png")

###############################################################################
# Create iso-surface
Expand All @@ -654,15 +678,15 @@
"()",
"fluid-region-1",
"()",
"380",
"0.38",
"()",
)

###############################################################################
# Create contours of velocity magnitude
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Create contours of the velocity magnitude throughout the manifold
# along with the mesh.
# along with the mesh. Display it and export the image for inspection.

###############################################################################
# .. image:: /_static/exhaust_system_017.png
Expand All @@ -686,13 +710,19 @@
"quit",
"quit",
)

solver.tui.display.objects.create("mesh", "mesh-1", "surfaces-list", "*", "()", "quit")

solver.tui.display.objects.display("contour-velocity")

views.restore_view("right")
views.auto_scale()
solver.tui.display.save_picture("contour-velocity.png")

###############################################################################
# Create scene
# ~~~~~~~~~~~~
# Create a scene containing the mesh and the contours.
# Create a scene containing the mesh and the contours. Display it and export
# the image for inspection.

###############################################################################
# .. image:: /_static/exhaust_system_018.png
Expand All @@ -714,6 +744,13 @@
"quit",
"quit",
)
solver.tui.display.objects.display("scene-1")

camera = solver.tui.display.views.camera
camera.position("1.70", "1.14", "0.29")
camera.up_vector("-0.66", "0.72", "-0.20")
views.auto_scale()
solver.tui.display.save_picture("scene-1.png")

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