Skip to content

Commit 9ab88da

Browse files
PipKatPProfiziRobPasMue
authored
Doc/overall edit dpf post (#144)
* Edits for gettting started and user guide * Edits to PY files for the API * More PY file edits * Edits to examples * Edit contribute topic * More edits to examples * Edits to eliminate Vale errors * Fix format error in PY file * Fix more format issues in PY file * Fix more format issues in PY files * Fix issues in PY files * Remove blank space at end of line * Fix space issues * Fix yet another doc style issue * Remove space at end of line * Fix inconsistent heading level * Add blank line * Fix code line (I think it got separated into multiple lines inadvertently.) * Remove blank spaces after end of lines. * Remove blank spaces after end of lines. * Attempt to fix some testing errors * Fix some more errors * Keep making changes to try resolving issues * Add LabelSpaceError and fix coverage * Fix styling * Static code quality * Fix code quality * Apply suggestions from code review Co-authored-by: paul.profizi <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent c96c244 commit 9ab88da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1277
-1289
lines changed

docs/source/api/index.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
============
2-
DPF-Post API
3-
============
4-
This guide provides an overview of the DPF-Post API.
1+
=============
2+
API reference
3+
=============
54

6-
DPF-Post leverages three main categories of objects:
5+
This section describes the DPF-Post API, which provides
6+
three main classes:
77

8-
1. **Solution**: it is the entry point to the results file, its
9-
metadata and contents.
8+
- ``DpfSolution``: Provides the ``Solution`` object, which is the
9+
entry point to the result file, its metadata, and contents.
1010

11-
2. **Result**: it provides access to specific result types, in
12-
accordance with the type of analysis.
11+
- ``Result``: Provides access to ``Results`` object, in accordance with
12+
the result type and analysis type.
1313

14-
3. **ResultData**: it provides access to the actual data values and
15-
closely relates to the DPF-Core "Fields Container" concept.
14+
- ``ResultData``: Provides access to the actual data values and
15+
closely relates to the *fields container* concept in DPF-Core.
1616

1717

1818
.. toctree::
19+
:hidden:
1920
:maxdepth: 1
20-
:caption: Contents
2121

2222
solution
2323
result_object

docs/source/api/result_data.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
``ResultData`` class
55
********************
66

7-
The :class:`ResultData <ansys.dpf.post.result_data.ResultData>` object is
8-
obtained from a :class:`Result <ansys.dpf.core.results.Result>` object. The ``Result``
9-
class provides access to the result values contained within, as shown in the following
10-
example:
7+
The :class:`ResultData <ansys.dpf.post.result_data.ResultData>` class is
8+
created using the :class:`Result <ansys.dpf.core.results.Result>` class. The ``Result``
9+
class provides access to the result values contained in the ``Result`` object.
10+
11+
This example shows how to access ``displacement`` result values:
1112

1213
.. code:: python
1314

docs/source/api/result_object.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
.. _ref_api_result_object:
22

3-
**********
4-
``Result``
5-
**********
3+
****************
4+
``Result`` class
5+
****************
66

77
The :class:`Result <ansys.dpf.post.result_object.Result>` class provides access
8-
to different types of result data. This code shows how to access result
9-
data for displacements, stresses and elastic strains:
8+
to different types of result data.
9+
10+
This code shows how you can access result data for displacements, stresses, and
11+
elastic strains:
1012

1113
.. code:: python
1214
@@ -26,7 +28,7 @@ data for displacements, stresses and elastic strains:
2628
2729
>>> elastic_strain = solution.elastic_strain()
2830
29-
DPF-Post features separate result classes for each supported result type. For information on
31+
DPF-Post features separate ``Result`` classes for each supported result type. For information on
3032
the available types and their interfaces, see :ref:`user_guide_accessing_results`.
3133

3234
.. currentmodule:: ansys.dpf.post

docs/source/api/solution.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.. _ref_api_solution:
22

3-
***************
4-
``DpfSolution``
5-
***************
3+
*********************
4+
``DpfSolution`` class
5+
*********************
66

77
The :class:`DpfSolution <ansys.dpf.post.dpf_solution.DpfSolution>` class is
8-
the entry point for browsing the contents of the results file. This code shows how
9-
to load the file and obtain the instance.
8+
the entry point for browsing the contents of the result file.
9+
10+
This code shows how to load a result file:
1011

1112
.. code:: python
1213

0 commit comments

Comments
 (0)