Skip to content

Commit d92e766

Browse files
PipKatPProfizi
andauthored
Edits to DPF-Core RST and TXT files (#729)
* Edits to DPF-Core RST and TXT files * Fix typo * Apply suggestions from code review Incorporate Paul's comments Co-authored-by: PProfizi <[email protected]> Co-authored-by: PProfizi <[email protected]>
1 parent dabc865 commit d92e766

27 files changed

+289
-286
lines changed

docs/source/concepts/concepts.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
==================
44
Terms and concepts
55
==================
6-
DPF sees *fields of data*, not physical results. This makes DPF a
6+
DPF sees **fields of data**, not physical results. This makes DPF a
77
very versatile tool that can be used across teams, projects, and
88
simulations.
99

@@ -20,7 +20,7 @@ Here are descriptions for key DPF terms:
2020
uses three different spatial locations for finite element data: ``Nodal``,
2121
``Elemental``, and ``ElementalNodal``.
2222
- **Operators:** Objects that are used to create and transform the data.
23-
An operator is composed of a *core* and *pins*. The core handles the
23+
An operator is composed of a **core** and **pins**. The core handles the
2424
calculation, and the pins provide input data to and output data from
2525
the operator.
2626
- **Scoping:** Spatial and/or temporal subset of a model's support.
@@ -32,19 +32,19 @@ Here are descriptions for key DPF terms:
3232
Scoping
3333
-------
3434
In most cases, you do not want to work with an entire set of data
35-
but rather with a subset of this data. To achieve this, you define
36-
a *scoping*, which is a subset of the model's support.
35+
but rather with a subset. To achieve this, you define
36+
a **scoping**, which is a subset of the model's support.
3737
Typically, scoping can represent node IDs, element IDs, time steps,
3838
frequencies, and joints. Scoping describes a spatial and/or temporal
3939
subset that the field is scoped on.
4040

4141
Field data
4242
----------
4343
In DPF, field data is always associated with its scoping and support, making
44-
the *field* a self-describing piece of data. For example, in a field of nodal
45-
displacement, the *displacement* is the simulation data, and the associated
46-
*nodes* are the scoping. A field can also be defined by its dimensionality,
47-
unit of data, and *location*.
44+
the **field** a self-describing piece of data. For example, in a field of nodal
45+
displacement, the **displacement** is the simulation data, and the associated
46+
**nodes** are the scoping. A field can also be defined by its dimensionality,
47+
unit of data, and **location**.
4848

4949
Location
5050
--------
@@ -58,7 +58,7 @@ finite element data, the location is one of three spatial locations: ``Nodal``,
5858
is identified by an ID, which is typically an element number.
5959
- An ``ElementalNodal`` location describes data defined on the nodes of the elements.
6060
To retrieve an elemental node, you must use the ID for the element. To achieve
61-
this, you define an *elemental scoping* or *nodal scoping*.
61+
this, you define an elemental scoping or nodal scoping.
6262

6363
Concept summary
6464
---------------
@@ -80,7 +80,7 @@ You use :ref:`ref_dpf_operators_reference` to create and transform the data. An
8080

8181
Workflows
8282
---------
83-
You can chain operators together to create a *workflow*, which is a global entity
83+
You can chain operators together to create a **workflow**, which is a global entity
8484
that you use to evaluate data produced by operators. A workflow requires inputs
8585
to operators, which computes requested outputs.
8686

docs/source/concepts/index.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
Concepts
55
========
66

7-
This section gives in depth descriptions and explanations of DPF concepts, including terminology.
8-
9-
Other sections of this guide include :ref:`ref_user_guide`, :ref:`ref_api_section`,
10-
:ref:`ref_dpf_operators_reference`, and :ref:`gallery`.
11-
7+
This section provides in-depth descriptions and explanations of DPF concepts, including terminology.
128

139
DPF concepts
1410
~~~~~~~~~~~~

docs/source/concepts/stepbystep.rst

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Data can come from two sources:
2222
defining where the result files are located.
2323
- **Manual input in DPF:** You can create fields of data in DPF.
2424

25-
Once you have specify data sources or manually create fields in PDF,
25+
Once you specify data sources or manually create fields in DPF,
2626
you can create field containers (if applicable) and define scopings to
2727
identify the subset of data that you want to evaluate.
2828

@@ -31,7 +31,7 @@ Specify the data source
3131
To evaluate the data in simulation result files, you specify the data source by defining
3232
where the results files are located.
3333

34-
This example shows how to define the data source:
34+
This code shows how to define the data source:
3535

3636
.. code-block:: python
3737
@@ -42,15 +42,15 @@ This example shows how to define the data source:
4242
['/tmp/file.rst']
4343
4444
To evaluate data files, they must be opened. To open data files, you
45-
define *streams*. A stream is an entity that contains the data sources.
45+
define **streams**. A stream is an entity that contains the data sources.
4646
Streams keep the data files open and keep some data cached to make the next
4747
evaluation faster. Streams are particularly convenient when using large
4848
data files. They save time when opening and closing data files. When a stream
4949
is released, the data files are closed.
5050

5151
Define fields
5252
~~~~~~~~~~~~~
53-
A *field* is a container of simulation data. In numerical simulations,
53+
A **field** is a container of simulation data. In numerical simulations,
5454
result data is defined by values associated with entities:
5555

5656
.. image:: ../images/drawings/values-entities.png
@@ -59,7 +59,7 @@ Therefore, a field of data might look something like this:
5959

6060
.. image:: ../images/drawings/field.png
6161

62-
This example shows how to define a field from scratch:
62+
This code shows how to define a field from scratch:
6363

6464
.. code-block:: python
6565
@@ -87,7 +87,7 @@ You specify the set of entities by defining a range of IDs:
8787

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

90-
This example shows how to define a mesh scoping:
90+
This code shows how to define a mesh scoping:
9191

9292
.. code-block:: python
9393
@@ -105,7 +105,7 @@ This example shows how to define a mesh scoping:
105105
106106
Define field containers
107107
~~~~~~~~~~~~~~~~~~~~~~~
108-
A *field container* holds a set of fields. It is used mainly for
108+
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

@@ -123,7 +123,7 @@ You can define a field container in multiple ways:
123123
- Create a field container from a CSV file.
124124
- Convert existing fields to a field container.
125125

126-
This example shows how to define a field container from scratch:
126+
This code shows how to define a field container from scratch:
127127

128128
.. code-block:: python
129129
@@ -165,7 +165,8 @@ an output that it passes to a field or field container using an output pin.
165165
.. image:: ../images/drawings/circuit.png
166166

167167
Comprehensive information on operators is available in :ref:`ref_dpf_operators_reference`.
168-
In the **Available Operators** area, you can either type a keyword in the **Search** option
168+
In the **Available Operators** area for either the **Entry** or **Premium** operators,
169+
you can either type a keyword in the **Search** option
169170
or browse by operator categories:
170171

171172
.. image:: ../images/drawings/help-operators.png
@@ -186,7 +187,7 @@ language (IronPython, CPython, and C++).
186187

187188
.. image:: ../images/drawings/operator-def.png
188189

189-
This example shows how to define an operator from a model:
190+
This code shows how to define an operator from a model:
190191

191192
.. code-block:: python
192193
@@ -203,15 +204,15 @@ data transformation workflow, enabling you to perform all operations necessary
203204
to get the result that you want.
204205

205206
In a workflow, the output pins of one operator can be connected to the input pins
206-
of another operator, allowing output data from one operator to be passed as
207-
input to another operator.
207+
of another operator, allowing the output from one operator to be passed as
208+
the input to another operator.
208209

209210
This image shows how you would get the norm of a resulting vector from the
210211
dot product of two vectors:
211212

212213
.. image:: ../images/drawings/connect-operators.png
213214

214-
This example shows how to define a generic workflow that computes the minimum
215+
This code shows how to define a generic workflow that computes the minimum
215216
of displacement by chaining the ``U`` and ``min_max_fc`` operators:
216217

217218
.. code-block:: python

docs/source/concepts/waysofusing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CPython
1313
Standalone DPF uses CPython and can be accessed with any Python console.
1414
Data can be exported to universal file formats, such as VTK, HDF5, and TXT
1515
files. You can use it to generate TH-plots, screenshots, and animations or
16-
to create custom result plots using `numpy <https://numpy.org/>`_
16+
to create custom result plots using the `numpy <https://numpy.org/>`_
1717
and `matplotlib <https://matplotlib.org/>`_ packages.
1818

1919
.. image:: ../images/drawings/dpf-reports.png

docs/source/contributing.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ Contribute
77
Overall guidance on contributing to a PyAnsys repository appears in
88
`Contribute <https://dev.docs.pyansys.com/overview/contributing.html>`_
99
in the *PyAnsys Developer's Guide*. Ensure that you are thoroughly familiar
10-
with this guide, paying particular attention to `Guidelines and Best Practices
11-
<https://dev.docs.pyansys.com/guidelines/index.html>`_, before attempting
12-
to contribute to PyDPF-Core.
10+
with this guide before attempting to contribute to PyDPF-Core.
1311

1412
The following contribution information is specific to PyDPF-Core.
1513

1614
Clone the repository
1715
--------------------
18-
To clone and install the latest version of PyDPF-Core in
19-
development mode, run:
16+
Clone and install the latest version of PyDPF-Core in
17+
development mode by running this code:
2018

2119
.. code::
2220

docs/source/getting_started/compatibility.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ should also be synchronized with the server version.
6565
- 0.2.2
6666
- 0.2.*
6767

68-
(** compatibility of DPF 2.0 with ansys-dpf-core 0.5.0 and later is assumed but no longer certified)
68+
(** Compatibility of DPF 2.0 with ansys-dpf-core 0.5.0 and later is assumed but no longer certified.)
6969

70-
Updating Python environment
71-
---------------------------
70+
Update Python environment
71+
-------------------------
7272

7373
When moving from one Ansys release to another, you must update the ``ansys-dpf-core`` package and its dependencies.
74-
To get the latest version of the ``ansys-dpf-core`` package, use this code:
74+
To get the latest version of the ``ansys-dpf-core`` package, use this command:
7575

7676
.. code::
7777
7878
pip install --upgrade --force-reinstall ansys-dpf-core
7979
80-
To get a specific version of the ``ansys-dpf-core`` package, such as 0.7.0, use this code:
80+
To get a specific version of the ``ansys-dpf-core`` package, such as 0.7.0, use this command:
8181

8282
.. code::
8383
@@ -88,7 +88,7 @@ To get a specific version of the ``ansys-dpf-core`` package, such as 0.7.0, use
8888
Environment variable
8989
--------------------
9090

91-
The ``start_local_server`` method uses the ``Ans.Dpf.Grpc.bat`` file or
91+
The ``start_local_server()`` method uses the ``Ans.Dpf.Grpc.bat`` file or
9292
``Ans.Dpf.Grpc.sh`` file to start the server. Ensure that the ``AWP_ROOT{VER}``
9393
environment variable is set to your installed Ansys version. For example, if Ansys
9494
2022 R2 is installed, ensure that the ``AWP_ROOT222`` environment

docs/source/getting_started/dependencies.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Dependencies
77
Package dependencies
88
--------------------
99

10-
PyDPF-Core dependencies are automatically checked when packages are
11-
installed. Package dependencies follow:
10+
Dependencies for the ``ansys-dpf-core`` package are automatically checked when the
11+
package is installed. Package dependencies follow:
1212

1313
- `ansys.dpf.gate <https://pypi.org/project/ansys-dpf-gate/>`_, which is the gate
1414
to the DPF C API or Python gRPC API. The gate depends on the server configuration:
@@ -28,5 +28,5 @@ Optional dependencies
2828

2929
For plotting, you can install these optional Python packages:
3030

31-
- `matplotlib <https://pypi.org/project/matplotlib/>`_ for chart plotting
32-
- `pyvista <https://pypi.org/project/pyvista/>`_ for 3D plotting
31+
- `matplotlib <https://pypi.org/project/matplotlib/>`_ package for chart plotting
32+
- `pyvista <https://pypi.org/project/pyvista/>`_ package for 3D plotting

docs/source/getting_started/index.rst

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ PyDPF-Core is a Python client API communicating with a **DPF Server**, either
1414
through the network using gRPC or directly in the same process.
1515

1616

17-
Installing PyDPF-Core
18-
---------------------
17+
Install PyDPF-Core
18+
------------------
1919

20-
In a Python environment, run the following command to install PyDPF-Core:
20+
To install PyDPF-Core, in a Python environment, run this command:
2121

2222
.. code::
2323
@@ -26,54 +26,52 @@ In a Python environment, run the following command to install PyDPF-Core:
2626
For more installation options, see :ref:`Installation section <installation>`.
2727

2828

29-
Installing DPF Server
30-
---------------------
29+
Install DPF Server
30+
------------------
3131

32-
#. DPF Server is packaged within the **Ansys Unified Installer** starting with Ansys 2021 R1.
33-
To use it, download the standard installation using your preferred distribution channel,
34-
and install Ansys following the installer instructions. If you experience problems,
35-
see :ref:`Environment variable section <target_environment_variable_with_dpf_section>`. For information on getting
36-
a licensed copy of Ansys, visit the `Ansys website <https://www.ansys.com/>`_.
32+
* DPF Server is packaged within the **Ansys installer** in Ansys 2021 R1 and later.
33+
To use it, download the standard installation using your preferred distribution channel,
34+
and install Ansys following the installer instructions. If you experience problems,
35+
see :ref:`Environment variable <target_environment_variable_with_dpf_section>`. For information on getting
36+
a licensed copy of Ansys, visit the `Ansys website <https://www.ansys.com/>`_.
3737

38-
#. DPF Server is available as a **standalone** package (independent of the Ansys installer) on the
39-
`DPF Pre-Release page of the Ansys Customer Portal <https://download.ansys.com/Others/DPF%20Pre-Release>`_.
40-
As explained in :ref:`Ansys licensing section <target_to_ansys_license_mechanism>`,
41-
DPF Server is protected by an Ansys license mechanism. Once you have access to an
42-
Ansys license, install DPF Server:
38+
* DPF Server is available as a **standalone** package (independent of the Ansys installer) on the
39+
`DPF Pre-Release page <https://download.ansys.com/Others/DPF%20Pre-Release>`_ of the Ansys Customer Portal.
40+
As explained in :ref:`Ansys licensing <target_to_ansys_license_mechanism>`,
41+
DPF Server is protected by an Ansys license mechanism. Once you have access to an
42+
Ansys license, install DPF Server:
4343

4444
.. card::
4545

46-
* Download the ansys_dpf_server_win_v2023.2.pre0.zip or ansys_dpf_server_lin_v2023.2.pre0.zip
46+
* Download the ``ansys_dpf_server_win_v2023.2.pre0.zip`` or ``ansys_dpf_server_lin_v2023.2.pre0.zip``
4747
file as appropriate.
48-
* Unzip the package and go to the root folder of the unzipped package
49-
(ansys_dpf_server_win_v2023.2.pre0 or ansys_dpf_server_lin_v2023.2.pre0).
50-
* In a Python environment, run the following command:
48+
* Unzip the package and go to its root folder (``ansys_dpf_server_win_v2023.2.pre0`` or
49+
``ansys_dpf_server_lin_v2023.2.pre0``).
50+
* In a Python environment, run this command:
5151

5252
.. code::
5353
5454
pip install -e .
5555
5656
* DPF Server is protected using the license terms specified in the
57-
`DPFPreviewLicenseAgreement <https://download.ansys.com/-/media/dpf/dpfpreviewlicenseagreement.ashx?la=en&hash=CCFB07AE38C638F0D43E50D877B5BC87356006C9>`_ file, which is available on the
58-
`DPF Pre-Release page of the Ansys Customer Portal <https://download.ansys.com/Others/DPF%20Pre-Release>`_.
59-
To accept these terms, you must set the
60-
following environment variable:
57+
`DPFPreviewLicenseAgreement <https://download.ansys.com/-/media/dpf/dpfpreviewlicenseagreement.ashx?la=en&hash=CCFB07AE38C638F0D43E50D877B5BC87356006C9>`_
58+
file, which is available on the `DPF Pre-Release page <https://download.ansys.com/Others/DPF%20Pre-Release>`_
59+
of the Ansys Customer Portal. To accept these terms, you must set this
60+
environment variable:
6161

6262
.. code::
6363
6464
ANSYS_DPF_ACCEPT_LA=Y
6565
66-
For more information about the license terms, see the :ref:`DPF Preview License Agreement<target_to_license_terms>`
67-
section.
68-
69-
For installation methods that do not use pip, such as using **Docker containers**, see
70-
:ref:`ref_getting_started_with_dpf_server`.
66+
For more information about the license terms, see :ref:`DPF Preview License Agreement<target_to_license_terms>`.
7167

68+
For installation methods that do not use `pip <https://pypi.org/project/pip/>`_,
69+
such as using **Docker containers**, see :ref:`ref_getting_started_with_dpf_server`.
7270

7371
Use PyDPF-Core
7472
--------------
7573

76-
In the same Python environment, run the following command to use PyDPF-Core:
74+
To use PyDPF-Core, in the same Python environment, run this command:
7775

7876
.. code:: python
7977

0 commit comments

Comments
 (0)