pansys
Work interactively with ANSYS mechanical APDL and python.
The pansys module helps you interact with ansys through python. Starting a panys session is as easy as setting a variable.
from pansys import Ansys
ans = Ansys()
Now you're ready to send commands to your newly created ansys session.
ans.send("/prep7")
ans.send("""n,,1
n,,2""")
As you must have guessed, ans.send command will let you send commands
from python to ansys in string format.
You can get data out of Ansys as well.
nmax = ans.get("node","","num","max")
ncount = ans.get("node","","count","")
Using get_list() function, you can get any ansys list item as well.
nodes = ans.get_list("nlist")
You can also start an ansys session in a remote machine. You will have to set up your ssh keys for this to work.
ans = Ansys(host="remotesystem")
Look into the documentation to get to know the API better.
Installation
As of now, pansys is supported only on Linux systems. You will also need ANSYS installation on your computer
(or on the remote system, if you are using the host option when you're starting pansys).
pip install pansys
The module assumes that you have ANSYS already installed in your machine. Also, the default command that the module is using
is ansys150. You can override it with the start_command keyword argument.
a = Ansys(startcommand='my_ansys_command')
If you want to change the default start command from ansys150, you can set an environment variable PANSYS_STARTCOMMAND.
The value of this environment variable will be used as the start command. This value will be overridden if you explicitly call
Ansys session with a startcommand.
Documentation
You can find the documentation at readthedocs
Metadata
Release files for pansys 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pansys-0.1.3.tar.gz | 9.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pansys-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.8 kB
Release files / pansys-0.1.3.tar.gz
| Download URL | pansys-0.1.3.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ce7ef813dd4981794fc7f1e819323d88c26e96271689f1084472ebda7abd998
|
|
BLAKE2b-256 checksum How to use checksums |
c5b123ae0152ba3ac8613856aece37edb16c7593eec71f4fb57b394874a72b5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Release files / pansys-0.1.3-py3-none-any.whl
| Download URL | pansys-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81ef9a52223661baf1139d2acdd2cde3887645541215e885121f0da9277daf5f
|
|
BLAKE2b-256 checksum How to use checksums |
6fa52b516c1a39a05be6c79df2f4e43dc95b01a1ad61860a3c877ef03de37ad1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Security for pansys 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.