Metadata-Version: 2.1
Name: pansys
Version: 0.1
Summary: Work with Ansys through python
Home-page: https://github.com/idling-mind/pansys
Author: Najeem Muhammed
Author-email: najeem@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Topic :: Scientific/Engineering
Description-Content-Type: text/markdown
Requires-Dist: pexpect
Requires-Dist: pandas

# 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.

```python
    from pansys import Ansys
    ans = Ansys()
```

Now you're ready to send commands to your newly created ansys session.

```python
    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.

```python
    nmax = ans.get("node","","num","max")
    ncount = ans.get("node","","count","")
```

Using ``get_list()`` function, you can get any ansys list item as well.

```python
    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.

```python
    ans = Ansys(host="remotesystem")
```

Look into the documentation to get to know the API better.

