@@ -18,7 +18,7 @@ directories:
18
18
LS-DYNA is running in a container environment such as Docker or
19
19
Kubernetes. The code in the ``solver `` directory allows you to push
20
20
input files to the container, start LS-DYNA and monitor its progress,
21
- and then retrieve results (RST) files.
21
+ and then retrieve results (RST) files.`
22
22
23
23
Once you have results, you can use the Ansys Data Processing Framework (DPF),
24
24
which is designed to provide numerical simulation users and engineers
@@ -32,121 +32,6 @@ a simplified Python interface to DPF, thus enabling rapid postprocessing
32
32
without ever leaving a Python environment. For more information on DPF-Post,
33
33
see the `DPF-Post documentation <https://post.docs.pyansys.com >`_.
34
34
35
- Installation
36
- ============
37
- To use PyDYNA, you must install Docker images for the ``pre `` and ``solver ``
38
- services and the package.
39
-
40
- Install Docker image for the ``pre `` service
41
- --------------------------------------------
42
- To launch the ``pre `` service locally, you must have Docker installed
43
- on your machine.
44
-
45
- .. caution ::
46
-
47
- The ``pre `` service is available only as a Linux Docker image.
48
- Make sure that your Docker engine is configured to run Linux Docker images.
49
-
50
- For information on installing the Docker container for the ``pre `` service,
51
- see the ``README.rst `` file in the repository's ``docker/pre `` directory.
52
-
53
- Install Docker image for the ``solver `` service
54
- -----------------------------------------------
55
- Once you install the ``ansys.dyna.core `` package, you can find the
56
- ``docker-compose.yml `` file in the repository's ``docker `` directory.
57
- This file is used to build and launch the ``solver `` service.
58
-
59
- You can copy this YML file locally and run the Docker image for the
60
- ``solver `` service with this command:
61
-
62
- .. code :: bash
63
-
64
- docker-compose up
65
-
66
-
67
- Install the package
68
- -------------------
69
- The ``ansys.dyna.core `` package supports Python 3.8 through
70
- Python 3.11 on Windows, Linux, and MacOS.
71
-
72
- You should consider installing PyDYNA in a virtual environment.
73
- For more information, see Python's
74
- `venv -- Creation of virtual environments <https://docs.python.org/3/library/venv.html >`_.
75
-
76
- PyDYNA has three installation modes: user, developer, and offline.
77
-
78
- Install in user mode
79
- ~~~~~~~~~~~~~~~~~~~~
80
-
81
- Before installing PyDYNA in user mode, make sure you have the latest version of
82
- `pip `_ with this command:
83
-
84
- .. code :: bash
85
-
86
- python -m pip install -U pip
87
-
88
- Then, install PyDYNA with this command:
89
-
90
- .. code :: bash
91
-
92
- python -m pip install ansys-dyna-core
93
-
94
- .. caution ::
95
-
96
- PyDYNA is currently hosted in a private PyPI repository. You must provide the index
97
- URL to the private PyPI repository: ``https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/ ``.
98
-
99
- If access to this package registry is needed, email `
[email protected] <
mailto:[email protected] >`_
100
- to request access. The PyAnsys team can provide you with a read-only token.
101
-
102
- Once you have the token, run this command, replacing ``${PRIVATE_PYPI_ACCESS_TOKEN} `` with the
103
- read-only token:
104
-
105
- .. code :: bash
106
-
107
- pip install ansys-dyna-core --index-url=https://${PRIVATE_PYPI_ACCESS_TOKEN} @pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/simple/
108
-
109
- Install in developer mode
110
- ~~~~~~~~~~~~~~~~~~~~~~~~~
111
-
112
- Installing PyDYNA in developer mode allows you to modify the source and enhance it.
113
-
114
- .. note ::
115
-
116
- Before contributing to the project, ensure that you are thoroughly familiar
117
- with the `PyAnsys Developer's Guide `_.
118
-
119
- Start by cloning and installing the repository with these commands:
120
-
121
- .. code ::
122
-
123
- git clone https://github.com/pyansys/pyDyna
124
- cd pyDyna
125
- pip install -e .
126
-
127
- Install in offline mode
128
- ~~~~~~~~~~~~~~~~~~~~~~~
129
-
130
- If you lack an internet connection on your installation machine (or you do not have access
131
- to the private Ansys PyPI packages repository), you should install PyDYNA by downloading
132
- the wheelhouse archive for your corresponding machine architecture from the
133
- `Releases Page <https://github.com/pyansys/pydyna/releases >`_.
134
-
135
- Each wheelhouse archive contains all the Python wheels necessary to install
136
- PyDYNA from scratch on Windows and Linux for Python 3.8 through 3.11. You can install
137
- PyDYNA on an isolated system with a fresh Python installation or on a virtual environment.
138
-
139
- For example, on Linux with Python 3.8, unzip the wheelhouse archive and install PyDYNA
140
- with these commands:
141
-
142
- .. code :: bash
143
-
144
- unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.8.zip -d wheelhouse
145
- pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
146
-
147
- If you're on Windows with Python 3.8, unzip thw wheelhouse archive to a ``wheelhouse ``
148
- directory and install PyDYNA using the preceding command.
149
-
150
35
Documentation
151
36
=============
152
37
For comprehesive information on PyDYNA, see the latest release
@@ -247,9 +132,9 @@ Here is a basic solving example:
247
132
248
133
>> > import ansys.dyna.core.solver as solver
249
134
>> > dyna= solver.DynaSovler(hostname,port) # connect to the container
250
- >> > dyna.push(" input .k" ) # push an input file
135
+ >> > dyna.push(" cylinder_flow .k" ) # push an input file
251
136
>> > dyna.start(4 ) # start 4 ranks of mppdyna
252
- >> > dyna.run(" i=input .k memory=10m ncycle=20000" ) # begin execution
137
+ >> > dyna.run(" i=cylinder_flow .k memory=10m ncycle=20000" ) # begin execution
253
138
254
139
Here is a basic postprocessing example:
255
140
0 commit comments