cablenets is a tiny python module for solving structural cable nets analysis problems using Convex Optimization formulations, in particular CVXOPT Python library.
The solver implements an optimization formulation presented in this paper, published in the International Journal of Solids and Structures.
You can install cablenets
and its dependencies using pip
with this command:
pip install git+https://github.com/jorgepz/cablenets.git#egg=cablenets
Include the import cablenets
in your code. By now the interface consists in two functions: solve
and plot
. You are encouraged to explore the examples folder to see how to use cablenets
.
The function solve
receives numpy arrays with: the reference nodes coordinates, a connectivity matrix (see examples), the young moduli, the cross-section areas, a matrix with the imposed-deformed positions of certain nodes and a matrix with the applied forces.
nodes_def, normal_forces = solve( nodes, connec, youngs, areas, disp_mat, fext_mat )
The output consists in: the matrix of the deformed nodes and a vector with the normal forces of the elements.
The function plot
receives the nodes, the connectivity, the deformed positions of the nodes and the normal forces.
plot( nodes, connec, nodes_def, normal_forces )
Email: jorgepz AT fing edu uy
Contributions are welcome. Open an issue and let's discuss there. The JOSS authorship guidelines are considered as a starting point.