1
1
Getting started
2
2
===============
3
+ To run PyDYNA, you must have an installation of Ansys LS-DYNA.
4
+ PyDYNA supports LS-DYNA 2023 R2 and later.
5
+
6
+ For more information on getting a licensed copy of LS-DYNA, visit
7
+ the `LS-DYNA <https://www.ansys.com/products/structures/ansys-ls-dyna >`_
8
+ page on the Ansys website.
3
9
4
- ************
5
10
Installation
6
- ************
11
+ ------------
7
12
8
- Python module
9
- ~~~~~~~~~~~~~
13
+ The `` ansys.dyna.core `` package supports Python 3.8 through
14
+ Python 3.11 on Windows, Linux, and MacOS.
10
15
11
- The ``ansys.dyna.core `` package currently supports Python 3.8 through
12
- Python 3.10 on Windows, Mac OS, and Linux.
16
+ You should consider installing PyDYNA in a virtual environment.
17
+ For more information, see Python's
18
+ `venv -- Creation of virtual environments <https://docs.python.org/3/library/venv.html >`_.
13
19
14
- Install the latest release from
15
- ` PyPI < pydyna_pypi _>`_ with :
20
+ Install the latest release from ` PyPI < pydyna_pypi _>`_ with this
21
+ command :
16
22
17
23
.. code :: console
18
24
19
25
pip install ansys-dyna-core
20
26
21
- Alternatively, install the latest from
22
- `PyDyna GitHub < pydyna_issues _ >`_ via :
27
+ Alternatively, install the latest release from the
28
+ `GitHub repository < pydyna_repo _ >`_ with this command :
23
29
24
30
.. code :: console
25
31
26
32
pip install git+https://github.com/pyansys/pydyna.git
27
33
28
-
29
- For a local *development * version, install with:
34
+ If you plan on doing local *development * of PyDYNA with Git,
35
+ install the latest ``ansys-dyna.core `` package with these
36
+ commands:
30
37
31
38
.. code :: console
32
39
33
40
git clone https://github.com/pyansys/pydyna.git
34
41
cd pydyna
35
42
pip install -e .
36
43
37
- This allows you to install the `` ansys-dyna-core `` module
38
- and modify it locally and have the changes reflected in your setup
39
- after restarting the Python kernel.
44
+ The preceding commands install the package and allow you to modify it locally,
45
+ with your changes reflected in your Python setup after restarting the
46
+ Python kernel.
40
47
41
48
Offline installation
42
49
~~~~~~~~~~~~~~~~~~~~
43
- If you lack an internet connection on your install machine, the recommended way
44
- of installing PyDyna is downloading the wheelhouse archive from the
45
- ` Releases Page < pydyna_releases _>`_ for your corresponding
46
- machine architecture .
50
+ If you lack an internet connection on your installation machine, the
51
+ recommended way of installing PyDYNA is to download the wheelhouse archive
52
+ for your corresponding machine architecture from the GitHub repository's
53
+ ` Releases < pydyna_releases _>`_ page .
47
54
48
55
Each wheelhouse archive contains all the Python wheels necessary to install
49
- PyDyna from scratch on Windows and Linux for Python 3.8 through 3.11. You can install
50
- this on an isolated system with a fresh Python or on a virtual environment.
56
+ PyDYNA from scratch on Windows and Linux for Python 3.8 through 3.11. You can install
57
+ PyDYNA on an isolated system with a fresh Python installation or on a virtual environment.
51
58
52
- For example, on Linux with Python 3.8, unzip it and install it with the following:
59
+ For example, on Linux with Python 3.8, unzip the wheelhouse archive and install PyDYNA
60
+ with these commands:
53
61
54
62
.. code :: console
55
63
56
64
unzip ansys-dyna-core-v0.3.1-wheelhouse-ubuntu-latest-3.8.zip wheelhouse
57
65
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
58
66
59
- If you're on Windows with Python 3.8, unzip to a ``wheelhouse `` directory and
60
- install using the preceding command.
67
+ If you're on Windows with Python 3.8, unzip thw wheelhouse archive to a ``wheelhouse ``
68
+ directory and install PyDYNA using the preceding command.
61
69
62
70
Consider installing using a `virtual environment <using_venv _>`_.
63
71
@@ -66,6 +74,6 @@ Consider installing using a `virtual environment <using_venv_>`_.
66
74
67
75
.. LINKS
68
76
.. _pydyna_pypi : https://pypi.org/projects/ansys-dyna-core/
77
+ .. _pydyna_repo : https://github.com/ansys/pydyna/
69
78
.. _pydyna_releases : https://github.com/ansys/pydyna/releases
70
79
.. _pydyna_issues : https://github.com/ansys/pydyna/issues
71
- .. _using_venv : https://docs.python.org/3/library/venv.html
0 commit comments