(elsize='qa1', # {{{
constrain=None)
| 57 | return B |
| 58 | # }}} |
| 59 | def equitriangle_model(elsize='qa1', # {{{ |
| 60 | constrain=None): |
| 61 | A = dict(vertices=np.array(((0, 0), (1, 0), (0.5, 0.866)))) |
| 62 | B = tr.triangulate(A, elsize) |
| 63 | if constrain == 'bottom_edge': |
| 64 | node_ids = np.argwhere(B['vertices'][:,1] == 0) |
| 65 | B['constrained_x'] = node_ids.squeeze() # nodes with x dof fixed |
| 66 | B['constrained_y'] = node_ids.squeeze() # nodes with y dof fixed |
| 67 | else: |
| 68 | B['constrained_x'] = [] # nodes with x dof fixed |
| 69 | B['constrained_y'] = [] # nodes with y dof fixed |
| 70 | return B |
| 71 | # }}} |
| 72 | def beam_model(elsize='qa0.4', # {{{ |
| 73 | constrain=None): |
nothing calls this directly
no outgoing calls
no test coverage detected