Skip to content

Commit da22ce0

Browse files
implemented review suggestions (#427)
* implemented review suggestions * header change
1 parent 3ca6c70 commit da22ce0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

examples/00-basic/12-get_material_properties.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
Get material properties from the result file
55
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
Material properties are assigned to each element in APDL and by default they
7-
are written out in the APDL result file. We can extract material properties
8-
of each element using PyDPF by getting the properties from the `meshed_region`.
9-
10-
The material properties are then passed onto the operator
11-
`mapdl_material_properties()`
7+
are written out in the APDL result file. This example shows how we can extract
8+
material properties of each element using PyDPF.
129
1310
Import necessary modules:
1411
"""
@@ -21,29 +18,32 @@
2118
model = dpf.Model(examples.simple_bar)
2219

2320
###############################################################################
24-
# Get the `meshed_region` from model's metadata.
21+
# Get the :class:`meshed_region <ansys.dpf.core.meshed_region.MeshedRegion>`
22+
# from model's metadata.
2523
mesh = model.metadata.meshed_region
2624
print(mesh)
2725

2826
###############################################################################
29-
# See available properties in the `meshed_region`
27+
# See available properties in the :class:`meshed_region
28+
# <ansys.dpf.core.meshed_region.MeshedRegion>`
3029
print(mesh.available_property_fields)
3130

3231
###############################################################################
3332
# Get all the material properties
3433
mats = mesh.property_field("mat")
3534

3635
###############################################################################
37-
# Use the DPF operator `mapdl_material_properties` to extract data for the
38-
# materials - `mats`. For the input `properties_name`, you need the correct
39-
# material property string. To see what all strings are supported, you can
40-
# print the operator help.
36+
# Use the DPF operator :class:`mapdl_material_properties
37+
# <ansys.dpf.core.operators.result.mapdl_material_properties.mapdl_material_properties>`
38+
# to extract data for the # materials - `mats`. For the input
39+
# `properties_name`, you need the correct material property string. To see
40+
# which strings are supported, you can print the operator help.
4141
mat_prop = model.operator("mapdl_material_properties")
4242
mat_prop.inputs.materials.connect(mats)
4343

4444
###############################################################################
45-
# For the input `properties_name`, you need the correct
46-
# material property string. To see what all strings are supported, you can
45+
# For the input pin `properties_name`, you need the correct
46+
# material property string. To see which strings are supported, you can
4747
# print the operator help.
4848
print(mat_prop)
4949

0 commit comments

Comments
 (0)