Skip to content

Commit 295c930

Browse files
authored
Relate terminology of package names with service names (#253)
1 parent 6c4055d commit 295c930

File tree

17 files changed

+170
-134
lines changed

17 files changed

+170
-134
lines changed

README.rst

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,24 @@ finally postprocess the results.
3939
In the PyDYNA installation, the ``docker`` directory has two child
4040
directories:
4141

42-
- ``pre``: Provides the interface for creating DYNA input decks.
43-
This service includes highly abstracted APIs for setting up
44-
LS-DYNA input decks. Included are DynaMech, DynaIGA, DynaICFD,
45-
DynaSALE, DynaEM, and DynaAirbag.
46-
- ``solver``: Contains the code for interfacing directly with
47-
the Ansys LS-DYNA solver. Because LS-DYNA is primarily a batch
48-
solver with very limited interactive capabilities, the code in
49-
this directory is similarly limited. The target use case is that
50-
LS-DYNA is running in a container environment such as Docker or
51-
Kubernetes. The code in the ``solver`` directory allows you to push
52-
input files to the container, start LS-DYNA and monitor its progress,
53-
and then retrieve results (RST) files.`
42+
- ``pre``: Contains the package with the ``ls-pre`` Docker image for the
43+
``pre`` service. This service provides highly abstracted APIs for creating and
44+
setting up DYNA input decks for DynaMech, DynaIGA, DynaICFD, DynaSALE, DynaEM,
45+
and DynaAirbag.
46+
- ``solver``: Contains the package with the ``dynasolver`` Docker image
47+
for the ``solver`` service. This service provides highly abstracted
48+
APIs for interacting directly with the Ansys LS-DYNA solver. Because LS-DYNA
49+
is primarily a batch solver with very limited interactive capabilities, the
50+
``solver`` service is similarly limited. The target use case is that LS-DYNA is
51+
running in a container environment such as Docker or Kubernetes. Using this
52+
service, you can push input files to the container, start LS-DYNA
53+
and monitor its progress, and then retrieve Ansys solver results (RST)
54+
files.
5455

5556
Once you have results, you can use the Ansys Data Processing Framework (DPF),
5657
which is designed to provide numerical simulation users and engineers
5758
with a toolbox for accessing and transforming simulation data. DPF
58-
can access data from Ansys solver result files and from several
59+
can access data from Ansys solver RST files and from several
5960
files with neutral formats, including CSV, HDF5, and VTK. Using DPF's
6061
various operators, you can manipulate and transform this data.
6162

@@ -64,22 +65,31 @@ a simplified Python interface to DPF, thus enabling rapid postprocessing
6465
without ever leaving a Python environment. For more information on DPF-Post,
6566
see the `DPF-Post documentation <https://post.docs.pyansys.com>`_.
6667

67-
Documentation
68-
=============
69-
For comprehesive information on PyDYNA, see the latest release
70-
`documentation <https://dyna.docs.pyansys.com/>`_.
68+
Documentation and issues
69+
========================
70+
Documentation for the latest stable release of PyDyna is hosted at `PyDYNA documentation
71+
<https://dyna.docs.pyansys.com/version/stable//>`_.
7172

72-
On the `PyDyna Issues <https://github.com.mcas.ms/pyansys/pyDyna/issues>`_ page, you can create
73-
issues to submit questions, report bugs, and request new features. To reach
74-
the PyAnsys support team, email `[email protected] <[email protected]>`_.
73+
In the upper right corner of the documentation's title bar, there is an option for switching from
74+
viewing the documentation for the latest stable release to viewing the documentation for the
75+
development version or previously released versions.
76+
77+
On the `PyDYNA Issues <https://github.com/ansys/pydyna/issues>`_ page, you can create issues to
78+
report bugs and request new features. On the `PyDYNA Discussions <https://github.com/ansys/pydyna/discussions>`_
79+
page or the `Discussions <https://discuss.ansys.com/>`_ page on the Ansys Developer portal,
80+
you can post questions, share ideas, and get community feedback.
81+
82+
To reach the project support team, email `[email protected] <[email protected]>`_.
7583

7684
Usage
7785
=====
78-
Here is a basic preprocessing example:
79-
80-
Get the input file from (``<repository-root-folder>/src/ansys/dyna/core/pre/examples/explicit/ball_plate/ball_plate.k``)
86+
The next few sections show how to preprocess, solve, and postprocess a ball plate example.
8187

82-
The follow example can be obtained from (``<repository-root-folder>/examples/Explicit/ball_plate.py``)
88+
Preprocess
89+
----------
90+
The following code preprocesses a ball plate example. In the repository, you can get the
91+
input file from ``src/ansys/dyna/core/pre/examples/explicit/ball_plate/ball_plate.k`` and
92+
the Python file from ``examples/Explicit/ball_plate.py``.
8393

8494
.. code:: python
8595
@@ -162,9 +172,10 @@ The follow example can be obtained from (``<repository-root-folder>/examples/Exp
162172
downloadfile = os.path.join(downloadpath,"ball_plate.k")
163173
solution.download(serveroutfile,downloadfile)
164174
165-
Here is a basic solving example:
166-
167-
The follow example can be obtained from (``<repository-root-folder>/examples/solver/ball_plate_solver.py``)
175+
Solve
176+
-----
177+
The following code solves this basic ball plate example. In the repository,
178+
you can get the Python file from ``examples/solver/ball_plate_solver.py``.
168179

169180
.. code:: python
170181
@@ -177,7 +188,10 @@ The follow example can be obtained from (``<repository-root-folder>/examples/sol
177188
dyna.start(4) # start 4 ranks of mppdyna
178189
dyna.run("i=ball_plate.k memory=10m ncycle=20000") # begin execution
179190
180-
Here is a basic postprocessing example:
191+
192+
Postprocess
193+
-----------
194+
The following code postprocesses results from the solve of this basic ball plate example:
181195

182196
.. code:: python
183197

doc/source/contributing.rst

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
Contribute
22
==========
33

4-
Overall guidance on contributing to a PyAnsys repository appears in the
5-
`PyAnsys Developer's Guide <https://dev.docs.pyansys.com/>`_. Ensure that you
6-
are thoroughly familiar with this guide before attempting to contribute to PyDYNA.
4+
Overall guidance on contributing to a PyAnsys library appears in the
5+
`Contributing <dev_guide_contributing_>`_ topic
6+
in the *PyAnsys Developer's Guide*. Ensure that you are thoroughly familiar
7+
with this guide before attempting to contribute to PyDYNA.
78

89
The following contribution information is specific to PyDYNA.
910

1011
Clone the repository
1112
--------------------
1213

13-
To clone and install the latest PyDYNA release in development mode, run this code:
14+
To clone and install the latest PyDYNA release in development mode, run these commands:
1415

1516
.. code::
1617
@@ -24,13 +25,16 @@ Post issues
2425
-----------
2526

2627
Use the `PyDYNA Issues <https://github.com/pyansys/pydyna/issues>`_
27-
page to submit questions, report bugs, and request new features. When possible,
28+
page to report bugs and request new features. When possible,
2829
use these issue templates:
2930

30-
* Bug report template
31-
* Feature request template
31+
* Bug, problem, error: For filing a bug report
32+
* Documentation issue: For requesting modifications to the documentation
33+
* Adding an example: For proposing a new example
34+
* New feature: For requesting enhancements to the code
3235

33-
If your issue does not fit into one of these template categories, create your own issue.
36+
If your issue does not fit into one of these template categories, you can click
37+
the link for opening a blank issue.
3438

3539
To reach the project support team, email `[email protected] <[email protected]>`_.
3640

doc/source/getting-started/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ page on the Ansys website.
1010
Installation
1111
============
1212
To use PyDYNA, you must install Docker images for the ``pre`` and ``solver``
13-
services and the package.
13+
services and the ``ansys.dyna.core`` package itself.
14+
1415

1516
Install Docker image for the ``pre`` service
1617
--------------------------------------------

doc/source/user-guide/index.rst

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,27 @@ User guide
44
In the PyDYNA installation, the ``docker`` directory has two child
55
directories:
66

7-
- ``pre``: Provides the interface for creating DYNA input decks.
8-
This service includes highly abstracted APIs for setting up
9-
LSN-DYNA input decks. Included are DynaMech, DynaIGA, DynaICFD,
10-
DynaSALE, DynaEM, and DynaAirbag.
11-
- ``solver``: Contains the code for interfacing directly with
12-
the Ansys LS-DYNA solver. Because LS-DYNA is primarily a batch
13-
solver with very limited interactive capabilities, the code in
14-
this directory is similarly limited. The target use case is that
15-
LS-DYNA is running in a container environment such as Docker or
16-
Kubernetes. The code in the ``solver`` directory allows you to push
17-
input files to the container, start LS-DYNA and monitor its progress,
18-
and then retrieve results (RST) files.
7+
In the PyDYNA installation, the ``docker`` directory has two child
8+
directories:
9+
10+
- ``pre``: Contains the package with the ``ls-pre`` Docker image for the
11+
``pre`` service. This service provides highly abstracted APIs for creating and
12+
setting up DYNA input decks for DynaMech, DynaIGA, DynaICFD, DynaSALE, DynaEM,
13+
and DynaAirbag.
14+
- ``solver``: Contains the package with the ``dynasolver`` Docker image
15+
for the ``solver`` service. This service provides highly abstracted
16+
APIs for interacting directly with the Ansys LS-DYNA solver. Because LS-DYNA
17+
is primarily a batch solver with very limited interactive capabilities, the
18+
``solver`` service is similarly limited. The target use case is that LS-DYNA is
19+
running in a container environment such as Docker or Kubernetes. Using this
20+
service, you can push input files to the container, start LS-DYNA
21+
and monitor its progress, and then retrieve Ansys solver results (RST)
22+
files.
1923

2024
Once you have results, you can use the Ansys Data Processing Framework (DPF),
2125
which is designed to provide numerical simulation users and engineers
2226
with a toolbox for accessing and transforming simulation data. DPF
23-
can access data from Ansys solver result files and from several
27+
can access data from Ansys solver RST files and from several
2428
files with neutral formats, including CSV, HDF5, and VTK. Using DPF's
2529
various operators, you can manipulate and transform this data.
2630

docker/pre/README.rst

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ Prerequisites
1616
1717
The ``docker`` file in the ``docker/pre`` directory is used to build the
1818
Linux-based Docker image.
19-
2019

21-
* Ensure that Docker is installed on your machine. If you do not have Docker installed,
22-
see the `Docker website <https://www.docker.com>`_ for more information.
20+
* Ensure that Docker is installed on your machine. If you do not have Docker Desktop installed,
21+
see `Overview of Docker Desktop <https://docs.docker.com/desktop/>`_ for installation links.
2322

2423
* If you are building the image on Windows, ensure that the Windows Subsystem for Linux (WSL)
2524
is installed. For installation information, see Microsoft's
@@ -28,20 +27,29 @@ Prerequisites
2827
* Download the latest Linux release artifacts for the Linux Docker container:
2928
`linux-binaries.zip <https://github.com/ansys/pydyna/releases/download/v0.3.4/linux-binaries.zip>`_.
3029

31-
* Move this ZIP file to the current location (``<repository-root-folder>/docker/pre``).
30+
* Move this ZIP file to the ``docker/pre`` directory and unzip it.
31+
32+
33+
Once all prerequisites are met, you can start the Docker container for the ``pre`` service.
3234

33-
Starting the docker container
34-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35+
Start the Docker container for the ``pre`` service
36+
--------------------------------------------------
3537

36-
There are two ways to start docker container.
38+
There are two methods for starting a Docker container for the ``pre`` service:
3739

38-
1.build image and run container
40+
- Method 1: Build the Docker image and run the image as a container
41+
- Method 2: Start the container from a ``docker-compose.yml`` file
3942

4043

44+
Method 1: Build the Docker image and run the image as a container
45+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+
To use this first method, you first build the Docker image of the ``pre`` service
47+
and then run the image as a container.
48+
4149
Build the Docker image
4250
::::::::::::::::::::::
4351

44-
Once all prerequisites are met, perform these steps to build the Docker image:
52+
To build the Docker image, perform these steps:
4553

4654
#. In your terminal, go to the ``docker`` directory.
4755
#. Run the following Docker command, replacing ``<DOCKERFILE_NAME>``
@@ -70,7 +78,8 @@ Once all prerequisites are met, perform these steps to build the Docker image:
7078
Run the image as a container
7179
::::::::::::::::::::::::::::
7280

73-
Perform these steps to run the image as a container:
81+
Once the Docker image of the ``pre`` service is built successfully, perform these steps to
82+
run this image as a container:
7483

7584
#. Run this Docker command:
7685

@@ -92,16 +101,16 @@ Perform these steps to run the image as a container:
92101
>>> c77ffd67f9fa ghcr.io/ansys/ls-pre "python3 ./linux-bin…" 7 seconds ago Up 7 seconds 0.0.0.0:50051->50051/tcp, :::50051->50051/tcp hardcore_margulis
93102
94103
95-
2.Start the container from docker-compose.yml file
96-
104+
Method 2: Start the container from a ``docker-compose.yml`` file
105+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106+
To use this second method, you start the container for the ``pre`` service from a
107+
``docker-compose.yml`` file.
97108

98-
Make sure the docker compose have been installed on your computer.
99-
For more information: https://docs.docker.com/compose/install/
100-
Ensure that Docker compose is installed on your machine. If you do not have Docker compose installed,
101-
see the `Docker website <https://docs.docker.com/compose/install/>`_ for more information.
109+
#. Ensure that Docker Compose has been installed on your computer. If Docker Compose is not
110+
installed, see `Overview of installing Docker Compose <https://docs.docker.com/compose/install/>`_
111+
in the Docker documentation.
102112

103-
* Locate yourself at ``<repository-root-folder>/docker/pre`` in your terminal.
104-
* Run this Docker command:
113+
#. In your terminal, go to the ``docker/pre`` directory and run this Docker command:
105114

106115
.. code:: bash
107116

docker/solver/README.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Build the Docker image for the ``solver`` service
22
=================================================
33

4-
You must build the Docker image for the PyDNA ``solver`` service and then
4+
You must build the Docker image for the PyDYNA ``solver`` service and then
55
run the image as a container.
66

77
Prerequisites
@@ -17,8 +17,8 @@ Prerequisites
1717
The ``docker`` file in the the ``docker/solver`` directory is used to build the
1818
Linux-based Docker image.
1919

20-
* Ensure that Docker is installed on your machine. If you do not have Docker installed,
21-
see the `Docker website <https://www.docker.com>`_ for more information.
20+
* Ensure that Docker is installed on your machine. If you do not have Docker Desktop installed,
21+
see `Overview of Docker Desktop <https://docs.docker.com/desktop/>`_ for installation links.
2222

2323
* If you are building the image on Windows, ensure that the Windows Subsystem for Linux (WSL)
2424
is installed. For installation information, see Microsoft's
@@ -27,20 +27,23 @@ Prerequisites
2727
* Download the latest Linux release artifacts for the Linux Docker container:
2828
`mppdyna_docker_centos7.zip <https://github.com/ansys/pydyna/releases/download/v0.3.4/mppdyna_docker_centos7.zip>`_.
2929

30-
* Move this ZIP file to the current location (``<repository-root-folder>/docker/solver``) and unzip the mppdyna_docker_centos7.zip file.
30+
* Move this ZIP file to the ``docker/solver`` directory and unzip it.
3131

32-
The files in this folder should look similar to this:
32+
The files in this folder should look similar to this:
3333

34-
.. code:: bash
34+
.. code:: bash
35+
36+
>>> Dockerfile README.rst do_build docker-compose.yml docker_dir mpi mppdyna_docker_centos7.zip
3537
36-
>>> Dockerfile README.rst do_build docker-compose.yml docker_dir mpi mppdyna_docker_centos7.zip
38+
Once all prerequisites are met, you can build the Docker image for the ``solver`` service.
3739

3840
Build the Docker image
3941
----------------------
4042

41-
Once all prerequisites are met, perform these steps to build the Docker image:
43+
To build the Docker image for the ``solver`` service, perform these steps:
4244

4345
#. In your terminal, go to the ``pydyna/docker/solver`` directory.
46+
4447
#. Run this Docker command:
4548

4649
.. code:: bash
@@ -66,11 +69,10 @@ Once all prerequisites are met, perform these steps to build the Docker image:
6669
Run the image as a container
6770
----------------------------
6871

69-
Perform these steps to run the image as a container:
72+
Perform these steps to run the image for the ``solver`` service as a container:
7073

7174
#. In the ``docker-compose.yml`` file, replace ``<license_server_name>`` with the correct
72-
license server hosting the DYNA license.
73-
If you are using Ansy Flexlm license
75+
license server hosting the DYNA license if you are using an Ansy FLEXlm license.
7476

7577
#. Run this Docker command:
7678

0 commit comments

Comments
 (0)