diff --git a/docker/pre/README.rst b/docker/pre/README.rst index 1e9334ed5..a5a5e5d6c 100644 --- a/docker/pre/README.rst +++ b/docker/pre/README.rst @@ -25,7 +25,7 @@ Prerequisites instructions from `this page `_. * Download the latest Linux release artifacts for the ``pre`` Docker container: - `linux-binaries.zip `_. + `linux-binaries.zip `_. * Move this ZIP file to the ``docker/pre`` directory. diff --git a/docker/solver/README.rst b/docker/solver/README.rst index eb7a9cf5a..165593308 100644 --- a/docker/solver/README.rst +++ b/docker/solver/README.rst @@ -25,7 +25,7 @@ Prerequisites instructions from `this page `_. * Download the latest Linux release artifacts for the ``solver`` Docker container: - `mppdyna_docker_centos7.zip `_. + `mppdyna_docker_centos7.zip `_. * Move this ZIP file to the ``docker/solver`` directory and unzip it in the same directory. diff --git a/examples/Airbag/airbag_deploy.py b/examples/Airbag/airbag_deploy.py index df73b39ef..48c29b3fe 100644 --- a/examples/Airbag/airbag_deploy.py +++ b/examples/Airbag/airbag_deploy.py @@ -30,12 +30,15 @@ ) ############################################################################### -# Manually start the ``pre`` service +# Start the ``pre`` service # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server`` folder to a desired location. -# Start the ``pre`` service at this location by running this command: -# -# ``python kwserver.py`` +# Before starting the ``pre`` service, you must ensure that the Docker container +# for this service has been started. For more information, see "Start the Docker +# container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` service is running, you can connect a client to it using # the hostname and port. This example uses the default localhost and port diff --git a/examples/Explicit/ball_plate.py b/examples/Explicit/ball_plate.py index 18bb7097a..698668f98 100644 --- a/examples/Explicit/ball_plate.py +++ b/examples/Explicit/ball_plate.py @@ -42,6 +42,10 @@ # Before starting the ``pre`` service, you must ensure that the Docker container # for this service has been started. For more information, see "Start the Docker # container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` service is running, you can connect a client to it using # the host name and port. This code uses the default localhost and port diff --git a/examples/Explicit/belted_dummy.py b/examples/Explicit/belted_dummy.py index ea2edd0c1..e7cc2e197 100644 --- a/examples/Explicit/belted_dummy.py +++ b/examples/Explicit/belted_dummy.py @@ -44,12 +44,15 @@ # sphinx_gallery_thumbnail_path = '_static/pre/explicit/belted_dummy.png' ############################################################################### -# Manually start the ``pre`` service +# Start the ``pre`` service # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server`` folder to a desired location. -# Start the ``pre`` service at this location by running this command: -# -# ``python kwserver.py`` +# Before starting the ``pre`` service, you must ensure that the Docker container +# for this service has been started. For more information, see "Start the Docker +# container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` service is running, you can connect a client to it using # the host name and port. This example uses the default localhost and port diff --git a/examples/Implicit/camry_rc.py b/examples/Implicit/camry_rc.py index 4af252c10..68dbd17b4 100644 --- a/examples/Implicit/camry_rc.py +++ b/examples/Implicit/camry_rc.py @@ -41,12 +41,15 @@ from ansys.dyna.core.pre import examples ############################################################################### -# Manually start the ``pre`` service +# Start the ``pre`` service # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server`` folder to a desired location. -# Start the ``pre`` service at this location by running this command: -# -# ``python kwserver.py`` +# Before starting the ``pre`` service, you must ensure that the Docker container +# for this service has been started. For more information, see "Start the Docker +# container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` service is running, you can connect a client to it using # the hostname and port. This example uses the default localhost and port diff --git a/examples/NVH/frf_plate_damping.py b/examples/NVH/frf_plate_damping.py index 3ac9cc8e7..270c7f0b9 100644 --- a/examples/NVH/frf_plate_damping.py +++ b/examples/NVH/frf_plate_damping.py @@ -31,12 +31,15 @@ from ansys.dyna.core.pre import examples # sphinx_gallery_thumbnail_path = '_static/pre/nvh/frf_plate_damping.png' ############################################################################### -# Manually start the ``pre`` service +# Start the ``pre`` service # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server`` folder to a desired location. -# Start the ``pre`` service at this location by running this command: -# -# ``python kwserver.py`` +# Before starting the ``pre`` service, you must ensure that the Docker container +# for this service has been started. For more information, see "Start the Docker +# container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` service is running, you can connect a client to it using # the hostname and port. This example uses the default localhost and port diff --git a/examples/Thermal/thermal_stress.py b/examples/Thermal/thermal_stress.py index ffa5d5719..9510369e4 100644 --- a/examples/Thermal/thermal_stress.py +++ b/examples/Thermal/thermal_stress.py @@ -29,12 +29,15 @@ from ansys.dyna.core.pre import examples # sphinx_gallery_thumbnail_path = '_static/pre/thermal/thermal.png' ############################################################################### -# Manually start the ``pre`` service +# Start the ``pre`` service # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# Copy the ``pyDyna/src/ansys/dyna/core/pre/Server``folder to a desired location. -# Start the ``pre`` service at this location by running this command: -# -# ``python kwserver.py`` +# Before starting the ``pre`` service, you must ensure that the Docker container +# for this service has been started. For more information, see "Start the Docker +# container for the ``pre`` service" in https://dyna.docs.pyansys.com/version/stable/index.html. +# +# The ``pre`` service can also be started locally, please download the latest version of +# ansys-pydyna-pre-server.zip package from https://github.com/ansys/pydyna/releases and start it +# refering to the README.rst file in this server package. # # Once the ``pre`` servic is running, you can connect a client to it using # the hostname and the port. This example uses the default local host and port diff --git a/src/ansys/dyna/core/solver/dynasolver.py b/src/ansys/dyna/core/solver/dynasolver.py index cc864e065..5015283f8 100644 --- a/src/ansys/dyna/core/solver/dynasolver.py +++ b/src/ansys/dyna/core/solver/dynasolver.py @@ -10,6 +10,7 @@ import queue import sys import threading +from time import sleep from ansys.api.dyna.v0 import dynasolver_pb2 import grpc