-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
132 additions
and
30 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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ templates: | |
|
||
If your issue does not fit into one of these categories, create your own issue. | ||
|
||
To reach the PyAnsys support team, email `pyansys.support@ansys.com <pyansys_support_>`_. | ||
To reach the PyAnsys support team, email `pyansys.core@ansys.com <[email protected]>`_. | ||
|
||
|
||
Build documentation | ||
|
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
Handling arrays between PyAnsys Math and Python | ||
=============================================== | ||
|
||
|
||
Sending arrays to PyAnsys Math | ||
------------------------------ | ||
|
||
.. code:: python3 | ||
import numpy as np | ||
import ansys.math.core.math as pymath | ||
# Start PyAnsys Math as a service. | ||
mm = pymath.AnsMath() | ||
a = np.random.random((2, 3)) | ||
a_pymath = mm.matrix(a, name="A") | ||
print(a_pymath) | ||
.. rst-class:: sphx-glr-script-out | ||
|
||
.. code-block:: none | ||
A: | ||
[1,1]: 4.018e-01 [1,2]: 4.635e-01 [1,3]: 3.682e-01 | ||
[2,1]: 9.711e-01 [2,2]: 7.601e-02 [2,3]: 8.833e-01 | ||
Transfer a PyAnsys Math matrix to NumPy | ||
--------------------------------------- | ||
|
||
.. code:: python3 | ||
a_python = a_pymath.asarray() | ||
print((a == a_python).all()) | ||
.. rst-class:: sphx-glr-script-out | ||
|
||
.. code-block:: none | ||
True | ||
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,31 @@ | ||
.. _ref_user_guide: | ||
|
||
User guide | ||
========== | ||
|
||
Overview | ||
-------- | ||
|
||
You can use the ``AnsMath()`` method to launch an instance of PyAnsys Math. | ||
|
||
.. code:: python3 | ||
import ansys.math.core.math as pymath | ||
# Start PyAnsys Math. | ||
mm = pymath.AnsMath() | ||
print(mm) | ||
.. rst-class:: sphx-glr-script-out | ||
|
||
.. code-block:: none | ||
APDLMATH PARAMETER STATUS- ( 0 PARAMETERS DEFINED) | ||
Name Type Mem. (MB) Dims Workspace | ||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 1 | ||
|
||
arrays.rst |
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
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