MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / box_model

Function box_model

pythran/fem/main.py:52–57  ·  view source on GitHub ↗
(elsize='qa0.4')

Source from the content-addressed store, hash-verified

50 print()
51# 1}}}
52def box_model(elsize='qa0.4'): # {{{
53 A = dict(vertices=np.array(((0, 0), (1, 0), (1, 1), (0, 1))))
54 B = tr.triangulate(A, elsize)
55 B['constrained_x'] = [] # nodes with x dof fixed
56 B['constrained_y'] = [] # nodes with y dof fixed
57 return B
58# }}}
59def equitriangle_model(elsize='qa1', # {{{
60 constrain=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected