PyNite icon indicating copy to clipboard operation
PyNite copied to clipboard

Speed Improvement

Open angelmusonda opened this issue 3 months ago • 1 comments

During analysis, if the sparse option is on, PyNite performs partitioning of the stiffness matrix on scipy's lil_matrix(). This tends to be slow for large models. Noticeable improvement can be made if the partitioning is done on a csr_matrix or csc_matrix. According to scipy's documentation, the only advantage of lil_matrix over csr_matrix is faster construction and efficiency in the modification of the sparsity structure. Since the matrices are not undergoing further changes after partitioning, it is more efficient to convert directly from coo_matrix to csr_matrix before partitioning.

angelmusonda avatar Mar 20 '24 10:03 angelmusonda