where U is an
N-by-1 double array, where
N is the number of degrees of freedom of the COMSOL Multiphysics model.
where <soltag> is the tag of the solver node.
where <solnum> a positive integer vector that corresponds to the solution number to use to extract the solution vector. For time-dependent and continuation analyses, the default value for the
solnum property is the last solution number. For an eigenvalue analysis, it is the first solution number.
where type is one of the strings '
sol', '
reacf', '
adj', or '
sens' used to extract the solution vector, reaction forces, functional sensitivity, or forward sensitivity, respectively.
mphgetu returns the default the solution vector. Get the time derivative of the solution vector
Udot by adding a second output variable:
In case the property solnum is set as a 1-by-
M array and the solver node only uses one mesh to create the solution, the default output is an
N-by-
M array, where
N is the number of degrees of freedom of the model. Otherwise, the output
U is a cell array that contains each solution vector. If you prefer to have the output in a cell array format, set the property
matrix to
off: