-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Start pydyna pre server locally | ||
Check failure on line 1 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L1
Raw output
Check failure on line 1 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L1
Raw output
|
||
=============================== | ||
|
||
There are two ways to start the pydyna pre server | ||
Check failure on line 4 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L4
Raw output
Check failure on line 4 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L4
Raw output
|
||
|
||
1.Start server manually | ||
Check warning on line 6 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L6
Raw output
|
||
----------------------- | ||
|
||
* Run this command in the current folder: | ||
|
||
.. code:: console | ||
python kwserver.py | ||
2.Start server automatically | ||
Check warning on line 15 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L15
Raw output
|
||
---------------------------- | ||
|
||
Start server on Windows | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. Set environment variable: | ||
|
||
.. code:: bash | ||
Variable name: ANSYS_PYDYNA_PRE_SERVER_PATH | ||
variable value: <The file path of this package> | ||
example of variable value: C:\pydyna\ansys-pydyna-pre-server | ||
Start server on Linux | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. Set environment variable: | ||
|
||
.. code:: bash | ||
ANSYS_PYDYNA_PRE_SERVER_PATH=<The file path of this package> | ||
example of variable value: /home/lstc/ansys-pydyna-pre-server | ||
Run an example on the client side | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code:: bash | ||
hostname = "localhost" | ||
if len(sys.argv) > 1: | ||
hostname = sys.argv[1] | ||
solution = DynaSolution(hostname) | ||
...... | ||
#. The function of DynaSolution() will start the pre server automatically. | ||
Check warning on line 52 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L52
Raw output
Check failure on line 52 in doc/source/getting-started/SERVER_PRE_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_PRE_README.rst#L52
Raw output
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
Start pydyna solver server locally | ||
Check failure on line 1 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L1
Raw output
|
||
================================== | ||
|
||
Prerequisites | ||
------------- | ||
|
||
Start server on Windows | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. If you want to start the server on Windows,please ensure that you have installed the ANSYS locally. | ||
|
||
Start server on Linux(Centos7) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. If you want to start the server on Linux,please ensure that you have installed the openmpi package. | ||
Check failure on line 15 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L15
Raw output
|
||
|
||
.. code:: bash | ||
yum install openmpi3 openmpi3-dev | ||
#. set environment variable for openmpi | ||
Check failure on line 21 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L21
Raw output
|
||
|
||
.. code:: bash | ||
export LD_LIBRARY_PATH=/usr/lib64/openmpi3/lib:$LD_LIBRARY_PATH | ||
export PATH=/usr/lib64/openmpi3/bin:$PATH | ||
There are two ways to start the pydyna solver server | ||
Check failure on line 29 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L29
Raw output
|
||
==================================================== | ||
|
||
1.Start server manually | ||
Check warning on line 32 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L32
Raw output
|
||
----------------------- | ||
|
||
* Run this command in the current folder: | ||
|
||
.. code:: console | ||
python server.py | ||
2.Start server automatically | ||
Check warning on line 41 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L41
Raw output
|
||
---------------------------- | ||
|
||
Start server on Windows | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. Set environment variable: | ||
|
||
.. code:: bash | ||
Variable name: ANSYS_PYDYNA_SOLVER_SERVER_PATH | ||
variable value: <The file path of this package> | ||
example of variable value: C:\pydyna\ansys-pydyna-solver-server | ||
Start server on Linux(Centos7) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. Set environment variable: | ||
|
||
.. code:: bash | ||
ANSYS_PYDYNA_SOLVER_SERVER_PATH=<The file path of this package> | ||
example of variable value: /home/lstc/ansys-pydyna-solver-server | ||
Run an example on the client side | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code:: bash | ||
import ansys.dyna.core.solver as solver | ||
hostname = "localhost" | ||
port = "5000" | ||
dyna=solver.DynaSolver(hostname,port) # connect to the server | ||
dyna.push("./output/ball_plate.k") # push an input file | ||
dyna.start_locally(input = "ball_plate.k",nproc=1) | ||
#. The function of solver.DynaSolver() will start the solver server automatically. | ||
Check failure on line 80 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L80
Raw output
Check warning on line 80 in doc/source/getting-started/SERVER_SOLVER_README.rst GitHub Actions / vale[vale] doc/source/getting-started/SERVER_SOLVER_README.rst#L80
Raw output
|
This file was deleted.