FEM: typo, pep8
This commit is contained in:
@@ -28,21 +28,19 @@ setup()
|
||||
|
||||
"""
|
||||
|
||||
"""
|
||||
Nonlinear material example, plate with hole.
|
||||
# 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
|
||||
# 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
|
||||
"""
|
||||
# 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
|
||||
|
||||
@@ -45,7 +45,7 @@ class Proxy(object):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user