From ea640ea1041a69258f4cf26ad14efcfd83af357c Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Tue, 17 Mar 2015 00:18:58 +0000 Subject: [PATCH] FEM: fix typos machanical -> mechanical Van Mises -> Von Mises http://en.wikipedia.org/wiki/Von_Mises_yield_criterion Signed-off-by: Przemo Firszt --- src/Mod/Fem/CalculixLib.py | 2 +- src/Mod/Fem/MechanicalAnalysis.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Fem/CalculixLib.py b/src/Mod/Fem/CalculixLib.py index 08dd6c4aa..41bac05f7 100644 --- a/src/Mod/Fem/CalculixLib.py +++ b/src/Mod/Fem/CalculixLib.py @@ -163,7 +163,7 @@ def importFrd(filename,Analysis=None): mstress.append( sqrt( pow( i[0] - i[1] ,2) + pow( i[1] - i[2] ,2) + pow( i[2] - i[0] ,2) + 6 * (pow(i[3],2)+pow(i[4],2)+pow(i[5],2) ) ) ) o.Values = mstress - o.DataType = 'VanMisesStress' + o.DataType = 'VonMisesStress' o.ElementNumbers = stress.keys() if(MeshObject): o.Mesh = MeshObject diff --git a/src/Mod/Fem/MechanicalAnalysis.py b/src/Mod/Fem/MechanicalAnalysis.py index 615c4ae18..9d778ae7b 100644 --- a/src/Mod/Fem/MechanicalAnalysis.py +++ b/src/Mod/Fem/MechanicalAnalysis.py @@ -87,7 +87,7 @@ class _CommandMechanicalJobControl: return {'Pixmap' : 'Fem_NewAnalysis', 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl","Start calculation"), 'Accel': "A", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl","Dialog to start the calculation of the machanical anlysis")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl","Dialog to start the calculation of the mechanical anlysis")} def Activated(self): import FemGui @@ -122,7 +122,7 @@ class _CommandMechanicalShowResult: StressObject = None for i in FemGui.getActiveAnalysis().Member: if i.isDerivedFrom("Fem::FemResultValue"): - if i.DataType == 'VanMisesStress': + if i.DataType == 'VonMisesStress': StressObject = i if not DisplacementObject and not StressObject: @@ -647,9 +647,9 @@ class _ResultControlTaskPanel: self.form.comboBox_Type.addItem("Uabs (Disp. abs)") for i in FemGui.getActiveAnalysis().Member: if i.isDerivedFrom("Fem::FemResultValue"): - if i.DataType == 'VanMisesStress': + if i.DataType == 'VonMisesStress': self.StressObject = i - self.form.comboBox_Type.addItem("Sabs (Van Mises Stress)") + self.form.comboBox_Type.addItem("Sabs (Von Mises Stress)") def accept(self): FreeCADGui.Control.closeDialog()