Skip to content

Commit d50cf2f

Browse files
committed
Commit files edited through late Thursday
1 parent 41d852f commit d50cf2f

File tree

15 files changed

+986
-743
lines changed

15 files changed

+986
-743
lines changed

doc/source/_autoapi_templates/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
API reference
22
=============
33

4-
This page contains the ``ansys-dyna-core`` API reference.
4+
This section provides descriptions of PyDYNA subpackages, submodules, classes,
5+
methods, and attributes. Use the search feature or click links to view API documentation.
56

67
.. toctree::
78
:titlesonly:

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
inheritance_node_attrs = dict(shape="ellipse", fontsize=14, height=0.75, color="dodgerblue1", style="filled")
9494

9595
# -- Options for HTML output -------------------------------------------------
96-
html_short_title = html_title = "PyDyna"
96+
html_short_title = html_title = "PyDYNA"
9797
html_show_sourcelink = True
9898
html_theme = "ansys_sphinx_theme"
9999
html_logo = pyansys_logo_black

doc/source/contributing.rst

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
Contributing
2-
============
1+
Contribute
2+
==========
33

44
Overall guidance on contributing to a PyAnsys repository appears in the
5-
`Contributing <https://dev.docs.pyansys.com/overview/contributing.html>`_ topic
6-
in the *PyAnsys Developer's Guide*. Ensure that you are thoroughly familiar
7-
with it and all `Guidelines and Best Practices <https://dev.docs.pyansys.com/guidelines/index.html>`_
8-
before attempting to contribute to PyDyna.
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.
97

10-
The following contribution information is specific to PyDyna.
8+
The following contribution information is specific to PyDYNA.
119

1210
Clone the repository
1311
--------------------
1412

15-
To clone and install the latest PyDyna release in development mode, run:
13+
To clone and install the latest PyDYNA release in development mode, run this code:
1614

1715
.. code::
1816
@@ -25,44 +23,44 @@ To clone and install the latest PyDyna release in development mode, run:
2523
Post issues
2624
-----------
2725

28-
Use the `PyDyna Issues <https://github.com/pyansys/pydyna/issues>`_
29-
page to submit questions, report bugs, and request new features. When possible, you
30-
should use these issue templates:
26+
Use the `PyDYNA Issues <https://github.com/pyansys/pydyna/issues>`_
27+
page to submit questions, report bugs, and request new features. When possible,
28+
use these issue templates:
3129

3230
* Bug report template
3331
* Feature request template
3432

35-
If your issue does not fit into these categories, create your own issue.
33+
If your issue does not fit into one of these template categories, create your own issue.
3634

37-
To reach the PyAnsys team, email `[email protected] <[email protected]>`_.
35+
To reach the project support team, email `[email protected] <[email protected]>`_.
3836

3937
View documentation
4038
------------------
4139

42-
Documentation for the latest stable release of PyDyna is hosted at
43-
`PyDyna Documentation <https://dyna.docs.pyansys.com>`_.
40+
Documentation for the latest stable release of PyDYNA is hosted at
41+
`PyDYNA documentation <https://dyna.docs.pyansys.com>`_.
4442

45-
Documentation for the latest development version, which tracks the
46-
``main`` branch, is hosted at `Development PyDyna Documentation <https://dyna.docs.pyansys.com/dev/>`_.
47-
This version is automatically kept up to date via GitHub actions.
43+
In the upper right corner of the documentation’s title bar, there is an option
44+
for switching from viewing the documentation for the latest stable release to
45+
viewing the documentation for the development version or previously released versions.
4846

49-
Code style
50-
----------
47+
Adhere to code style
48+
--------------------
5149

52-
PyDyna follows the PEP8 standard as outlined in the `PyAnsys Development Guide
50+
PyDYNA follows the PEP8 standard as outlined in the `PyAnsys Developer's Guide
5351
<https://dev.docs.pyansys.com>`_ and implements style checking using
5452
`pre-commit <https://pre-commit.com/>`_.
5553

56-
To ensure your code meets minimum code styling standards, run::
54+
To ensure your code meets minimum code styling standards, run these commands::
5755

5856
pip install pre-commit
5957
pre-commit run --all-files
6058

61-
You can also install this as a pre-commit hook by running::
59+
You can also install this as a pre-commit hook by running this command::
6260

6361
pre-commit install
6462

65-
This way, it is not possible for you to push code that fails the style checks. For example::
63+
This way, it is not possible for you to push code that fails the style checks::
6664

6765
$ pre-commit install
6866
$ git commit -am "added my cool feature"
@@ -73,4 +71,4 @@ This way, it is not possible for you to push code that fails the style checks. F
7371
isort....................................................................Passed
7472
check for merge conflicts................................................Passed
7573
debug statements (python)................................................Passed
76-
Validate GitHub Workflows................................................Passed
74+
Validate GitHub Workflows................................................Passed

doc/source/getting-started/index.rst

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,71 @@
11
Getting started
22
===============
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.
39

4-
************
510
Installation
6-
************
11+
------------
712

8-
Python module
9-
~~~~~~~~~~~~~
13+
The ``ansys.dyna.core`` package supports Python 3.8 through
14+
Python 3.11 on Windows, Linux, and MacOS.
1015

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>`_.
1319

14-
Install the latest release from
15-
`PyPI <pydyna_pypi_>`_ with:
20+
Install the latest release from `PyPI <pydyna_pypi_>`_ with this
21+
command:
1622

1723
.. code:: console
1824
1925
pip install ansys-dyna-core
2026
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:
2329

2430
.. code:: console
2531
2632
pip install git+https://github.com/pyansys/pydyna.git
2733
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:
3037

3138
.. code:: console
3239
3340
git clone https://github.com/pyansys/pydyna.git
3441
cd pydyna
3542
pip install -e .
3643
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.
4047

4148
Offline installation
4249
~~~~~~~~~~~~~~~~~~~~
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.
4754

4855
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.
5158

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:
5361

5462
.. code:: console
5563
5664
unzip ansys-dyna-core-v0.3.1-wheelhouse-ubuntu-latest-3.8.zip wheelhouse
5765
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
5866
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.
6169

6270
Consider installing using a `virtual environment <using_venv_>`_.
6371

@@ -66,6 +74,6 @@ Consider installing using a `virtual environment <using_venv_>`_.
6674

6775
.. LINKS
6876
.. _pydyna_pypi: https://pypi.org/projects/ansys-dyna-core/
77+
.. _pydyna_repo: https://github.com/ansys/pydyna/
6978
.. _pydyna_releases: https://github.com/ansys/pydyna/releases
7079
.. _pydyna_issues: https://github.com/ansys/pydyna/issues
71-
.. _using_venv: https://docs.python.org/3/library/venv.html

doc/source/user-guide/index.rst

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
User guide
22
----------
33

4-
There are 3 related packages here, all under the ``ansys/dyna`` directory.
4+
In the PyDYNA installation, the ``docker`` directory has two child
5+
directories:
56

6-
PyDyna-pre provides interface to create DYNA input deck.
7+
- ``pre``: Provides the interface for creating DYNA input decks.
8+
- ``solver``: Contains the code for interfacing directly with
9+
the Ansys LS-DYNA solver. Because LS-DYNA is primarily a batch
10+
solver with very limited interactive capabilities, the code here in
11+
this directory is similarly limited. The target use case is that
12+
LS-DYNA is running in a container environment such as Docker or
13+
Kubernetes. The code in the ``solver`` directory allows you to push
14+
input files to the container, start LS-DYNA and monitor its progress,
15+
and then retrieve results (RST) files.
716

8-
PyDyna-solver contains code for interfacing with the LS-DYNA solver directly.
9-
As LS-DYNA is primarily a batch solver with very limited interactive
10-
capabilities, the code here is similarly limited. The target
11-
use case is that LS-DYNA is running in a container environment
12-
such as Docker or Kubernetes. The code here then allows for pushing
13-
input files to the container, starting LS-DYNA and monitoring its
14-
progress, and retrieving results files.
17+
Once you have results, you can use the Data Processing Framework (DPF),
18+
which is designed to provide numerical simulation users and engineers
19+
with a toolbox for accessing and transforming simulation data. DPF
20+
can access data from Ansys solver result files and from several
21+
files with neutral formats, including CSV, HDF5, and VTK. Using DPF's
22+
various operators, you can manipulate and transform this data.
1523

16-
The Data Processing Framework (DPF) is designed to provide numerical
17-
simulation users/engineers with a toolbox for accessing and
18-
transforming simulation data. DPF can access data from solver result
19-
files as well as several neutral formats (``.csv``, ``.hdf5``, ``.vtk``,
20-
etc.). Various operators are available allowing the manipulation and
21-
the transformation of this data.
22-
23-
The Python `ansys-dpf-post` package provides a simplified Python
24-
interface to DPF, thus enabling rapid postprocessing without ever
25-
leaving a Python environment.
26-
27-
Visit the `DPF-Post Documentation <https://post.docs.pyansys.com>`_ for a
28-
detailed description of the package
24+
The `ansys-dpf-post package <https://github.com/ansys/pydpf-post>`_ provides
25+
a simplified Python interface to DPF, thus enabling rapid postprocessing
26+
without ever leaving a Python environment. For more information on DPF-Post,
27+
see the `DPF-Post documentation <https://post.docs.pyansys.com>`_.

0 commit comments

Comments
 (0)