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
21 changes: 21 additions & 0 deletions doc/source/examples/ex_cfx_static_mixer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _example_cfx_static_mixer:

CFX Static Mixer
================

This example shows how to submit a CFX Static Mixer model to be solved on REP.

.. only:: builder_html

The project setup script as well as the data files can be downloaded here :download:`CFX Static Mixer Example <../../../build/cfx_static_mixer.zip>`.

The project uses an execution script exec_cfx.py instead of a solver command line.
The execution script is located in this zip file :download:`Example Execution Scripts <../../../build/exec_scripts.zip>`.

.. literalinclude:: ../../../examples/cfx_static_mixer/project_setup.py
:language: python
:caption: project_setup.py

.. literalinclude:: ../../../examples/exec_scripts/exec_cfx.py
:language: python
:caption: exec_cfx.py
21 changes: 21 additions & 0 deletions doc/source/examples/ex_fluent_nozzle.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _example_fluent_nozzle:

Fluent Nozzle
=============

This example shows how to submit a Fluent nozzle model to be solved on REP.

.. only:: builder_html

The project setup script as well as the data files can be downloaded here :download:`Fluent Nozzle Example <../../../build/fluent_nozzle.zip>`.

The project uses an execution script exec_fluent.py instead of a solver command line.
The execution script is located in this zip file :download:`Example Execution Scripts <../../../build/exec_scripts.zip>`.

.. literalinclude:: ../../../examples/fluent_nozzle/project_setup.py
:language: python
:caption: project_setup.py

.. literalinclude:: ../../../examples/exec_scripts/exec_fluent.py
:language: python
:caption: exec_fluent.py
6 changes: 6 additions & 0 deletions doc/source/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ You can also download the entire set of examples :download:`Download All Example
ex_mapdl_linked_analyses
ex_lsdyna_job
ex_fluent_2d_heat_exchanger
ex_fluent_nozzle
ex_cfx_static_mixer
ex_python_two_bar

.. list-table::
Expand All @@ -45,5 +47,9 @@ You can also download the entire set of examples :download:`Download All Example
- Submit, monitor and download results of an LS-DYNA job.
* - :ref:`example_fluent_2d_heat_exchanger`
- Submit a Fluent solve job to REP.
* - :ref:`example_fluent_nozzle`
- Submit a Fluent solve job to REP using an execution script.
* - :ref:`example_cfx_static_mixer`
- Submit a CFX solve job to REP using an execution script.
* - :ref:`example_python_two_bar`
- Create a REP project solving a Two-Bar Truss problem with Python.
17 changes: 17 additions & 0 deletions prepare_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@ def archive_examples():
"heat_exchanger.jou",
"heat_exchanger.cas.h5",
],
"fluent_nozzle": [
"project_setup.py",
"solve.jou",
"nozzle.cas",
],
"cfx_static_mixer": [
"project_setup.py",
"runInput.ccl",
"StaticMixer_001.cfx",
"StaticMixer_001.def",
],
"exec_scripts": [
"exec_cfx.py",
"exec_mapdl.py",
"exec_fluent.py",
"exec_python.py",
],
}

os.makedirs("build", exist_ok=True)
Expand Down