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.
• If you use nonanalytic functions in a complex-valued problem, such as real, imag, conj, abs, or arg.
• If you use the nojac operator.
• For time-dependent problems, the time-stepping algorithm must know if a problem is complex valued. If your model uses a complex-valued initial solution, the COMSOL software detects this and classifies the problem accordingly. If the problem is complex-valued because of a complex-valued PDE coefficient or other material property, go to the Time-Dependent Solver node’s Settings window, and in the Advanced section select the Allow complex numbers check box.
• 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.