Skip to content
Snippets Groups Projects
Commit 69807510 authored by Boman Romain's avatar Boman Romain
Browse files

fix extraction when fixation are named with custom strings (as in feito)

parent 1b6425b2
No related branches found
No related tags found
No related merge requests found
Pipeline #23904 passed
...@@ -189,7 +189,8 @@ def solve(p={}): ...@@ -189,7 +189,8 @@ def solve(p={}):
print('extracting results...') print('extracting results...')
print(f'\tinternal energy = {solver.int_energy:.3f} N.mm') print(f'\tinternal energy = {solver.int_energy:.3f} N.mm')
for grpname in ['axis_pt1', 'axis_pt2', 'contact_pts']: for fix in p['fixations']:
grpname = fix['name']
v = np.array(post.probe('force_vector', grpname)) v = np.array(post.probe('force_vector', grpname))
v = np.reshape(v, (v.size//3, 3)) v = np.reshape(v, (v.size//3, 3))
v = np.sum(v, axis=0) v = np.sum(v, axis=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment