Skip to content

Commit

Permalink
FEM: fix typos
Browse files Browse the repository at this point in the history
machanical -> mechanical
Van Mises -> Von Mises

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

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF authored and wwmayer committed Mar 21, 2015
1 parent 41539d6 commit ea640ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/CalculixLib.py
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Fem/MechanicalAnalysis.py
Expand Up @@ -87,7 +87,7 @@ def GetResources(self):
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
Expand Down Expand Up @@ -122,7 +122,7 @@ def Activated(self):
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:
Expand Down Expand Up @@ -647,9 +647,9 @@ def update(self):
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()
Expand Down

0 comments on commit ea640ea

Please sign in to comment.