File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 59
59
mm_op = dpf .Operator ("min_max_fc" )
60
60
mm_op .inputs .connect (norm_op .outputs )
61
61
62
- # Finally, get the value of the maximum displacement
62
+ # Finally, get the value of the maximum displacement.
63
63
field_max = mm_op .outputs .field_max ()
64
64
print (field_max )
65
65
print (field_max .data )
78
78
# Create the displacement operator directly from the ``results`` property:
79
79
disp_op = model .results .displacement ()
80
80
81
- # Out of convenience, the operators module contains available operators
82
- # Those operators can be created in chain to create a workflow in one line
81
+ # Out of convenience, the `` operators`` module contains available operators.
82
+ # These operators can be chained to create a workflow in one line.
83
83
from ansys .dpf .core import operators
84
84
85
85
mm_op = operators .min_max .min_max_fc (operators .math .norm_fc (disp_op ))
103
103
104
104
###############################################################################
105
105
# Instead of using a ``model`` class instance, use a
106
- # datasources object directly. The ``DataSources`` constructor input is a path.
106
+ # ``DdataSources`` object directly. The ``DataSources`` constructor input is a path.
107
107
ds = dpf .DataSources (examples .static_rst )
108
108
print (examples .static_rst )
109
109
Original file line number Diff line number Diff line change 4
4
Field and Field Containers Overview
5
5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6
6
In DPF, the field is the main simulation data container. During a numerical
7
- simulations , result data is defined by values associated to entities
7
+ simulation , result data is defined by values associated to entities
8
8
(scoping). These entities are a subset of a model (support).
9
9
10
10
Because field data is always associated to its scoping and support,
14
14
tensor, stress or strain equivalent, or minimum or maximum
15
15
over time of any result. A field can be defined on a complete model or
16
16
on only certain entities of the model based on its scoping. The data
17
- is stored as a vector of double values and each elementary entity has
17
+ is stored as a vector of double values, and each elementary entity has
18
18
a number of components. For example, a displacement will have three
19
19
components, and a symmetrical stress matrix will have six components.
20
20
Original file line number Diff line number Diff line change 3
3
4
4
Use Result Helpers to Load Custom Data
5
5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6
- The ``Result`` class, which are instances created by the ``Model``, give
6
+ The ``Result`` class, which is an instance created by the ``Model``, gives
7
7
access to helpers for requesting results on specific mesh and time scopings.
8
8
With these helpers, working on a custom spatial and temporal subset of the
9
9
model is straightforward.
You can’t perform that action at this time.
0 commit comments