ritchie46 / anaStruct

2D structural analysis in Python
GNU General Public License v3.0
359 stars 104 forks source link

Refactoring using NumPy v1.13.0's new block function? #12

Closed damontallen closed 7 years ago

damontallen commented 7 years ago

NumPy's latest release has implemented a new function for assembling arrays. It reminded me of how stiffness matrixes are built and (though I have not reviewed your code) thought you might find it useful in a refactoring pass.

ritchie46 commented 7 years ago

Wow! The code example of the block function looks really neat. It would sure come in handy for assembling matrices indeed.

I do plan to add some geometrical non linear options, but I believe I can leave the assembling of the stiffness matrix as is for that..