diff --git a/doc/source/examples/ex_cfx_static_mixer.rst b/doc/source/examples/ex_cfx_static_mixer.rst new file mode 100644 index 000000000..b3cdf93bf --- /dev/null +++ b/doc/source/examples/ex_cfx_static_mixer.rst @@ -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 \ No newline at end of file diff --git a/doc/source/examples/ex_fluent_nozzle.rst b/doc/source/examples/ex_fluent_nozzle.rst new file mode 100644 index 000000000..ec6879fd6 --- /dev/null +++ b/doc/source/examples/ex_fluent_nozzle.rst @@ -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 \ No newline at end of file diff --git a/doc/source/examples/index.rst b/doc/source/examples/index.rst index 57157791d..e79a94476 100644 --- a/doc/source/examples/index.rst +++ b/doc/source/examples/index.rst @@ -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:: @@ -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. \ No newline at end of file diff --git a/prepare_documentation.py b/prepare_documentation.py index e833c1953..ff533cb2f 100644 --- a/prepare_documentation.py +++ b/prepare_documentation.py @@ -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)