From cdc290ce30c645abb3b1e4d72e458a230ef65c35 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Sun, 22 Mar 2020 10:33:29 +0100 Subject: [PATCH] FEM: typo, pep8 --- .../femexamples/material_nl_platewithhole.py | 24 +++++++++---------- src/Mod/Fem/femobjects/FemConstraint.py | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/Mod/Fem/femexamples/material_nl_platewithhole.py b/src/Mod/Fem/femexamples/material_nl_platewithhole.py index 787bdebc95..cb623aa675 100644 --- a/src/Mod/Fem/femexamples/material_nl_platewithhole.py +++ b/src/Mod/Fem/femexamples/material_nl_platewithhole.py @@ -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 diff --git a/src/Mod/Fem/femobjects/FemConstraint.py b/src/Mod/Fem/femobjects/FemConstraint.py index 00fe8b60a1..36ffef4d53 100644 --- a/src/Mod/Fem/femobjects/FemConstraint.py +++ b/src/Mod/Fem/femobjects/FemConstraint.py @@ -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