Equation View
Equation View () is a subnode available for all physics feature nodes. To display these subnodes, click the Show button () and select Equation View from the Model Builder.
The Settings window for Equation View contains detailed information about the implementation of each physics feature: variables, shape functions, weak-form equation expressions, and constraints.
To update the values in the Settings window for Equation View to reflect the latest changes in a physics feature, click the Refresh equations button () in the Settings window’s toolbar.
You can edit the expressions or values of variables, weak-form expressions, and constraints in the corresponding tables under Variables, Weak Expressions, and Constraint, respectively. This makes it possible to introduce custom changes to the equations and variable definitions. If the expression that defines a variable, for example, does not fit inside of the text field, a tooltip displays the entire expression. Press Ctrl+Space (or Ctrl+/) or use the Insert Expression button () below the tables to choose from a number of applicable variables, parameters, functions, operators, and constants that you can insert into the expression at the position of the cursor. In the table of variables under Variables, you can click any of the column headers to sort the table contents alphabetically based on the contents of that column (in ascending order; click again for descending order; click yet again to restore the original order).
For a changed definition of a variable or a change to a weak-form expression or constraint, a warning icon () appears in the leftmost column, and a small padlock is added to the lower-right corner of the icon for the physics node where you have made modifications in its equation view. To restore only the change in the selected variable, weak-form expression, or constraint, click the Reset selected button () under the table in the Variables, Weak Expression, or Constraints section. To reset all changes in the equation view, click the Reset all button () in the Settings window’s toolbar. If no changes remain, the padlock disappears from the corresponding physics node. An orange color for the expression that defines the variable is a warning that the unit of the expression does not match the expected unit for the variable that it defines.
Study
From the Show equation view assuming list, choose No study or any of the available studies. The equation view of the parent feature is then recomputed with the assumption that the selected study step was solved. This operation also updates all children to the parent feature, so the lists in their equation views are also updated. When solving a study (or study step), the list also changes to represent the last computed study step. The default is No study and represents a default behavior, which computes the equations without any study type information. The equation form used is then undefined and depends on the physics that the parent feature belongs to. The equation view reverts to No study if you change some setting in the parent feature to indicate that the equation view no longer represent a specific study step.
Variables
This section has a table with the variables that the physics node defines. The table includes these columns:
Name: the name of the variable.
Expression: the expression, using COMSOL syntax, that defines the variable.
Unit: the unit for the variable (in the active unit system). If the unit of the expression does not match the unit of the variable, the expression is displayed in orange.
Description: a description of the variable.
Selection: the geometric entities (domains, boundaries, edges, or points) where the variable is defined (Domain 1, for example).
Details: this column contains some details about the variable’s behavior. See About the Details Column below.
Shape Functions
This section has a table with the dependent variables that the physics node defines and their shape functions. This is primarily applicable to equation model nodes; for most physics nodes such as boundary conditions, the table is empty. The table has these columns:
Name: the name of the variable.
Shape function: the type of shape function (element) for the variable (for example, Lagrange for Lagrange elements, which are the most common elements).
Unit: the unit for the variable (in the active unit system).
Description: a description of the variable.
Shape frame: the frame type (typically either a spatial or a material frame) for the shape function.
Selection: the geometric entities (domains, boundaries, edges, or points) where the shape function is defined (Domain 1, for example).
Details: This column contains some details about the shape function’s behavior. See About the Details Column below.
Weak Expressions
This section has a table with the weak-formulation equation contributions that the physics node generates. The table consist of the following columns:
Weak expression, the equation expressed in a weak formulation.
Integration frame, the frame type (typically either a spatial or a material frame) used when integrating the expression.
Selection: the geometric entities (domains, boundaries, edges, or points) where the weak expression is defined (Domain 1, for example).
Each equation contribution appears on its own row under Weak expression, but the order is not significant.
Constraints
This section has a table with the constraints that the physics node generates. This is typically the case for boundary conditions of constraint types, such as prescribed displacements, temperature, or velocities. Many other physics nodes do not generate any constraints, and the table is then empty. The table consists of the following columns:
Constraint: the expression for the constraint.
Constraint force: the expression that defines the associated constraint force, which is typically the test function of the constraint.
Shape function: the type of shape function (element) for the constraint (for example, Lagrange for Lagrange elements).
Selection: the geometric entities (domains, boundaries, edges, or points) where the constraint is defined (Boundaries 1–5, for example).
About the Details Column
The Details column shows some information about the behavior of variables and shape functions. For variables:
+ operation indicates that overlapping contributions are added.
For some variables, Meta indicates that the variable definitions are not fully updated until you solve the model. It is therefore not possible to edit the expressions for such variables.
In rare cases, other operations (* operation, for example) can occur.
For shape functions:
Slit means that the shape function creates a slit for the degree of freedom.