Skip to content

Commit

Permalink
FEM: typo, pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 22, 2020
1 parent 894b55a commit e5ec4f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
28 changes: 13 additions & 15 deletions src/Mod/Fem/femexamples/material_nl_platewithhole.py
Expand Up @@ -28,21 +28,19 @@
"""

"""
Nonlinear material example, plate with hole.
https://forum.freecadweb.org/viewtopic.php?f=24&t=31997&start=30
https://forum.freecadweb.org/viewtopic.php?t=33974&start=90
https://forum.freecadweb.org/viewtopic.php?t=35893
plate: 400x200x10 mm
hole: diameter 100 mm (half cross section)
load: 130 MPa tension
linear material: Steel, E = 210000 MPa, my = 0.3
nonlinear material: '240.0, 0.0' to '270.0, 0.025'
TODO nonlinear material: give more information, use values from harry
TODO compare results with example from HarryvL
"""
# Nonlinear material example, plate with hole.

# https://forum.freecadweb.org/viewtopic.php?f=24&t=31997&start=30
# https://forum.freecadweb.org/viewtopic.php?t=33974&start=90
# https://forum.freecadweb.org/viewtopic.php?t=35893

# plate: 400x200x10 mm
# hole: diameter 100 mm (half cross section)
# load: 130 MPa tension
# linear material: Steel, E = 210000 MPa, my = 0.3
# nonlinear material: '240.0, 0.0' to '270.0, 0.025'
# TODO nonlinear material: give more information, use values from harry
# TODO compare results with example from HarryvL

import FreeCAD
from FreeCAD import Vector as vec
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femobjects/FemConstraint.py
Expand Up @@ -45,7 +45,7 @@ def __getstate__(self):
return self.Type

def __setstate__(self, state):
# a few FEM objects had this attribut assignment before the move to this Python base obj class
# some objects had this attribute assignment before the move to this Python base obj class
# these objects will give a setAttr failed error on document loading without this assignment
if state:
self.Type = state

0 comments on commit e5ec4f3

Please sign in to comment.