splinepy.helpme.integrate.FieldIntegrator.assemble_matrix_and_vector#
- FieldIntegrator.assemble_matrix_and_vector(function, current_sol=None, matrixout=None, vectorout=None)[source]#
Assemble the system matrix and rhs vector for a given function. If system matrix is already assembled, it will add values on top of existing matrix. The same goes for the rhs vector
- Parameters:
function (callable) – Function which defines how to assemble an element matrix and vector
current_sol (np.ndarray) – Current solution vector. Needed for nonlinear forms
matrixout (np.ndarray / scipy.sparse matrix) – Assembled matrix will be stored there. Default is global system matrix
vectorout (np.ndarray) – Assembled rhs vector will be stored there. Default is global rhs