Skip to content

Commit 43c39bf

Browse files
committed
Merged PR 335938: typo: Mecanic to Mechanical
update Related work items: #690714
2 parents 0fe653e + f580ad4 commit 43c39bf

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ To open a result file and explore what's inside, do:
8484
------------------------------
8585
Static analysis
8686
Unit system: Metric (m, kg, N, s, V, A)
87-
Physics Type: Mecanic
87+
Physics Type: Mechanical
8888
Available results:
8989
- displacement: Nodal Displacement
9090
- element_nodal_forces: ElementalNodal Element nodal Forces

ansys/dpf/core/result_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class physics_types(Enum):
1717
"""
1818
``'Physics_types'`` enumerates the different types of physics that an analysis can have.
1919
"""
20-
mecanic = 0 # TODO change for "mechanical"?
20+
mechanical = 0
2121
thermal = 1
2222
magnetic = 2
2323
electric = 3
@@ -152,7 +152,7 @@ def physics_type(self):
152152
>>> model = dpf.Model(transient)
153153
>>> result_info = model.metadata.result_info
154154
>>> result_info.physics_type
155-
'mecanic'
155+
'mechanical'
156156
157157
"""
158158
return self._get_physics_type()

docs/source/_static/simple_example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extracting results from it is easy:
2020
------------------------------
2121
Static analysis
2222
Unit system: Metric (m, kg, N, s, V, A)
23-
Physics Type: Mecanic
23+
Physics Type: Mechanical
2424
Available results:
2525
- displacement: Nodal Displacement
2626
- element_nodal_forces: ElementalNodal Element nodal Forces

docs/source/getting_started/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ For a quick tryout installation, use:
109109
------------------------------
110110
Static analysis
111111
Unit system: Metric (m, kg, N, s, V, A)
112-
Physics Type: Mecanic
112+
Physics Type: Mechanical
113113
Available results:
114114
- displacement: Nodal Displacement
115115
- element_nodal_forces: ElementalNodal Element nodal Forces

docs/source/user_guide/model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To understand what is available in the result file, you can print the model
3939
------------------------------
4040
Static analysis
4141
Unit system: Metric (m, kg, N, s, V, A)
42-
Physics Type: Mecanic
42+
Physics Type: Mechanical
4343
Available results:
4444
- displacement: Nodal Displacement
4545
- element_nodal_forces: ElementalNodal Element nodal Forces
@@ -158,7 +158,7 @@ To view available results, print them:
158158
159159
Static analysis
160160
Unit system: Metric (m, kg, N, s, V, A)
161-
Physics Type: Mecanic
161+
Physics Type: Mechanical
162162
Available results:
163163
- displacement: Nodal Displacement
164164
- element_nodal_forces: ElementalNodal Element nodal Forces

tests/test_resultinfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_get_resultinfo_no_model(velocity_acceleration, server_type):
1818
assert res.analysis_type == "static"
1919
assert res.n_results == 14
2020
assert "m, kg, N, s, V, A" in res.unit_system
21-
assert res.physics_type == "mecanic"
21+
assert res.physics_type == "mechanical"
2222

2323

2424
def test_get_resultinfo(model):
@@ -27,7 +27,7 @@ def test_get_resultinfo(model):
2727
assert res.analysis_type == "static"
2828
assert res.n_results == 14
2929
assert "m, kg, N, s, V, A" in res.unit_system
30-
assert res.physics_type == "mecanic"
30+
assert res.physics_type == "mechanical"
3131

3232

3333
def test_get_resultinfo_2(simple_bar, server_type):

0 commit comments

Comments
 (0)