Errors, Warnings, and Information
COMSOL Multiphysics reports problems of two types: errors and warnings. There can also be information displayed for helping you with your modeling.
Errors
Errors prevent the program from completing a task. For errors, a COMSOL Error window appears with a brief error description and, in some cases, an Open Log File button for additional information. Under the node where the error occurred there is, in most cases, also an Error subnode () that contains an error message that generally provides additional information. Also, for many error types, the icon for the node where the error occurred appears with a red cross in the lower-right corner. For some errors there is also a link to more diagnostic information on the COMSOL website.
License Errors
It is possible to open and postprocess models that include functionality that you have blocked or that your license does not include. Nodes with functionality that requires a license for a product that is blocked or not available get a License Error subnode (), where you find information about the missing but required product license. Unless you disable or remove such nodes, it is not possible to re-solve such models.
It is not possible to open models that require a license for the Material Library, ECAD Import Module, CAD Import Module, LiveLink™ for MATLAB®, or any of the CAD LiveLink™ products if your license does not include this required product.
Warnings
Warnings are issued about problems that do not prevent the completion of a task but indicate that the result may not be expected or desired. For example, a warning may indicate that a setting is likely a mistake, or that current settings might affect the accuracy or other aspects of the model. Warnings typically appear in the Log window (). The warning message also appears as a Warning subnode () under the node from which the warning was sent.
Indication of Unexpected, Unknown, or Inconsistent Units
If the expression entered for some setting has invalid or inconsistent units, or a different unit than expected, the expression appears underlined with an orange squiggly (wavy) line. The line appears also when a setting expects a unit, but the unit of the expression cannot be determined for example because it refers to a variable that has not yet been defined. Unit warnings are accompanied by an explaining tooltip:
Inconsistent Units
An inconsistent unit can occur by summing terms with units that represent different physical quantities, such as 273[K]+3[ft]. A tooltip displays a message at the corresponding field.
Unexpected Unit of Input
In the case of a valid but unexpected unit, this message contains the deduced and expected units in the current unit system.
Unknown Unit
This message appears when a unit bracket contains invalid units.
Unknown Variable
This message appears when the expression contains a variable name that has not yet been defined.
Evaluating Unexpected or Inconsistent Units
If an unexpected or inconsistent unit appears in a text field for a physical property, the COMSOL Multiphysics software still applies the unit factor. That is, the unit bracket always behaves as a multiplication with the factor expressing the specified unit in the corresponding base system units. For example, in a text field for density using SI units, the software interprets 2930[kg] as 2930 kg/m3 and 2930[g] as 2.930 kg/m3.
Unknown variable warnings, if they remain at the time of computing a model, usually leads to a corresponding error from the solver configuration.
Indication of Invalid Expressions
An expression that appears underlined with a red squiggly (wavy) line may contain a syntax error, which can be due to, for example, missing or misplaced parentheses. It may also be an indication that the expression in an input field that requires a numerical value cannot be evaluated, for example due to unknown or misspelled variable names, function names, or units. Some numerical input fields also put additional constraints on the evaluated input value.
Errors and Warnings in a Geometry Sequence
If an error occurs when you build a node, the build stops. The node with the problem then gets an Error subnode () that contains the error message. Also, the node’s icon displays with a red cross in the lower-left corner.
After a successful build of a node, a warning message can sometimes display as a Warning subnode (). If a warning message exists, the node’s icon displays with an orange triangle in the lower-right corner.
Error, Warning, and Information Nodes in Meshing Sequences
Information () and Warning () nodes can occur even though meshing completed successfully. They serve as an indication that something can turn into a problem when running the solver or to get accurate result. Error nodes () always indicate that an operation has failed, either for individual geometric entities or that the build failed completely. For more information, see Information, Warning, and Error Nodes for Meshing Operations.
The Error, Warning, and Information nodes and their subnodes often contain selections that highlight where the problem is located in the geometry.
Error, Warning, and Information Nodes in Solver Sequences
Issues encountered when running a solver or generating a mesh are treated in two different ways depending on if it is possible to avoid the problem and continue the operation or if the operation must be stopped. In the first case, a Warning node () appears under the node in the model tree that caused the problem. In the second case, an Error node () appears under the node in the model tree that caused the error.
A Warning node () can also appear under a Compile Equations node if a potential problem is detected when generating equations from the physics interfaces or setting up the default solver sequence.
An Information node () can appear if a study does not contain a compatible study step, for example.
Warnings during Postprocessing
For things like empty plots, Warnings nodes () can appear in the Results branch during postprocessing. However, you do not get any warnings in these cases:
Plotting with the Dataset list set to None or a dataset that cannot be evaluated (for example, because the model does not contain any solution).