-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved conveter, added docs, added back translator
- Loading branch information
1 parent
1046eaa
commit 23e2627
Showing
10 changed files
with
1,450 additions
and
277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
ANSYS Object Methods | ||
-------------------- | ||
.. autoclass:: pyansys.ANSYS | ||
:members: |
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,40 @@ | ||
ANSYS Functions | ||
=============== | ||
These functions can be called directly from an ``ANSYS`` object. This is to simplifiy calling ANSYS, especially when inputs are variables within Python. For example, the following two commands are equivalent: | ||
|
||
.. code:: python | ||
ansys.K(1, 0, 0, 0) | ||
ansys.Run('K, 1, 0, 0, 0') | ||
This approach has some obvious advantages, chiefly that it's a bit easier to script as ``pyansys`` takes care of the string formatting for you. For example, inputting points from a numpy array: | ||
|
||
.. code:: python | ||
# make 10 random keypoints in ANSYS | ||
points = np.random.random((10, 3)) | ||
for i, (x, y, z) in enumerate(points): | ||
ansys.K(i + 1, x, y, z) | ||
Additionally, exceptions are caught and handled within Python. | ||
|
||
.. code:: python | ||
>>> ansys.Run('AL, 1, 2, 3') | ||
Exception: | ||
AL, 1, 2, 3 | ||
DEFINE AREA BY LIST OF LINES | ||
LINE LIST = 1 2 3 | ||
(TRAVERSED IN SAME DIRECTION AS LINE 1) | ||
*** ERROR *** CP = 0.338 TIME= 09:45:36 | ||
Keypoint 1 is referenced by only one line. Improperly connected line | ||
set for AL command. | ||
Available Commands | ||
================== | ||
.. autoclass:: pyansys.ansys_functions._InternalANSYS | ||
:members: |
Oops, something went wrong.