Skip to content

Commit dc14183

Browse files
committed
support draw model with pyvista
1 parent 55443c4 commit dc14183

37 files changed

+11522
-54
lines changed
9.14 MB
Binary file not shown.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Start pydyna pre server locally
2+
===============================
3+
4+
There are two ways to start the pydyna pre server
5+
6+
1.Start server manually
7+
-----------------------
8+
9+
* Run this command in the current folder:
10+
11+
.. code:: console
12+
13+
python kwserver.py
14+
15+
2.Start server automatically
16+
----------------------------
17+
18+
Start server on Windows
19+
~~~~~~~~~~~~~~~~~~~~~~~
20+
21+
#. Set environment variable:
22+
23+
.. code:: bash
24+
25+
Variable name: ANSYS_PYDYNA_PRE_SERVER_PATH
26+
variable value: <The file path of this package>
27+
28+
example of variable value: C:\pydyna\ansys-pydyna-pre-server
29+
30+
Start server on Linux
31+
~~~~~~~~~~~~~~~~~~~~~
32+
33+
#. Set environment variable:
34+
35+
.. code:: bash
36+
37+
ANSYS_PYDYNA_PRE_SERVER_PATH=<The file path of this package>
38+
39+
example of variable value: /home/lstc/ansys-pydyna-pre-server
40+
41+
Run an example on the client side
42+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43+
44+
.. code:: bash
45+
46+
hostname = "localhost"
47+
if len(sys.argv) > 1:
48+
hostname = sys.argv[1]
49+
solution = DynaSolution(hostname)
50+
......
51+
52+
#. The function of DynaSolution() will start the pre server automatically.

examples/Explicit/ansys-pydyna-pre-server/ansys-pydyna-pre-server/kwprocess_pb2.py

Lines changed: 732 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Explicit/ansys-pydyna-pre-server/ansys-pydyna-pre-server/kwprocess_pb2_grpc.py

Lines changed: 5828 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)