.. only:: html
.. image:: /examples/00-systemcoupling/images/thumb/sphx_glr_oscillating_plate_thumb.png
- :alt: Oscillating plate
+ :alt:
:ref:`sphx_glr_examples_00-systemcoupling_oscillating_plate.py`
@@ -39,7 +39,7 @@ interrogation of the data model, and running the System Coupling solver to perfo
.. only:: html
.. image:: /examples/00-systemcoupling/images/thumb/sphx_glr_parametric_sweep_vel_thumb.png
- :alt: Parametric sweep
+ :alt:
:ref:`sphx_glr_examples_00-systemcoupling_parametric_sweep_vel.py`
diff --git a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.ipynb b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.ipynb
index c4891f99..342179d8 100644
--- a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.ipynb
+++ b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.ipynb
@@ -69,7 +69,7 @@
},
"outputs": [],
"source": [
- "def set_inlet_velocity(working_dir, inlet_velocity):\n with pyfluent.launch_fluent(precision=\"double\", processor_count=2) as session:\n case_file = os.path.join(working_dir, \"Fluent\", \"case.cas.h5\")\n session.file.read(file_type=\"case\", file_name=case_file)\n session.setup.boundary_conditions.velocity_inlet[\n \"wall_inlet\"\n ].vmag.value = inlet_velocity\n session.tui.file.write_case(case_file)\n\n print(f\"Inlet velocity is set to {inlet_velocity}\")"
+ "def set_inlet_velocity(working_dir, inlet_velocity):\n with pyfluent.launch_fluent(precision=\"double\", processor_count=2) as session:\n case_file = os.path.join(working_dir, \"Fluent\", \"case.cas.h5\")\n session.file.read(file_type=\"case\", file_name=case_file)\n session.setup.boundary_conditions.velocity_inlet[\n \"wall_inlet\"\n ].vmag.value = inlet_velocity\n session.tui.file.write_case(case_file, \"yes\")\n\n print(f\"Inlet velocity is set to {inlet_velocity}\")"
]
},
{
@@ -105,7 +105,7 @@
},
"outputs": [],
"source": [
- "def extract_max_displacement(working_dir):\n print(\"Extracting max displacement value\")\n model = pydpf.Model(os.path.join(working_dir, \"Mapdl\", \"file.rst\"))\n displacements = model.results.displacement()\n fields = displacements.outputs.fields_container()\n value = max([v[0] for v in fields[0].data])\n print(\"Max displacement value = \" + str(value))\n return value"
+ "def extract_max_displacement(working_dir):\n print(\"Extracting max displacement value\")\n model = pydpf.Model(os.path.join(working_dir, \"Mapdl\", \"file.rst\"))\n displacements = model.results.displacement()\n fields = displacements.outputs.fields_container()\n value = max([v[0] for v in fields[0].data])\n print(f\"Max displacement value = {value}\")\n return value"
]
},
{
diff --git a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py
index 9d895124..12959b64 100644
--- a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py
+++ b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py
@@ -111,7 +111,7 @@ def set_inlet_velocity(working_dir, inlet_velocity):
session.setup.boundary_conditions.velocity_inlet[
"wall_inlet"
].vmag.value = inlet_velocity
- session.tui.file.write_case(case_file)
+ session.tui.file.write_case(case_file, "yes")
print(f"Inlet velocity is set to {inlet_velocity}")
@@ -171,7 +171,7 @@ def extract_max_displacement(working_dir):
displacements = model.results.displacement()
fields = displacements.outputs.fields_container()
value = max([v[0] for v in fields[0].data])
- print("Max displacement value = " + str(value))
+ print(f"Max displacement value = {value}")
return value
# %%
diff --git a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py.md5 b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py.md5
index 54da4e88..c33c3f3a 100644
--- a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py.md5
+++ b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.py.md5
@@ -1 +1 @@
-6bffdebfc8d1a7ea05e77e7d5d51f6d8
\ No newline at end of file
+7aead5b45c831406bad93837de8c63f7
\ No newline at end of file
diff --git a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.rst b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.rst
index a4dec18c..2addd24a 100644
--- a/doc/source/examples/00-systemcoupling/parametric_sweep_vel.rst
+++ b/doc/source/examples/00-systemcoupling/parametric_sweep_vel.rst
@@ -10,7 +10,7 @@
.. note::
:class: sphx-glr-download-link-note
- Click :ref:`here
`
+ :ref:`Go to the end `
to download the full example code
.. rst-class:: sphx-glr-example-title
@@ -158,7 +158,7 @@ the ``solve_coupled_analysis`` command in a sequence of analyses.
session.setup.boundary_conditions.velocity_inlet[
"wall_inlet"
].vmag.value = inlet_velocity
- session.tui.file.write_case(case_file)
+ session.tui.file.write_case(case_file, "yes")
print(f"Inlet velocity is set to {inlet_velocity}")
@@ -244,7 +244,7 @@ maximum displacement value in the solution.
displacements = model.results.displacement()
fields = displacements.outputs.fields_container()
value = max([v[0] for v in fields[0].data])
- print("Max displacement value = " + str(value))
+ print(f"Max displacement value = {value}")
return value
@@ -400,36 +400,43 @@ Finally, call the ``plot()`` function to generate a plot from the arrays.
symmetry2
symmetry1
Done.
+
+ Writing to MILIDBOYD1:"C:\Users\idboyd\AppData\Local\ansys_systemcoupling_core\ansys_systemcoupling_core\examples\Fluent\case.cas.h5" in NODE0 mode and compression level 1 ...
+ 58065 cells, 1 zone ...
+ 187138 faces, 8 zones ...
+ 71280 nodes, 1 zone ...
+ Done.
+ Done.
Inlet velocity is set to 5.0
Setting up the coupled analysis.
Solving the coupled analysis. This may take a while....
...done.
Extracting max displacement value
- Max displacement value = 0.7212533247210161
+ Max displacement value = 0.052365485950746894
Inlet velocity is set to 10.0
Setting up the coupled analysis.
Solving the coupled analysis. This may take a while....
...done.
Extracting max displacement value
- Max displacement value = 0.7212533247210161
+ Max displacement value = 0.19232826989790763
Inlet velocity is set to 15.0
Setting up the coupled analysis.
Solving the coupled analysis. This may take a while....
...done.
Extracting max displacement value
- Max displacement value = 0.7212533248804374
+ Max displacement value = 0.37276751732600016
Inlet velocity is set to 20.0
Setting up the coupled analysis.
Solving the coupled analysis. This may take a while....
...done.
Extracting max displacement value
- Max displacement value = 0.7212533252263177
+ Max displacement value = 0.5624418883785633
Inlet velocity is set to 25.0
Setting up the coupled analysis.
Solving the coupled analysis. This may take a while....
...done.
Extracting max displacement value
- Max displacement value = 0.7212533244801425
+ Max displacement value = 0.7212533237739663
@@ -437,7 +444,7 @@ Finally, call the ``plot()`` function to generate a plot from the arrays.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 13 minutes 51.498 seconds)
+ **Total running time of the script:** ( 14 minutes 59.902 seconds)
.. _sphx_glr_download_examples_00-systemcoupling_parametric_sweep_vel.py:
@@ -447,6 +454,8 @@ Finally, call the ``plot()`` function to generate a plot from the arrays.
.. container:: sphx-glr-footer sphx-glr-footer-example
+
+
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: parametric_sweep_vel.py `
diff --git a/doc/source/examples/00-systemcoupling/parametric_sweep_vel_codeobj.pickle b/doc/source/examples/00-systemcoupling/parametric_sweep_vel_codeobj.pickle
index 43b35516..30e83fee 100644
Binary files a/doc/source/examples/00-systemcoupling/parametric_sweep_vel_codeobj.pickle and b/doc/source/examples/00-systemcoupling/parametric_sweep_vel_codeobj.pickle differ
diff --git a/doc/source/examples/00-systemcoupling/sg_execution_times.rst b/doc/source/examples/00-systemcoupling/sg_execution_times.rst
index 39062d44..9c3666f6 100644
--- a/doc/source/examples/00-systemcoupling/sg_execution_times.rst
+++ b/doc/source/examples/00-systemcoupling/sg_execution_times.rst
@@ -3,12 +3,13 @@
.. _sphx_glr_examples_00-systemcoupling_sg_execution_times:
+
Computation times
=================
-**16:14.309** total execution time for **examples_00-systemcoupling** files:
+**14:59.902** total execution time for **examples_00-systemcoupling** files:
+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_examples_00-systemcoupling_parametric_sweep_vel.py` (``parametric_sweep_vel.py``) | 13:51.498 | 0.0 MB |
+| :ref:`sphx_glr_examples_00-systemcoupling_parametric_sweep_vel.py` (``parametric_sweep_vel.py``) | 14:59.902 | 0.0 MB |
+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_examples_00-systemcoupling_oscillating_plate.py` (``oscillating_plate.py``) | 02:22.811 | 0.0 MB |
+| :ref:`sphx_glr_examples_00-systemcoupling_oscillating_plate.py` (``oscillating_plate.py``) | 00:00.000 | 0.0 MB |
+--------------------------------------------------------------------------------------------------+-----------+--------+
diff --git a/doc/source/examples/index.rst b/doc/source/examples/index.rst
index 39428238..98ae8921 100644
--- a/doc/source/examples/index.rst
+++ b/doc/source/examples/index.rst
@@ -38,12 +38,12 @@ interrogation of the data model, and running the System Coupling solver to perfo
.. raw:: html
-
+
.. only:: html
.. image:: /examples/00-systemcoupling/images/thumb/sphx_glr_oscillating_plate_thumb.png
- :alt: Oscillating plate
+ :alt:
:ref:`sphx_glr_examples_00-systemcoupling_oscillating_plate.py`
@@ -60,7 +60,7 @@ interrogation of the data model, and running the System Coupling solver to perfo
.. only:: html
.. image:: /examples/00-systemcoupling/images/thumb/sphx_glr_parametric_sweep_vel_thumb.png
- :alt: Parametric sweep
+ :alt:
:ref:`sphx_glr_examples_00-systemcoupling_parametric_sweep_vel.py`
@@ -79,6 +79,7 @@ interrogation of the data model, and running the System Coupling solver to perfo
:hidden:
:includehidden:
+
/examples/00-systemcoupling/index.rst
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 32367d97..17a7e017 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -20,7 +20,7 @@ System Coupling is software for solving multiphysics problems by connecting inde
solvers and coordinating the exchange of the solution data. This enables accurate capturing of the
complex interactions between physical models, typically simulated in separate solvers.
-System Coupling connects to several existing Ansys physics solvers, including Ansys CFX,
+System Coupling connects to several existing Ansys physics solvers, including Ansys Fluent, Ansys CFX,
Ansys Forte, Ansys MAPDL, and Ansys Electronics Desktop. Examples of problems that can be solved
by System Coupling include Fluid-Structure Interaction (FSI), Conjugate Heat Transfer (CHT), and Joule
Heating.
@@ -61,7 +61,7 @@ local copy of System Coupling.
.. TODO Add the appropriate link when available.
For more information about System Coupling,
-visit the Ansys System Coupling page on the Ansys website.
+visit the `Ansys System Coupling page `_ on the Ansys website.
Project index
==============
diff --git a/examples/00-systemcoupling/parametric_sweep_vel.py b/examples/00-systemcoupling/parametric_sweep_vel.py
index 9d895124..12959b64 100644
--- a/examples/00-systemcoupling/parametric_sweep_vel.py
+++ b/examples/00-systemcoupling/parametric_sweep_vel.py
@@ -111,7 +111,7 @@ def set_inlet_velocity(working_dir, inlet_velocity):
session.setup.boundary_conditions.velocity_inlet[
"wall_inlet"
].vmag.value = inlet_velocity
- session.tui.file.write_case(case_file)
+ session.tui.file.write_case(case_file, "yes")
print(f"Inlet velocity is set to {inlet_velocity}")
@@ -171,7 +171,7 @@ def extract_max_displacement(working_dir):
displacements = model.results.displacement()
fields = displacements.outputs.fields_container()
value = max([v[0] for v in fields[0].data])
- print("Max displacement value = " + str(value))
+ print(f"Max displacement value = {value}")
return value
# %%
diff --git a/pyproject.toml b/pyproject.toml
index 8692332f..6fd68f83 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-systemcoupling-core"
-version = "0.1.2"
+version = "0.1.3"
description = "A Python wrapper for Ansys System Coupling."
readme = "README.rst"
requires-python = ">=3.7"