spacether / pycalculix

Python 3 library to automate and build finite element analysis (FEA) models in Calculix. Meshing uses Calculix or GMSH.
http://justinablack.com/pycalculix/
Apache License 2.0
170 stars 56 forks source link

Have any new developments recently ? #14

Closed 461353349 closed 7 years ago

461353349 commented 7 years ago

@spacether When I loading force or constraint on the model, I have to know the number for part/face/line/point. Have you some ideas about how to label part/face/line/point more friendly to user? PythonOcc is an open project, Have you thought about involving it ?

spacether commented 7 years ago

Hello. There haven't been any new developments recently. The library doesn't support friendlier naming of the points or lines. But if you construct the lines in your .py file, then they are returned as you build them. So you can make variables with whatever names that you want:

[L1,p1,p2] = part.draw_line_to(x, y) left_line = part.draw_line_to(x, y)

You can then use that line variable when applying loads. At this point I don't plan on integrating PythonOcc. Please also read the component documentation here: https://github.com/spacether/pycalculix/blob/master/pycalculix/components.py You can use it to make a component of nodes or faces on which to apply loads.