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