Fem: Improve constraint tie - partial fixes #11653
This commit is contained in:
@@ -70,10 +70,13 @@ def write_constraint(f, femobj, tie_obj, ccxwriter):
|
||||
# floats read from ccx should use {:.13G}, see comment in writer module
|
||||
|
||||
tolerance = tie_obj.Tolerance.getValueAs("mm").Value
|
||||
adjust = ""
|
||||
if not tie_obj.Adjust:
|
||||
adjust = ", ADJUST=NO"
|
||||
f.write(
|
||||
"*TIE, POSITION TOLERANCE={:.13G}, ADJUST=NO, NAME=TIE{}\n"
|
||||
.format(tolerance, tie_obj.Name)
|
||||
"*TIE, POSITION TOLERANCE={:.13G}{}, NAME=TIE{}\n"
|
||||
.format(tolerance, adjust, tie_obj.Name)
|
||||
)
|
||||
ind_surf = "TIE_IND{}".format(tie_obj.Name)
|
||||
dep_surf = "TIE_DEP{}".format(tie_obj.Name)
|
||||
f.write("{},{}\n".format(dep_surf, ind_surf))
|
||||
f.write("{}, {}\n".format(dep_surf, ind_surf))
|
||||
|
||||
Reference in New Issue
Block a user