-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve launcher documentation (#2488)
* * Reorg of getting started. * Update versions * Small fixes * Fixing vale * Shortening line * Apply suggestions from code review Co-authored-by: Kathy Pippert <[email protected]> * typo * typos * first windows commands, later linux. Making those bold titled. --------- Co-authored-by: Kathy Pippert <[email protected]>
- Loading branch information
Showing
18 changed files
with
486 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,30 @@ | ||
=============== | ||
Getting started | ||
=============== | ||
To use PyMAPDL, you must have a local installation of Ansys. The | ||
version of Ansys installed dictates the interface and features | ||
available to you. | ||
|
||
For more information on getting a licensed copy of Ansys, visit | ||
`Ansys <ansys_>`_. | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 3 | ||
|
||
install_mapdl | ||
install_pymapdl | ||
launcher | ||
learning | ||
contribution | ||
faq | ||
versioning | ||
running_mapdl | ||
docker | ||
macos | ||
wsl | ||
using_julia | ||
faq | ||
contribution | ||
make_container_link | ||
devcontainer_link | ||
|
||
|
||
.. _installation: | ||
|
||
************ | ||
Installation | ||
************ | ||
|
||
Python module | ||
~~~~~~~~~~~~~ | ||
The ``ansys.mapdl.core`` package currently supports Python 3.8 through | ||
Python 3.12 on Windows, Mac OS, and Linux. | ||
|
||
Install the latest release from | ||
`PyPi <pymapdl_pypi_>`_ with: | ||
|
||
.. code:: console | ||
pip install ansys-mapdl-core | ||
Alternatively, install the latest from | ||
`PyMAPDL GitHub <pymapdl_issues_>`_ via: | ||
|
||
.. code:: console | ||
pip install git+https://github.com/ansys/pymapdl.git | ||
For a local *development* version, install with: | ||
|
||
.. code:: console | ||
git clone https://github.com/ansys/pymapdl.git | ||
cd pymapdl | ||
pip install -e . | ||
This allows you to install the ``ansys-mapdl-core`` module | ||
and modify it locally and have the changes reflected in your setup | ||
after restarting the Python kernel. | ||
|
||
|
||
Offline installation | ||
~~~~~~~~~~~~~~~~~~~~ | ||
If you lack an internet connection on your install machine, the recommended way | ||
of installing PyMAPDL is downloading the wheelhouse archive from the | ||
`Releases Page <pymapdl_releases_>`_ for your corresponding | ||
machine architecture. | ||
|
||
Each wheelhouse archive contains all the Python wheels necessary to install | ||
PyMAPDL from scratch on Windows and Linux for Python 3.8 and 3.9. You can install | ||
this on an isolated system with a fresh Python or on a virtual environment. | ||
|
||
For example, on Linux with Python 3.8, unzip it and install it with the following: | ||
|
||
.. code:: console | ||
unzip PyMAPDL-v0.62.dev1-wheelhouse-Linux-3.8.zip wheelhouse | ||
pip install ansys-mapdl-core -f wheelhouse --no-index --upgrade --ignore-installed | ||
If you're on Windows with Python 3.9, unzip to a ``wheelhouse`` directory and | ||
install using the preceding command. | ||
|
||
Consider installing using a `virtual environment <using_venv_>`_. | ||
|
||
|
||
Ansys software requirements | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
For the latest features, you must have a copy of Ansys 2021 R1 | ||
installed locally. However, PyMAPDL is compatible with Ansys 17.0 and later | ||
on Windows and with Ansys 13.0 on Linux. | ||
|
||
.. note:: | ||
|
||
The latest versions of Ansys provide significantly better support | ||
and features. Certain features are not supported on earlier | ||
Ansys versions. | ||
|
||
For more information, see :ref:`install_mapdl`. | ||
|
||
Verify your installation | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Check that you can start MAPDL from Python by running: | ||
|
||
.. code:: pycon | ||
>>> from ansys.mapdl.core import launch_mapdl | ||
>>> mapdl = launch_mapdl() | ||
>>> print(mapdl) | ||
=============== | ||
Getting started | ||
=============== | ||
|
||
Product: ANSYS Mechanical Enterprise | ||
MAPDL Version: RELEASE 2021 R1 BUILD 21.0 | ||
PyMAPDL Version: Version: 0.58.0 | ||
To use PyMAPDL you must follow the next three steps: | ||
|
||
If you see a response from the server, congratulations. You're ready | ||
to get started using MAPDL as a service. For information on the | ||
PyMAPDL interface, see :ref:`ref_mapdl_user_guide`. | ||
* :ref:`ref_using_standard_install` | ||
* :ref:`ref_pymapdl_installation` | ||
* :ref:`ref_launch_pymapdl` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
|
||
.. _ref_using_standard_install: install_mapdl_ | ||
|
||
.. _install_mapdl: | ||
|
||
************* | ||
Install MAPDL | ||
************* | ||
|
||
|
||
The PyAnsys ``ansys-mapdl-core`` package (PyMAPDL) requires either a local or | ||
remote instance of MAPDL to communicate with it. This section covers | ||
launching and interfacing with MAPDL from a local instance by | ||
launching it from Python. | ||
|
||
MAPDL is installed by default from the Ansys standard installer. When | ||
installing Ansys, verify that the **Mechanical Products** checkbox is | ||
selected under the **Structural Mechanics** option. While the standard | ||
installer options can change, see the following figure for reference. | ||
|
||
.. figure:: ../images/unified_install_2019R1.jpg | ||
:width: 400pt | ||
|
||
|
||
If you want to avoid having to install MAPDL locally, you can use Docker. | ||
This is especially convenient if you are using a non-supported platform such | ||
as MacOS. | ||
For more information, see :ref:`ref_pymapdl_and_macos`. | ||
|
||
You can also download and try the `Ansys Student Version <ansys_student_version_>`_. | ||
A Student Version is valid during a calendar year with limited capabilities. For | ||
example, there is a limit on the number of nodes and elements. | ||
|
||
If you experience problems installing MAPDL on Linux, see | ||
:ref:`missing_dependencies_on_linux`. | ||
|
||
|
||
Ansys software requirements | ||
--------------------------- | ||
|
||
For the latest features, you must have a copy of Ansys 2021 R1 or later | ||
installed locally. However, PyMAPDL is compatible with Ansys 17.0 and later | ||
on Windows and with Ansys 13.0 on Linux. However, its usage with these older | ||
versions is discouraged. | ||
|
||
.. note:: | ||
|
||
The latest versions of Ansys provide significantly better support | ||
and features. Certain features are not supported on earlier | ||
Ansys versions. | ||
|
||
For more information, see :ref:`versions_and_interfaces`. | ||
|
||
|
||
For information on installing PyMAPDL, see :ref:`ref_pymapdl_installation`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
|
||
|
||
.. _ref_pymapdl_installation: | ||
|
||
*************** | ||
Install PyMAPDL | ||
*************** | ||
|
||
Python module | ||
~~~~~~~~~~~~~ | ||
The ``ansys.mapdl.core`` package currently supports Python 3.8 through | ||
Python 3.11 on Windows, Mac OS, and Linux. | ||
|
||
Install the latest release from `PyPi <pymapdl_pypi_>`_ with: | ||
|
||
.. code:: console | ||
pip install ansys-mapdl-core | ||
Alternatively, install the latest from | ||
`PyMAPDL GitHub <pymapdl_issues_>`_ with this command: | ||
|
||
.. code:: console | ||
pip install git+https://github.com/ansys/pymapdl.git | ||
For a local *development* version, install with these commands: | ||
|
||
.. code:: console | ||
git clone https://github.com/ansys/pymapdl.git | ||
cd pymapdl | ||
pip install -e . | ||
After installing a development version, you can modify the ``ansys-mapdl-core`` package | ||
locally and have the changes reflected in your setup after restarting the Python kernel. | ||
|
||
|
||
Offline installation | ||
~~~~~~~~~~~~~~~~~~~~ | ||
If you lack an internet connection on your installation machine, the recommended way | ||
of installing PyMAPDL is downloading the wheelhouse archive from the | ||
`Releases <pymapdl_releases_>`_ page for your corresponding | ||
machine architecture. | ||
|
||
Each wheelhouse archive contains all the Python wheels necessary to install | ||
PyMAPDL from scratch on Windows and Linux. You can install | ||
this on an isolated system with a fresh Python installation or on a virtual environment. | ||
|
||
For example, on Linux with Python 3.9, unzip the wheelhouse archive and install it with | ||
these commands: | ||
|
||
.. code:: console | ||
unzip PyMAPDL-v0.68.dev1-wheelhouse-Linux-3.9.zip wheelhouse | ||
pip install ansys-mapdl-core -f wheelhouse --no-index --upgrade --ignore-installed | ||
If you're on Windows with Python 3.9, unzip to a ``wheelhouse`` directory and | ||
install using the preceding command. | ||
|
||
Consider installing using a `virtual environment <using_venv_>`_. | ||
|
||
Verify your installation | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. note:: | ||
To use PyMAPDL, you must have a local installation of Ansys. The | ||
version of Ansys installed dictates the interface and features | ||
available to you. | ||
|
||
For more information on getting a licensed copy of Ansys, visit | ||
`Ansys <ansys_>`_. | ||
|
||
|
||
Check that you have installed the package correctly by importing the module: | ||
|
||
.. code:: pycon | ||
>>> from ansys.mapdl import core as pymapdl | ||
For information on launching PyMAPDL and connecting it | ||
to an MAPDL instance, see:ref:`ref_launch_pymapdl`. |
Oops, something went wrong.