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

Function main

cython/fem/main_load_node_ele.py:55–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54# }}}
55def main(): # {{{
56 if len(sys.argv) < 2:
57 print("Usage: %s <file>" % sys.argv[0])
58 print(" where <file>.ele and <file>.node exist")
59 print(" ./triangle_utils.py beam.1 beam.2 beam.3 beam.4")
60
61 raise SystemExit
62
63 for F in sys.argv[1:]:
64 model = load_model(F)
65 print(f"{F:<10s} "
66 f"{len(model['vertices']):7d} nodes, "
67 f"{len(model['triangles']):7d} triangles")
68 print('Nodes:')
69 print(model['vertices'])
70 print('Elements:')
71 print(model['triangles'])
72# }}}
73if __name__ == "__main__": main()

Callers 1

Calls 1

load_modelFunction · 0.70

Tested by

no test coverage detected