Skip to content

Commit

Permalink
FEM: result mechanical, change obj type
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 22, 2020
1 parent 158e076 commit 3ff9d36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/femobjects/_FemResultMechanical.py
Expand Up @@ -38,7 +38,7 @@ class _FemResultMechanical(FemConstraint.Proxy):
The Fem::_FemResultMechanical's Proxy python type, add result specific properties
"""

Type = "Fem::FemResultMechanical"
Type = "Fem::ResultMechanical"

def __init__(self, obj):
super(_FemResultMechanical, self).__init__(obj)
Expand Down
14 changes: 7 additions & 7 deletions src/Mod/Fem/femresult/resulttools.py
Expand Up @@ -64,7 +64,7 @@ def reset_mesh_deformation(resultobj):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
"""

Expand All @@ -78,7 +78,7 @@ def reset_mesh_color(resultobj):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
"""

Expand Down Expand Up @@ -106,7 +106,7 @@ def show_result(resultobj, result_type="Sabs", limit=None):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
result_type : str, optional
default is Sabs
Expand Down Expand Up @@ -142,7 +142,7 @@ def show_color_by_scalar_with_cutoff(resultobj, values, limit=None):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
values : list of floats
the values to be colored and cutoff
Expand Down Expand Up @@ -175,7 +175,7 @@ def get_stats(res_obj, result_type):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
result_type : str
type of FEM result
Expand Down Expand Up @@ -227,7 +227,7 @@ def get_all_stats(res_obj):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
Expand Down Expand Up @@ -257,7 +257,7 @@ def fill_femresult_stats(res_obj):
Parameters
----------
resultobj : Fem::FemResultMechanical
resultobj : Fem::ResultMechanical
FreeCAD FEM mechanical result object
"""

Expand Down
6 changes: 3 additions & 3 deletions src/Mod/Fem/femtest/app/test_object.py
Expand Up @@ -318,7 +318,7 @@ def test_femobjects_type(
type_of_obj(ObjectsFem.makeMeshResult(doc))
)
self.assertEqual(
"Fem::FemResultMechanical",
"Fem::ResultMechanical",
type_of_obj(ObjectsFem.makeResultMechanical(doc))
)
solverelmer = ObjectsFem.makeSolverElmer(doc)
Expand Down Expand Up @@ -518,7 +518,7 @@ def test_femobjects_isoftype(
))
self.assertTrue(is_of_type(
ObjectsFem.makeResultMechanical(doc),
"Fem::FemResultMechanical"
"Fem::ResultMechanical"
))
solverelmer = ObjectsFem.makeSolverElmer(doc)
self.assertTrue(is_of_type(
Expand Down Expand Up @@ -1104,7 +1104,7 @@ def test_femobjects_derivedfromfem(
))
self.assertTrue(is_derived_from(
result_mechanical,
"Fem::FemResultMechanical"
"Fem::ResultMechanical"
))

# FemSolverCalculixCcxTools
Expand Down

0 comments on commit 3ff9d36

Please sign in to comment.