File tree Expand file tree Collapse file tree 1 file changed +19
-18
lines changed
src/Mod/Fem/femsolver/suqaba Expand file tree Collapse file tree 1 file changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -264,27 +264,28 @@ def write_suqaba_dirichlet(self):
264264 roll_obj = roll ["Object" ]
265265 label = roll_obj .Label
266266
267+ self .displ_dict [label ] = []
268+
267269 for obj in roll_obj .References :
268- tag_cnt = 0
269270 for entity in obj [1 ]:
270271 face_tag = self .get_tag (entity )
271- tag_cnt += 1
272- label_alias = f" { label } _ { tag_cnt } "
273- displ_inputs .append ((
274- " {{\n "
275- " \" name\" : \" {LABEL}\" ,\n "
276- " \" load_fx\" : {{\n "
277- " \" x\" : \" {UX}\" ,\n "
278- " \" y\" : \" {UY}\" ,\n "
279- " \" z\" : \" {UZ}\" \n "
280- " }},\n "
281- " \" tags\" : [{TAG }]\n "
282- " }}"
283- ).format (LABEL = label_alias ,
284- UX = "0.0" ,
285- UY = "0.0" ,
286- UZ = "0.0" ,
287- TAG = face_tag ))
272+ self . displ_dict [ label ]. append ( face_tag )
273+
274+ displ_inputs .append ((
275+ " {{\n "
276+ " \" name\" : \" {LABEL}\" ,\n "
277+ " \" load_fx\" : {{\n "
278+ " \" x\" : \" {UX}\" ,\n "
279+ " \" y\" : \" {UY}\" ,\n "
280+ " \" z\" : \" {UZ}\" \n "
281+ " }},\n "
282+ " \" tags\" : [{TAGS }]\n "
283+ " }}"
284+ ).format (LABEL = label ,
285+ UX = "0.0" ,
286+ UY = "0.0" ,
287+ UZ = "0.0" ,
288+ TAGS = ", " . join ( map ( lambda t : str ( t ), self . displ_dict [ label ])) ))
288289
289290 self .json_string += separator .join (displ_inputs )
290291 self .json_string += "\n ],\n "
You can’t perform that action at this time.
0 commit comments