Input Matrix
Use the Input Matrix node () to create the raw data of an assembled matrix or vector from Java. Right-click the Eigenvalue Solver, Stationary Solver, or Time-Dependent Solver nodes and select Input Matrix. Select the appropriate checkboxes for the matrices and vectors you want to input and save the model as a file for Java. The saved Java file now contains code for inputting the selected matrices and vectors.
Input
In this section you can choose to input matrices and vectors that are passed to the linear solvers by enabling one or several of the following checkboxes: Load vector, Stiffness matrix, Damping matrix, Mass matrix, Constraint vector, Constraint Jacobian, and Constraint force Jacobian.
Only if the features preceding the solver node in the sequence are disabled will the Input Matrix feature be used. Otherwise, the standard contribution to the problem formulation has precedence.
If you are inserting matrices extracted from the Assemble feature using the Input Matrix feature, the size of the inserted matrices must match the number of degrees of freedom (including internal degrees of freedom), if you want to use the computed solution for results processing.
InputMatrix in the COMSOL Multiphysics Programming Reference Manual
Accessing System Matrices and Vectors in the Application Programming Guide