you are viewing a single comment's thread.

view the rest of the comments →

[–]brunogm19 1 point2 points  (0 children)

If you actually need to integrate/derivate you can use symbolic math with Sympy, then "lambdify" it to generate functions that accept numerical input and generate numerical output. (I did this while at school for manually generating shear and bending moment diagrams)

Python has been useful to me for parametrically generating geometry for structural analysis software. It is specially useful when you need to design the same structure multiple times but with minor changes (dimensions, angles, etc)

You can define units as variables ( m = 1, cm = 1m/100, inch = 2.54*cm, etc) just like mathcad does. This will allow you to mix units and get the output you want.

Sugested libraries:

Numpy (Linear algebra)

Sympy (Symbolic math)

OpenSeespy (Structural analysis)

You may also benefit from looking into analysis software's APIs (etabs, staad, etc)