FEM: fix typos

machanical -> mechanical
Van Mises -> Von Mises

http://en.wikipedia.org/wiki/Von_Mises_yield_criterion

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-03-17 00:18:58 +00:00 committed by wmayer
parent 41539d672b
commit ea640ea104
2 changed files with 5 additions and 5 deletions

View File

@ -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) ) ) ) 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.Values = mstress
o.DataType = 'VanMisesStress' o.DataType = 'VonMisesStress'
o.ElementNumbers = stress.keys() o.ElementNumbers = stress.keys()
if(MeshObject): if(MeshObject):
o.Mesh = MeshObject o.Mesh = MeshObject

View File

@ -87,7 +87,7 @@ class _CommandMechanicalJobControl:
return {'Pixmap' : 'Fem_NewAnalysis', return {'Pixmap' : 'Fem_NewAnalysis',
'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl","Start calculation"), 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl","Start calculation"),
'Accel': "A", '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): def Activated(self):
import FemGui import FemGui
@ -122,7 +122,7 @@ class _CommandMechanicalShowResult:
StressObject = None StressObject = None
for i in FemGui.getActiveAnalysis().Member: for i in FemGui.getActiveAnalysis().Member:
if i.isDerivedFrom("Fem::FemResultValue"): if i.isDerivedFrom("Fem::FemResultValue"):
if i.DataType == 'VanMisesStress': if i.DataType == 'VonMisesStress':
StressObject = i StressObject = i
if not DisplacementObject and not StressObject: if not DisplacementObject and not StressObject:
@ -647,9 +647,9 @@ class _ResultControlTaskPanel:
self.form.comboBox_Type.addItem("Uabs (Disp. abs)") self.form.comboBox_Type.addItem("Uabs (Disp. abs)")
for i in FemGui.getActiveAnalysis().Member: for i in FemGui.getActiveAnalysis().Member:
if i.isDerivedFrom("Fem::FemResultValue"): if i.isDerivedFrom("Fem::FemResultValue"):
if i.DataType == 'VanMisesStress': if i.DataType == 'VonMisesStress':
self.StressObject = i self.StressObject = i
self.form.comboBox_Type.addItem("Sabs (Van Mises Stress)") self.form.comboBox_Type.addItem("Sabs (Von Mises Stress)")
def accept(self): def accept(self):
FreeCADGui.Control.closeDialog() FreeCADGui.Control.closeDialog()