Skip to content

Commit 4de2bf1

Browse files
updates on the basic tuts
1 parent 51fc7b9 commit 4de2bf1

File tree

10 files changed

+114
-98
lines changed

10 files changed

+114
-98
lines changed

doc/source/user_guide/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Troubleshooting
5757
:hidden:
5858
:caption: Tutorials
5959

60-
tutorials/01-language_and_usage/index.rst
61-
tutorials/02-processing_basics/index.rst
62-
tutorials/03-post_processing_basics/index.rst
60+
tutorials/01-data_structures/index.rst
61+
tutorials/02-language_and_usage/index.rst
62+
tutorials/03-processing_basics/index.rst
6363
tutorials/04-import_data/index.rst
6464
tutorials/05-mesh/index.rst
6565
tutorials/06-transform_data/index.rst
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. _ref_tutorials_data_structures:
2+
3+
===================
4+
DPF data structures
5+
===================
6+
7+
DPF uses two main data structures to handle data: Fields and Collections.
8+
Therefore, it is important to be aware of how the data is
9+
structured in those containers.
10+
11+
The data containers can be:
12+
13+
- **Raw data storage structures**: Data arrays (a ``Field`` for example) or Data Maps (a ``DataTree`` for example)
14+
- **Collections**: a group of same labeled objects from one DPF raw data storage structure (a ``FieldsContainer`` for example, that is a group of ``Fields`` with the same label)
15+
16+
These tutorials explains how these structures work and how you can manipulate data within.
17+
18+
.. grid:: 1 1 3 3
19+
:gutter: 2
20+
:padding: 2
21+
:margin: 2
22+
23+
.. grid-item-card:: DPF raw data storage structures
24+
:link: ref_tutorials
25+
:link-type: ref
26+
:text-align: center
27+
28+
This tutorial shows how to create and work with some DPF data arrays:
29+
Field, StringField and PropertyField
30+
31+
32+
.. grid-item-card:: DPF collections
33+
:link: ref_tutorials_language_and_usage
34+
:link-type: ref
35+
:text-align: center
36+
37+
This tutorial shows how to create and work with some DPF collections:
38+
FieldsContainer, MeshesContainer and ScopingContainer

doc/source/user_guide/tutorials/01-language_and_usage/index.rst renamed to doc/source/user_guide/tutorials/02-language_and_usage/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
PyDPF-Core language and usage
55
=============================
66

7-
This tutorial gives you an overview on how the PyDPF-Core API can be used.
8-
Here you will learn the different ways to interact with data by calling PyDPF-Core
9-
commands and operators.
7+
This tutorials gives you an overview on how the PyDPF-Core API can be used
8+
to interact with data.
109

1110
For more detailed information on each module and function, see :ref:`ref_api_section`.
1211

1312

14-
15-
16-

doc/source/user_guide/tutorials/02-processing_basics/index.rst

Lines changed: 0 additions & 51 deletions
This file was deleted.

doc/source/user_guide/tutorials/03-post_processing_basics/index.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.
File renamed without changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.. _ref_tutorials_processing_basics:
2+
3+
======================
4+
Processing data basics
5+
======================
6+
7+
Data Processing consists in a series of operations applied to data to achieve a goal. DPF enables
8+
you to access and transform simulation data using customizable workflows.
9+
10+
There is an extensive catalog of operators with different kinds and complexity that can be used together.
11+
We can globally categorize them in two groups:
12+
13+
- Operators that acts directly in the data, like the mathematical, filter and averaging ones.
14+
- Operators that manipulate the DPF entities themselves, like the logical, sorting and components selection ones.
15+
16+
The tutorials in this section presents some possible applications of PyDPF-Core
17+
18+
If you are not familiarized with those concepts you can check our concepts section: :ref:`ref_concepts`
19+
20+
.. grid:: 1 1 3 3
21+
:gutter: 2
22+
:padding: 2
23+
:margin: 2
24+
25+
.. grid-item-card:: Mathematical operations
26+
:link: ref_tutorials
27+
:link-type: ref
28+
:text-align: center
29+
30+
This tutorial demonstrate some mathematical operations that can be
31+
performed with PyDPF-Core
32+
33+
34+
.. grid-item-card:: Post-processing basics
35+
:link: tutorials_main_steps
36+
:link-type: ref
37+
:text-align: center
38+
39+
This tutorial demonstrate a basic post-processing procedure
40+
using PyDPf-Core based on its usual main steps. The goal is to
41+
transform simulation data into output data that can be used to
42+
visualize and analyze simulation results.

doc/source/user_guide/tutorials/04-import_data/index.rst

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,14 @@ From user input
2020
:link-type: ref
2121
:text-align: center
2222

23-
This tutorial
24-
25-
.. grid-item-card:: Create a data storage structure from scratch
26-
:link: ref_tutorials
27-
:link-type: ref
28-
:text-align: center
29-
30-
This tutorial
23+
Learn how to import data in DPF from csv file
3124

32-
.. grid-item-card:: Create a mesh from scratch
25+
.. grid-item-card:: Represent your data in DPF
3326
:link: ref_tutorials
3427
:link-type: ref
3528
:text-align: center
3629

37-
This tutorial
30+
Learn how to represent your manual input data in a DPF data storage structure
3831

3932
From result files
4033
*****************

doc/source/user_guide/tutorials/05-mesh/index.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Mesh
55
====
66

7-
The mesh in DPF is represented by the :class:`MeshedRegion<ansys.dpf.core.meshed_region.MeshedRegion>` entity.
7+
The mesh in DPF is represented by the :class:`MeshedRegion <ansys.dpf.core.meshed_region.MeshedRegion>` entity.
88

99
These tutorials explains how to explore different attributes of a given mesh with PyDPF-Core.
1010

@@ -14,6 +14,20 @@ These tutorials explains how to explore different attributes of a given mesh wit
1414
:padding: 2
1515
:margin: 2
1616

17+
.. grid-item-card:: Create a mesh from scratch
18+
:link: ref_tutorials
19+
:link-type: ref
20+
:text-align: center
21+
22+
This tutorial
23+
24+
.. grid-item-card:: Get the mesh from a result file
25+
:link: ref_tutorials
26+
:link-type: ref
27+
:text-align: center
28+
29+
This tutorial
30+
1731
.. grid-item-card:: Read the mesh metadata
1832
:link: ref_tutorials
1933
:link-type: ref

doc/source/user_guide/tutorials/index.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,28 @@ of our package background so you can understand how to work with it.
2424
:padding: 2
2525
:margin: 2
2626

27-
.. grid-item-card:: PyDPF-Core language fundamentals
28-
:link: ref_tutorials_language_and_usage
27+
.. grid-item-card:: PyDPF-Core data structures
28+
:link: ref_tutorials_data_structures
2929
:link-type: ref
3030
:text-align: center
3131

32-
Check an overview on how to use PyDPF-Core API.
33-
Learn the different ways to interact with data by calling PyDPF-Core
34-
classes and operators.
32+
Learn the different data structures used by DPF when handling data
3533

36-
.. grid-item-card:: Processing data basics
37-
:link: ref_tutorials_processing_basics
34+
.. grid-item-card:: PyDPF-Core language
35+
:link: ref_tutorials_language_and_usage
3836
:link-type: ref
3937
:text-align: center
4038

41-
Learn the basics on how data can be manipulated with PyDPF-Core:
42-
How to create data storage structures, basic mathematics with the data...
39+
Check an overview on how to use PyDPF-Core API.
40+
Learn the different ways to interact with data by using PyDPF-Core
41+
objects and methods.
4342

44-
.. grid-item-card:: Post processing simulations basics
45-
:link: ref_tutorials_post_processing_basics
43+
.. grid-item-card:: Processing data basics
44+
:link: ref_tutorials_processing_basics
4645
:link-type: ref
4746
:text-align: center
4847

49-
Check a basic post-processing procedure using PyDPf-Core.
48+
Learn the basics on how data can be manipulated with PyDPF-Core
5049

5150
:fa:`book-open-reader` Features usage
5251
*************************************

0 commit comments

Comments
 (0)