-
Notifications
You must be signed in to change notification settings - Fork 23
Refactor Getting Started and add Licensing #1423
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 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
5c7ec9f
Add a licensing section
PProfizi 32ea307
Add a licensing section
PProfizi 3c5db84
Add a licensing section
PProfizi 32d3cd6
Merge branch 'master' into doc/update_licensing_behavior_standalone
PProfizi e16cdc2
Add a licensing section
PProfizi c2a85f3
Allow for local build
PProfizi 674ecad
Fix doc
PProfizi 133dde5
Fix doc
PProfizi 58f6c48
Fix link
PProfizi 13e9fea
Update compatibility.rst
PProfizi 2cb2729
Update description of licensed operators in licensing.rst
PProfizi 450fa68
Move and rename getting_started_with_dpf_server.rst to dpf_server.rst
PProfizi a460fc3
Update the getting started index.rst
PProfizi 140e109
Refactor licensing.rst
PProfizi 0298d1c
Refactor dpf_server.rst
PProfizi c152efe
Fixes
PProfizi 31bea38
Fixes
PProfizi e528573
Fixes
PProfizi e959417
Update mentions to ansys_dpf_server
PProfizi 4edcd92
Mark 'dyna' as a valid license increment
PProfizi f60c675
Merge branch 'master' into doc/update_licensing_behavior_standalone
PProfizi 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
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,83 @@ | ||
| .. _ref_licensing: | ||
|
|
||
| ========= | ||
| Licensing | ||
| ========= | ||
|
|
||
| This section details what the user should expect in terms of limitations or license usage | ||
| when running PyDPF scripts. | ||
| DPF follows a client-server architecture, | ||
| which means that the PyDPF client library must interact with a DPF server. | ||
| It thus either starts a DPF server via a local installation of DPF, | ||
| or it connects to an already running local or remote DPF server. | ||
|
|
||
| DPF is installed along with ANSYS since ANSYS 2021R1 (see :ref:`ref_compatibility`). | ||
rafacanton marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| It is also available as a standalone application (see :ref:`ref_getting_started_with_dpf_server`). | ||
rafacanton marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| License agreement | ||
| ----------------- | ||
|
|
||
| When using the DPF Server from an ANSYS installation, the user has already agreed to the licensing | ||
| terms when installing ANSYS, thus there is no required step. | ||
|
|
||
| When using a standalone DPF Server, the user needs to accept the ``DPF Preview License Agreement`` | ||
PProfizi marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| by following indications in :ref:`target_to_license_terms`. | ||
| Starting a DPF Server without agreeing to the ``DPF Preview License Agreement`` throws an exception. | ||
|
|
||
|
|
||
| License checks and usage | ||
| ------------------------ | ||
|
|
||
| Some DPF operators require DPF to check for an existing license | ||
| and some require DPF to check-out a compatible license increment. | ||
|
|
||
| To check which ANSYS licensing increments provide rights to use DPF Server, | ||
| see :ref:`here<target_to_ansys_license_increments_list>`. | ||
|
|
||
| DPF is by default allowed to check-out license increments as needed. | ||
| To change this behavior, see :ref:`user_guide_server_context`. | ||
|
|
||
| To know if operators require a license increment check-out to run, check their ``license`` | ||
| attribute in :ref:`ref_dpf_operators_reference` or directly in Python by checking the operator's | ||
| properties for a ``license`` key: | ||
|
|
||
| .. code-block:: python | ||
| import ansys.dpf.core as dpf | ||
| operator = dpf.operators.averaging.elemental_difference() | ||
| print(operator.specification.properties) | ||
| .. rst-class:: sphx-glr-script-out | ||
|
|
||
| .. code-block:: none | ||
| {'category': 'averaging', 'exposure': 'public', 'license': 'any_dpf_supported_increments', 'plugin': 'core', 'scripting_name': 'elemental_difference', 'user_name': 'elemental difference (field)'} | ||
| Even if an operator does not require a license check-out to run, most DPF operators still require | ||
| DPF to check for a reachable license server or license file. | ||
|
|
||
| Operators which do not perform any kind of license check are source operators (data extraction | ||
| operators) which do not perform any data transformation. | ||
|
|
||
| For example, most ``metadata`` operators do not perform data transformation and are license-free. | ||
|
|
||
| When considering ``result`` operators, they only perform data transformation if the requested | ||
PProfizi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``location`` is not the native result location. In that case, averaging occurs which is considered | ||
| as data transformation. | ||
|
|
||
|
|
||
| Summary | ||
| ------- | ||
|
|
||
| The following user actions may fail due to licensing: | ||
|
|
||
| - Starting a standalone DPF Server (a.k.a. not using an ANSYS installation) may fail due to the | ||
| ``DPF Preview License Agreement`` (see **License agreement** above). | ||
| - Creating an operator may fail if the operator performs data transformation and no license server | ||
| or license file is found (see **License checks and usage** above). | ||
| - Running an operator requiring a license checkout may fail if no license increment is available | ||
| or if the DPF Server context is Entry, preventing any license check-out | ||
| (see **License checks and usage** above). | ||
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
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.