Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
2567240
add concepts intro in the user guide index page
luisaFelixSalles Sep 19, 2024
0fbbf46
add tutorials concept (from the main entities documents)
luisaFelixSalles Sep 19, 2024
d02de1d
organise and adapt the how-to section
luisaFelixSalles Sep 19, 2024
775f214
organise and adapt the troubleshooting section
luisaFelixSalles Sep 19, 2024
5fd0d8e
organise and adapt the troubleshooting section and final sidebar
luisaFelixSalles Sep 19, 2024
efc9057
Merge remote-tracking branch 'origin/doc/user-guide-layout' into doc/…
luisaFelixSalles Sep 19, 2024
a643750
Merge remote-tracking branch 'origin/doc/user-guide-layout' into doc/…
luisaFelixSalles Sep 19, 2024
17f3f8e
Merge remote-tracking branch 'origin/doc/user-guide-layout' into doc/…
luisaFelixSalles Sep 19, 2024
d263baf
changes in the troubleshooting index page
luisaFelixSalles Sep 19, 2024
43bfd72
Merge remote-tracking branch 'origin/doc/user-guide-layout' into doc/…
luisaFelixSalles Sep 19, 2024
2ea779f
changes in the how to index page
luisaFelixSalles Sep 19, 2024
1d0e594
changes in the concepts index page
luisaFelixSalles Sep 19, 2024
199eb1c
changes in the layout of the index pages
luisaFelixSalles Sep 19, 2024
f5db9c4
Merge branch 'refs/heads/doc/general-layout' into doc/user-guide-layout
luisaFelixSalles Sep 20, 2024
7427c54
Apply suggestions from code review
luisaFelixSalles Sep 20, 2024
880ceba
corrections after first revision
luisaFelixSalles Sep 20, 2024
c94293b
Apply suggestions from code review
luisaFelixSalles Sep 20, 2024
2f26593
Add sphinx-exec-code to doc requirements
PProfizi Sep 20, 2024
869c6f3
corrections files path
luisaFelixSalles Sep 23, 2024
cc48be4
Merge remote-tracking branch 'origin/doc/user-guide-layout' into doc/…
luisaFelixSalles Sep 23, 2024
5d1e881
Apply suggestions from code review
luisaFelixSalles Sep 24, 2024
783c9c9
Apply suggestions from code review
luisaFelixSalles Sep 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 8 additions & 24 deletions doc/source/user_guide/concepts/index.rst
Original file line number Diff line number Diff line change
@@ -1,44 +1,28 @@
.. _ref_concepts:
.. _ref_concepts_index:

========
Concepts
========
--------

This section provides in-depth descriptions and explanations of DPF concepts, including terminology.
.. grid:: 3
:gutter: 2

DPF concepts
~~~~~~~~~~~~

.. toctree::
:hidden:

concepts.rst
waysofusing.rst
stepbystep.rst


.. card-carousel:: 2

.. card:: Concepts and terminology
.. grid-item-card:: Concepts and terminology
:link: user_guide_concepts
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/book-logo.png

.. card:: Ways of using DPF
.. grid-item-card:: Ways of using DPF
:link: user_guide_waysofusing
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/using-dpf.png

.. card:: Using DPF: Step by step
.. grid-item-card:: Using DPF: Step by step
:link: user_guide_stepbystep
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/checklist.png
.. image:: ../images/drawings/checklist.png
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ installer's Python interpreter.

#. Download the script for you operating system:

- For Windows, download this :download:`PowerShell script </user_guide/install_ansys_dpf_core_in_ansys.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/install_ansys_dpf_core_in_ansys.sh>`
- For Windows, download this :download:`PowerShell script </user_guide/how-to/install_ansys_dpf_core_in_ansys.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/how-to/install_ansys_dpf_core_in_ansys.sh>`

#. Run the downloaded script for installing with optional arguments:

Expand All @@ -48,8 +48,8 @@ If you ever want to uninstall the ``ansys-dpf-core`` module from the Ansys insta

#. Download the script for your operating system:

- For Windows, download this :download:`PowerShell script </user_guide/uninstall_ansys_dpf_core_in_ansys.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/uninstall_ansys_dpf_core_in_ansys.sh>`.
- For Windows, download this :download:`PowerShell script </user_guide/how-to/uninstall_ansys_dpf_core_in_ansys.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/how-to/uninstall_ansys_dpf_core_in_ansys.sh>`.

3. Run the downloaded script for uninstalling with the optional argument:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ For this approach, do the following:

#. Download the script for your operating system:

- For Windows, download this :download:`PowerShell script </user_guide/create_sites_for_python_operators.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/create_sites_for_python_operators.sh>`.
- For Windows, download this :download:`PowerShell script </user_guide/how-to/create_sites_for_python_operators.ps1>`.
- For Linux, download this :download:`Shell script </user_guide/how-to/create_sites_for_python_operators.sh>`.

3. Run the downloaded script with the mandatory arguments:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,73 +1,47 @@
.. _ref_how_to:

How-tos
~~~~~~~
Accessing and enriching DPF capabilities
----------------------------------------

.. toctree::
:hidden:
.. grid:: 3
:gutter: 2

plotting.rst
custom_operators.rst
dpf_server.rst
server_types.rst
server_context.rst
xmlfiles.rst


.. card-carousel:: 2

.. card:: Plot
:link: user_guide_plotting
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/plotting/pontoon.png
.. image:: ../images/plotting/pontoon_strain.png


.. card:: Create custom operators
.. grid-item-card:: Create custom operators
:link: user_guide_custom_operators
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/plugin-logo.png
:width: 50%


.. card:: Use DPF Server package
.. grid-item-card:: Use DPF Server package
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It redirects to the Getting Started page for DPF Server, so remove it from here

:link: ref_dpf_server
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/dpf_server_client.png


.. card-carousel:: 2

.. card:: Switch between local and remote server
.. grid-item-card:: Switch between local and remote server
:link: user_guide_server_types
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/remote_machines.png

.. card:: Access Entry and Premium capabilities

.. grid-item-card:: Access Entry and Premium capabilities
:link: user_guide_server_context
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/entry_premium.png


.. card:: Use DPF XML Files
.. grid-item-card:: Use DPF XML Files
:link: user_guide_xmlfiles
:link-type: ref
:width: 25%
:text-align: center

.. image:: ../images/drawings/xml.png
File renamed without changes.
45 changes: 40 additions & 5 deletions doc/source/user_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,51 @@ The goals of this section are to:
- Describe the most-used DPF entities and how they can help you to access and modify solver data.
- Provide simple how-tos for tackling the most common use cases.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention the tutorials?


.. include::
concepts/index.rst

.. include::
tutorials/index.rst

.. include::
main_entities.rst
how-to/index.rst

.. include::
how_to.rst
troubleshooting/index.rst


.. toctree::
:maxdepth: 2
:hidden:
:caption: Concepts

concepts/concepts.rst
concepts/waysofusing.rst
concepts/stepbystep.rst

Troubleshooting
~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2
:hidden:
:caption: Tutorials

tutorials/model.rst
tutorials/operators.rst
tutorials/fields_container.rst

.. toctree::
:maxdepth: 2
:hidden:
:caption: Accessing and enriching DPF capabilities

how-to/plotting.rst
how-to/custom_operators.rst
how-to/server_context.rst
how-to/server_types.rst
how-to/xmlfiles.rst

.. toctree::
troubleshooting
:maxdepth: 1
:hidden:
:caption: Troubleshooting

troubleshooting/troubleshooting.rst
43 changes: 0 additions & 43 deletions doc/source/user_guide/main_entities.rst

This file was deleted.

39 changes: 39 additions & 0 deletions doc/source/user_guide/troubleshooting/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.. _ref_troubleshooting_index:

Troubleshooting
---------------

.. grid:: 3
:gutter: 2

.. grid-item-card:: Server issues
:link: ref_server_issues
:link-type: ref
:text-align: center

Start the DPF server

Connect to the DPF server

Import the pydpf-core package

.. grid-item-card:: Model issues
:link: ref_model_issues
:link-type: ref
:text-align: center

Invalid UTF-8 error

.. grid-item-card:: Plotting issues
:link: ref_plotting_issues
:link-type: ref
:text-align: center

.. grid-item-card:: Performance issues
:link: ref_performance_issues
:link-type: ref
:text-align: center

Get and set a field's data

Autocompletion in notebooks
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
===============
Troubleshooting
===============

This page explains how to resolve the most common issues encountered when
using PyDPF-Core. It also includes suggestions for improving scripts.

.. _ref_server_issues:

==============
Server issues
-------------
==============

Start the DPF server
~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -38,8 +42,11 @@ If an error lists missing modules, see :ref:`ref_compatibility`.
For ``PyDPF-Core``<0.10.0, the `ansys.grpc.dpf <https://pypi.org/project/ansys-grpc-dpf/>`_ module
should always be synchronized with its server version.

.. _ref_model_issues:

============
Model issues
------------
============

Invalid UTF-8 error
~~~~~~~~~~~~~~~~~~~
Expand All @@ -66,8 +73,11 @@ Then, with result files reproducing this issue, you can prevent the warning from
However, the preceding code disables the reading and generation of the available results for the model.
Any static results that are available for the model are used instead.

.. _ref_plotting_issues:

===============
Plotting issues
---------------
===============

When trying to plot a result with DPF, the following error might be raised:

Expand All @@ -84,8 +94,11 @@ In that case, simply install `PyVista <https://pyvista.org/>`_` with this comman
Another option is to install PyVista along with PyDPF-Core. For more information, see
:ref:`Install with plotting capabilities<target_to_install_with_plotting_capabilities>`

.. _ref_performance_issues:

==================
Performance issues
------------------
==================

Get and set a field's data
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
Loading
Loading