Skip to content

Commit

Permalink
FEM: ccx writer, lgtm, Nested for statement uses loop variable 'femob…
Browse files Browse the repository at this point in the history
…j' of enclosing for statement
  • Loading branch information
berndhahnebach committed Jun 29, 2019
1 parent 06f42de commit d19470a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Fem/femsolver/calculix/writer.py
Expand Up @@ -721,9 +721,9 @@ def write_materials(self, f):

# nonlinear material properties
if self.solver_obj.MaterialNonlinearity == 'nonlinear':
for femobj in self.material_nonlinear_objects:
# femobj --> dict, FreeCAD document object is femobj['Object']
nl_mat_obj = femobj['Object']
for nlfemobj in self.material_nonlinear_objects:
# femobj --> dict, FreeCAD document object is nlfemobj['Object']
nl_mat_obj = nlfemobj['Object']
if nl_mat_obj.LinearBaseMaterial == mat_obj:
if nl_mat_obj.MaterialModelNonlinearity == "simple hardening":
f.write('*PLASTIC\n')
Expand Down

0 comments on commit d19470a

Please sign in to comment.