pystran.assemble module#

Define utility for assembling.

pystran.assemble.assemble(kg, dof, k)[source]#

Assemble local matrix into a global matrix.

Assemble local (stiffness or mass) matrix k into global (stiffness or mass) matrix kg, using the array of degrees of freedom, dof, for both the rows and columns. In other words, k must be symmetric.

Parameters:
  • kg – Global matrix.

  • dof – Array of degrees of freedom.

  • k – Local (for instance, member) matrix.

Return type:

kg