Skip to content

Commit

Permalink
FEM: ccx writer, small code formating
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jan 30, 2020
1 parent 899854a commit 31bd5ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/calculix/writer.py
Expand Up @@ -1050,11 +1050,11 @@ def write_constraints_contact(self, f):
obj = obj + 1
contact_obj = femobj["Object"]
f.write("** " + contact_obj.Label + "\n")
f.write("*CONTACT PAIR, INTERACTION=INT" + str(obj) + ",TYPE=SURFACE TO SURFACE\n")
f.write("*CONTACT PAIR, INTERACTION=INT{},TYPE=SURFACE TO SURFACE\n".format(obj))
ind_surf = "IND" + str(obj)
dep_surf = "DEP" + str(obj)
f.write(dep_surf + "," + ind_surf + "\n")
f.write("*SURFACE INTERACTION, NAME=INT" + str(obj) + "\n")
f.write("*SURFACE INTERACTION, NAME=INT{}\n".format(obj))
f.write("*SURFACE BEHAVIOR,PRESSURE-OVERCLOSURE=LINEAR\n")
slope = contact_obj.Slope
f.write(str(slope) + " \n")
Expand Down

0 comments on commit 31bd5ce

Please sign in to comment.