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
Binary file added doc/source/_static/exhaust_system_011.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/exhaust_system_012.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/exhaust_system_013.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/exhaust_system_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 added doc/source/_static/exhaust_system_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 added 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 added 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 added 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.
Binary file added doc/source/_static/mixing_elbow_011.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_012.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_013.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_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 added 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 added 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_017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 41 additions & 1 deletion examples/00-fluent/exhaust_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@
###############################################################################
# Cover any openings in your geometry.

###############################################################################
# .. image:: /_static/exhaust_system_011.png
# :width: 400pt
# :align: center

###############################################################################
# .. image:: /_static/exhaust_system_012.png
# :width: 400pt
# :align: center

session.meshing.workflow.TaskObject[
"Enclose Fluid Regions (Capping)"
].Arguments.setState(
Expand Down Expand Up @@ -466,6 +476,11 @@
###############################################################################
# Generate the surface mesh.

###############################################################################
# .. image:: /_static/exhaust_system_013.png
# :width: 500pt
# :align: center

session.meshing.workflow.TaskObject["Generate the Surface Mesh"].Execute()

###############################################################################
Expand All @@ -492,6 +507,11 @@
###############################################################################
# Generate the volume mesh.

###############################################################################
# .. image:: /_static/exhaust_system_014.png
# :width: 500pt
# :align: center

session.meshing.workflow.TaskObject["Generate the Volume Mesh"].Arguments.setState(
{
"AllRegionNameList": [
Expand Down Expand Up @@ -564,13 +584,23 @@
###############################################################################
# Start the calculation by requesting 100 iterations

###############################################################################
# .. image:: /_static/exhaust_system_015.png
# :width: 500pt
# :align: center

session.solver.tui.solve.set.number_of_iterations(100)
session.solver.tui.solve.iterate()

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

###############################################################################
# Display path lines highlighting the flow field
# Create path lines highlighting the flow field

###############################################################################
# .. image:: /_static/exhaust_system_016.png
# :width: 500pt
# :align: center

session.solver.tui.display.objects.create(
"pathlines",
Expand Down Expand Up @@ -607,6 +637,11 @@
# Create and define contours of velocity magnitude throughout the manifold
# along with the mesh.

###############################################################################
# .. image:: /_static/exhaust_system_017.png
# :width: 500pt
# :align: center

session.solver.tui.display.objects.create(
"contour",
"contour-velocity",
Expand All @@ -632,6 +667,11 @@
###############################################################################
# Create a scene containing the mesh and the contours.

###############################################################################
# .. image:: /_static/exhaust_system_018.png
# :width: 500pt
# :align: center

session.solver.tui.display.objects.create(
"scene",
"scene-1",
Expand Down
37 changes: 36 additions & 1 deletion examples/00-fluent/mixing_elbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
# Select the Generate the Volume Mesh task, where you can set properties of the
# volume mesh. Select the poly-hexcore for Fill With. Execute Generate the
# Volume Mesh.

session.meshing.workflow.TaskObject["Generate the Volume Mesh"].Arguments = {
"VolumeFill": "poly-hexcore",
"VolumeFillControls": {
Expand All @@ -147,6 +148,11 @@
}
session.meshing.workflow.TaskObject["Generate the Volume Mesh"].Execute()

###############################################################################
# .. image:: /_static/mixing_elbow_011.png
# :width: 500pt
# :align: center

###############################################################################
# Check the mesh in Meshing mode
session.meshing.tui.mesh.check_mesh()
Expand Down Expand Up @@ -245,7 +251,6 @@
# hot inlet (hot-inlet), Setting: Value:
# Velocity Specification Method: Magnitude, Normal to Boundary


session.solver.tui.define.boundary_conditions.set.velocity_inlet(
"hot-inlet", [], "vmag", "no", 1.2, "quit"
)
Expand Down Expand Up @@ -343,6 +348,16 @@
# Solve for 100 Iterations.
session.solver.tui.solve.iterate(100)

###############################################################################
# .. image:: /_static/mixing_elbow_012.png
# :width: 500pt
# :align: center

###############################################################################
# .. image:: /_static/mixing_elbow_013.png
# :width: 500pt
# :align: center

###############################################################################
# Save the data file (mixing_elbow1.dat.h5).
# session.solver.tui.file.write_data('mixing_elbow1.dat.h5')
Expand Down Expand Up @@ -370,6 +385,11 @@
"quit",
)

###############################################################################
# .. image:: /_static/mixing_elbow_014.png
# :width: 500pt
# :align: center

###############################################################################
# Create and display a definition for temperature contours on the symmetry
# plane:
Expand All @@ -393,6 +413,11 @@
"quit",
)

###############################################################################
# .. image:: /_static/mixing_elbow_015.png
# :width: 500pt
# :align: center

###############################################################################
# Create and display velocity vectors on the symmetry-xyplane plane:

Expand All @@ -416,6 +441,11 @@
"quit",
)

###############################################################################
# .. image:: /_static/mixing_elbow_016.png
# :width: 500pt
# :align: center

###############################################################################
# Create an iso-surface representing the intersection of the plane z=0 and the
# surface outlet. Name: z=0_outlet
Expand All @@ -437,6 +467,11 @@
"quit",
)

###############################################################################
# .. image:: /_static/mixing_elbow_017.png
# :width: 500pt
# :align: center

###############################################################################
# Write final case and data.
# session.solver.tui.file.write_case_data("mixing_elbow2_tui.cas.h5")
Expand Down
5 changes: 5 additions & 0 deletions examples/00-fluent/mixing_elbow_settings_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@
].scale.scale_f = 4
session.solver.root.results.graphics.vector["velocity_vector_symmetry"].style = "arrow"

###############################################################################
# .. image:: /_static/mixing_elbow_016.png
# :width: 500pt
# :align: center

###############################################################################
# Compute mass flow rate

Expand Down