Skip to content

Commit eda1365

Browse files
Merge branch 'master' into api/api-ref-data-sources_fix_error
2 parents 0b4f14d + 651df51 commit eda1365

File tree

19 files changed

+257
-98
lines changed

19 files changed

+257
-98
lines changed

doc/source/_static/dpf_operators.html

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

doc/source/conf.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pyvista
88
from ansys.dpf.core import __version__, server, server_factory
99
from ansys.dpf.core.examples import get_example_required_minimum_dpf_version
10-
from ansys_sphinx_theme import pyansys_logo_black, ansys_favicon, get_version_match
10+
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode
1111

1212
# Manage errors
1313
pyvista.set_error_output_file("errors.txt")
@@ -90,7 +90,8 @@
9090
]
9191

9292
redirects = {
93-
"user_guide/getting_started_with_dpf_server": "../getting_started/dpf_server.html"
93+
"user_guide/getting_started_with_dpf_server": "../getting_started/dpf_server.html",
94+
"concepts/index": "../user_guide/index.html#concepts"
9495
}
9596

9697
typehints_defaults = "comma"
@@ -193,9 +194,12 @@ def reset_servers(gallery_conf, fname, when):
193194
# -- Options for HTML output -------------------------------------------------
194195
html_short_title = html_title = "PyDPF-Core"
195196
html_theme = "ansys_sphinx_theme"
196-
html_logo = pyansys_logo_black
197197
html_favicon = ansys_favicon
198198
html_theme_options = {
199+
"logo": {
200+
"image_dark": pyansys_logo_dark_mode,
201+
"image_light": pyansys_logo_light_mode,
202+
},
199203
"github_url": "https://github.com/ansys/pydpf-core",
200204
"show_prev_next": False,
201205
"show_breadcrumbs": True,

doc/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,4 @@ To reach the project support team, email `[email protected] <pyansys.core@a
193193
examples/index
194194
api/index
195195
operator_reference
196-
concepts/index
197196
contributing

doc/source/concepts/concepts.rst renamed to doc/source/user_guide/concepts/concepts.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Concept summary
6767
---------------
6868
This image summarizes the preceding concepts:
6969

70-
.. image:: ../images/drawings/field-breakdown.png
70+
.. image:: ../../images/drawings/field-breakdown.png
7171

7272

7373
Operators
@@ -79,7 +79,7 @@ You use :ref:`ref_dpf_operators_reference` to create, transform, and stream the
7979
- The input and output pins, like those in an integrated circuit in electronics,
8080
submit data to the operator and output the computed result from the operator.
8181

82-
.. image:: ../images/drawings/OperatorPins.png
82+
.. image:: ../../images/drawings/OperatorPins.png
8383

8484
Workflows
8585
---------
@@ -90,10 +90,10 @@ to operators, which computes requested outputs.
9090
Think of a workflow as a black box in which some operators are chained,
9191
computing the information for which the workflow is made:
9292

93-
.. image:: ../images/drawings/Workflow1.png
93+
.. image:: ../../images/drawings/Workflow1.png
9494

9595
The following image shows operators that have been chained together to create a
9696
total deformation workflow. You can use this workflow in any simulation
9797
workflow with any data sources as inputs.
9898

99-
.. image:: ../images/drawings/Workflow2.png
99+
.. image:: ../../images/drawings/Workflow2.png
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,32 @@
11
.. _ref_concepts:
22

3-
========
43
Concepts
5-
========
4+
--------
65

76
This section provides in-depth descriptions and explanations of DPF concepts, including terminology.
87

9-
DPF concepts
10-
~~~~~~~~~~~~
8+
.. grid:: 1 1 3 3
9+
:gutter: 2
10+
:padding: 2
11+
:margin: 2
1112

12-
.. toctree::
13-
:hidden:
14-
15-
concepts.rst
16-
waysofusing.rst
17-
stepbystep.rst
18-
19-
20-
.. card-carousel:: 2
21-
22-
.. card:: Concepts and terminology
13+
.. grid-item-card:: Concepts and terminology
2314
:link: user_guide_concepts
2415
:link-type: ref
25-
:width: 25%
2616
:text-align: center
2717

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

30-
.. card:: Ways of using DPF
20+
.. grid-item-card:: Ways of using DPF
3121
:link: user_guide_waysofusing
3222
:link-type: ref
33-
:width: 25%
3423
:text-align: center
3524

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

38-
.. card:: Using DPF: Step by step
27+
.. grid-item-card:: Using DPF: Step by step
3928
:link: user_guide_stepbystep
4029
:link-type: ref
41-
:width: 25%
4230
:text-align: center
4331

4432
.. image:: ../images/drawings/checklist.png

doc/source/concepts/stepbystep.rst renamed to doc/source/user_guide/concepts/stepbystep.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ Define fields
5353
A **field** is a container of simulation data. In numerical simulations,
5454
result data is defined by values associated with entities:
5555

56-
.. image:: ../images/drawings/values-entities.png
56+
.. image:: ../../images/drawings/values-entities.png
5757

5858
Therefore, a field of data might look something like this:
5959

60-
.. image:: ../images/drawings/field.png
60+
.. image:: ../../images/drawings/field.png
6161

6262
This code shows how to define a field from scratch:
6363

@@ -83,7 +83,7 @@ be a set of mesh IDs, geometric entity IDs, time domain, or frequency domain.
8383

8484
You specify the set of entities by defining a range of IDs:
8585

86-
.. image:: ../images/drawings/scoping-eg.png
86+
.. image:: ../../images/drawings/scoping-eg.png
8787

8888
You must define a scoping prior to its use in the transformation data workflow.
8989

@@ -109,13 +109,13 @@ A **field container** holds a set of fields. It is used mainly for
109109
transient, harmonic, modal, or multi-step analyses. This image
110110
explains its structure:
111111

112-
.. image:: ../images/drawings/field-con-overview.png
112+
.. image:: ../../images/drawings/field-con-overview.png
113113

114114
A field container is a vector of fields. Fields are ordered with labels
115115
and IDs. Most commonly, a field container is scoped on the time label,
116116
and the IDs are the time or frequency sets:
117117

118-
.. image:: ../images/drawings/field-con.png
118+
.. image:: ../../images/drawings/field-con.png
119119

120120
You can define a field container in multiple ways:
121121

@@ -162,14 +162,14 @@ An operator takes input from a field, field container, or scoping using
162162
an input pin. Based on what it is designed to do, the operator computes
163163
an output that it passes to a field or field container using an output pin.
164164

165-
.. image:: ../images/drawings/circuit.png
165+
.. image:: ../../images/drawings/circuit.png
166166

167167
Comprehensive information on operators is available in :ref:`ref_dpf_operators_reference`.
168168
In the **Available Operators** area for either the **Entry** or **Premium** operators,
169169
you can either type a keyword in the **Search** option
170170
or browse by operator categories:
171171

172-
.. image:: ../images/drawings/help-operators.png
172+
.. image:: ../../images/drawings/help-operators.png
173173

174174
The page for each operator describes how the operator transforms data,
175175
indicates input and output data, and provides usage examples.
@@ -185,7 +185,7 @@ Defining an operator consists of three steps:
185185
This image shows how the page for an operator provides a usage example for each available
186186
language (IronPython, CPython, and C++).
187187

188-
.. image:: ../images/drawings/operator-def.png
188+
.. image:: ../../images/drawings/operator-def.png
189189

190190
This code shows how to define an operator from a model:
191191

@@ -210,7 +210,7 @@ the input to another operator.
210210
This image shows how you would get the norm of a resulting vector from the
211211
dot product of two vectors:
212212

213-
.. image:: ../images/drawings/connect-operators.png
213+
.. image:: ../../images/drawings/connect-operators.png
214214

215215
This code shows how to define a generic workflow that computes the minimum
216216
of displacement by chaining the ``U`` and ``min_max_fc`` operators:

doc/source/concepts/waysofusing.rst renamed to doc/source/user_guide/concepts/waysofusing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ enabled using the DPF Server application.
2929
These capabilities can be accessed through client APIs, as shown here:
3030

3131

32-
.. image:: ../images/drawings/apis_2.png
32+
.. image:: ../../images/drawings/apis_2.png
3333

3434

3535
1. DPF server application can be accessed using Ansys Inc product, or DPF Server package (see :ref:`ref_dpf_server`) available on the Customer portal.
@@ -71,12 +71,12 @@ files. You can use it to generate TH-plots, screenshots, and animations or
7171
to create custom result plots using the `numpy <https://numpy.org/>`_
7272
and `matplotlib <https://matplotlib.org/>`_ packages.
7373

74-
.. image:: ../images/drawings/dpf-reports.png
74+
.. image:: ../../images/drawings/dpf-reports.png
7575

7676
Mechanical
7777
~~~~~~~~~~
7878
**DPF in Mechanical** uses IronPython and is accessible with the **ACT Console**.
7979
Use it to perform custom postprocessing and visualization of results directly
8080
within the Mechanical application.
8181

82-
.. image:: ../images/drawings/dpf-mech.png
82+
.. image:: ../../images/drawings/dpf-mech.png

doc/source/user_guide/how_to.rst

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,57 @@
11
.. _ref_how_to:
22

33
How-tos
4-
~~~~~~~
4+
-------
55

6-
.. toctree::
7-
:hidden:
6+
.. grid:: 1 1 3 3
7+
:gutter: 2
8+
:padding: 2
9+
:margin: 2
810

9-
plotting.rst
10-
custom_operators.rst
11-
dpf_server.rst
12-
server_types.rst
13-
server_context.rst
14-
xmlfiles.rst
15-
16-
17-
.. card-carousel:: 2
18-
19-
.. card:: Plot
11+
.. grid-item-card:: Plot
2012
:link: user_guide_plotting
2113
:link-type: ref
22-
:width: 25%
2314
:text-align: center
2415

2516
.. image:: ../images/plotting/pontoon.png
2617
.. image:: ../images/plotting/pontoon_strain.png
2718

2819

29-
.. card:: Create custom operators
20+
.. grid-item-card:: Create custom operators
3021
:link: user_guide_custom_operators
3122
:link-type: ref
32-
:width: 25%
3323
:text-align: center
3424

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

3828

39-
.. card:: Use DPF Server package
29+
.. grid-item-card:: Use DPF Server package
4030
:link: ref_dpf_server
4131
:link-type: ref
42-
:width: 25%
4332
:text-align: center
4433

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

4736

48-
.. card-carousel:: 2
49-
50-
.. card:: Switch between local and remote server
37+
.. grid-item-card:: Switch between local and remote server
5138
:link: user_guide_server_types
5239
:link-type: ref
53-
:width: 25%
5440
:text-align: center
5541

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

58-
.. card:: Access Entry and Premium capabilities
44+
.. grid-item-card:: Access Entry and Premium capabilities
5945
:link: user_guide_server_context
6046
:link-type: ref
61-
:width: 25%
6247
:text-align: center
6348

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

6651

67-
.. card:: Use DPF XML Files
52+
.. grid-item-card:: Use DPF XML Files
6853
:link: user_guide_xmlfiles
6954
:link-type: ref
70-
:width: 25%
7155
:text-align: center
7256

7357
.. image:: ../images/drawings/xml.png

doc/source/user_guide/index.rst

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The goals of this section are to:
1313
- Describe the most-used DPF entities and how they can help you to access and modify solver data.
1414
- Provide simple how-tos for tackling the most common use cases.
1515

16+
.. include::
17+
concepts/index.rst
1618

1719
.. include::
1820
main_entities.rst
@@ -22,7 +24,70 @@ The goals of this section are to:
2224

2325

2426
Troubleshooting
25-
~~~~~~~~~~~~~~~
27+
---------------
28+
29+
.. grid:: 1 1 2 2
30+
:gutter: 2
31+
:padding: 2
32+
:margin: 2
33+
34+
.. grid-item-card:: Server issues
35+
:link: user_guide_troubleshooting_server_issues
36+
:link-type: ref
37+
:text-align: center
38+
39+
.. grid-item-card:: Model issues
40+
:link: user_guide_troubleshooting_model_issues
41+
:link-type: ref
42+
:text-align: center
43+
44+
.. grid-item-card:: Plotting issues
45+
:link: user_guide_troubleshooting_plotting_issues
46+
:link-type: ref
47+
:text-align: center
48+
49+
.. grid-item-card:: Performance issues
50+
:link: user_guide_troubleshooting_performance_issues
51+
:link-type: ref
52+
:text-align: center
53+
54+
55+
.. toctree::
56+
:maxdepth: 2
57+
:hidden:
58+
:caption: Concepts
59+
60+
concepts/concepts.rst
61+
concepts/waysofusing.rst
62+
concepts/stepbystep.rst
63+
64+
65+
.. toctree::
66+
:maxdepth: 2
67+
:hidden:
68+
:caption: DPF most-used entities
69+
70+
model
71+
operators
72+
fields_container
73+
2674

2775
.. toctree::
28-
troubleshooting
76+
:maxdepth: 2
77+
:hidden:
78+
:caption: How-tos
79+
80+
plotting.rst
81+
custom_operators.rst
82+
dpf_server.rst
83+
server_types.rst
84+
server_context.rst
85+
xmlfiles.rst
86+
87+
88+
.. toctree::
89+
:maxdepth: 3
90+
:hidden:
91+
:caption: Troubleshooting
92+
93+
troubleshooting

0 commit comments

Comments
 (0)