generated from ansys/template
-
Notifications
You must be signed in to change notification settings - Fork 4
docs: remote instance #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c79bcc7
Documentation adjustments for launcher
StefanThoene 9c36d57
add launcher to cheatsheet
StefanThoene 46607f0
chore: adding changelog file 553.documentation.md [dependabot-skip]
pyansys-ci-bot 24ba616
adjust padding for contribute card
StefanThoene d4ffe88
Apply suggestions from code review
StefanThoene 9340585
Merge branch 'main' into docs/remote-instance
StefanThoene 0ee7c21
Apply Comments from Elodie
StefanThoene deab9e8
Merge remote-tracking branch 'origin/docs/remote-instance' into docs/…
StefanThoene 27ca3d6
Apply Comments from Elodie
StefanThoene a660472
fix typo
StefanThoene 87b5c7f
code review
StefanThoene efcc747
Apply Comments from Elodie
StefanThoene a222ed2
Apply Comments from Elodie
StefanThoene d79f635
Merge branch 'main' into docs/remote-instance
StefanThoene File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
remote instance |
This file contains hidden or 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 hidden or 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 hidden or 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,147 @@ | ||
.. _ref_creating_local_service: | ||
|
||
Launch a service | ||
================ | ||
|
||
To launch a Speos service you have several options: | ||
|
||
* Use python launch method to start it locally | ||
* Use Bash to start it yourself | ||
* Rely on Ansys PIM to start a service | ||
|
||
Python launcher | ||
--------------- | ||
|
||
To launch a local Speos RPC server instance use: | ||
|
||
.. code:: python | ||
|
||
from ansys.speos.core.launcher import launch_local_speos_rpc_server | ||
|
||
speos = launch_local_speos_rpc_server(version='251') | ||
|
||
You receive a ``Speos`` object in return that you then use as a Speos session. | ||
For more information you can look at the API Reference. | ||
|
||
.. button-ref:: ../../api/ansys/speos/core/launcher/index | ||
:ref-type: doc | ||
:color: primary | ||
:shadow: | ||
|
||
|
||
The session can be ended via the object ``Speos`` like this: | ||
|
||
.. code:: python | ||
|
||
speos.close() | ||
|
||
Launch a local service from the command line | ||
-------------------------------------------- | ||
|
||
To launch the service, you need to use the following commands: | ||
|
||
.. tab-set:: | ||
|
||
.. tab-item:: Windows CMD | ||
|
||
.. code-block:: bash | ||
|
||
"%AWP_ROOT251%\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe" | ||
|
||
.. tab-item:: Windows Powershell | ||
|
||
.. code-block:: bash | ||
|
||
& "$env:AWP_ROOT251\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe" | ||
|
||
.. tab-item:: Linux | ||
|
||
.. code-block:: bash | ||
|
||
$AWP_ROOT251/OpticalProducts/SPEOS_RPC/SpeosRPC_Server.x | ||
|
||
|
||
StefanThoene marked this conversation as resolved.
Show resolved
Hide resolved
|
||
To stop the server you can use the following command line: | ||
|
||
.. tab-set:: | ||
|
||
.. tab-item:: Windows CMD | ||
|
||
.. code-block:: bash | ||
|
||
"%AWP_ROOT251%\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe --stop portNumber" | ||
|
||
.. tab-item:: Windows Powershell | ||
|
||
.. code-block:: bash | ||
|
||
& "$env:AWP_ROOT251\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe --stop portNumber" | ||
|
||
.. tab-item:: Linux | ||
|
||
.. code-block:: bash | ||
|
||
$AWP_ROOT251/OpticalProducts/SPEOS_RPC/SpeosRPC_Server.x --stop portNumber | ||
|
||
To see all the command line parameters you can use the help flag: | ||
|
||
.. tab-set:: | ||
|
||
.. tab-item:: Windows CMD | ||
|
||
.. code-block:: bash | ||
|
||
"%AWP_ROOT251%\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe --help" | ||
|
||
.. tab-item:: Windows Powershell | ||
|
||
.. code-block:: bash | ||
|
||
& "$env:AWP_ROOT251\Optical Products\SPEOS_RPC\SpeosRPC_Server.exe --help" | ||
|
||
.. tab-item:: Linux | ||
|
||
.. code-block:: bash | ||
|
||
$AWP_ROOT251/OpticalProducts/SPEOS_RPC/SpeosRPC_Server.x --help | ||
|
||
Use PySpeos launcher with PIM | ||
----------------------------- | ||
|
||
If a remote server is running Ansys Release 2025 R1 or later and is also running PIM (Product | ||
Instance Manager), you can use PIM to start a SpeosRPC server Session that PySpeos | ||
can connect to. | ||
|
||
A usage example of the remote service can be accessed via AnsysLAB. | ||
|
||
.. warning:: | ||
|
||
**This option is only available for Ansys employees.** | ||
|
||
Only Ansys employees with credentials to the Artifact Repository Browser | ||
can download ZIP files for PIM. | ||
|
||
To launch a remote Speos service: | ||
|
||
.. code:: python | ||
|
||
from ansys.speos.core import launcher | ||
|
||
speos = launcher.launch_speos("251") | ||
|
||
The preceding commands launch a remote Speos service (version 2025 R1). | ||
You receive a ``Speos`` object in return that you then use as a Speos session. | ||
|
||
The session can be ended via the object ``Speos`` like this: | ||
|
||
.. code:: python | ||
|
||
speos.close() | ||
|
||
.. button-ref:: ../index | ||
:ref-type: doc | ||
:color: primary | ||
:shadow: | ||
:expand: | ||
|
||
Go to Getting started |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.