Remarks on Solver-Related Model Characteristics
The Importance of a Correct Jacobian Matrix
The solvers break down each problem — linear or nonlinear — into one or several linear systems of equations by approximating the given problem with a linearized problem. The coefficient matrix of the discretized linearized problem is called the Jacobian matrix (or stiffness matrix). In most cases COMSOL Multiphysics computes a correct Jacobian matrix.
The consequences of an incorrect Jacobian matrix depend on the solver in use:
An incorrect Jacobian matrix can occur in the following cases:
If you use the nojac operator.
Working with Complex-Valued Problems
When a problem contains complex numbers, be sure to consider the following two aspects:
If you expect to receive complex outputs from real inputs in elementary functions such as sqrt, log, and asin, or when evaluating a nonintegral power of a negative number, add an Advanced subnode. Then in the Settings window under General, select the Allow complex-valued output from functions with real input check box. By default, the COMSOL software gives an error message if a real input to a function generates a complex output.