The following variables represent time (t), frequency (freq), eigenvalue (lambda), phase angle (phase), and the number of degrees of freedom (numberofdofs).
• For time-dependent problems use the time variable (t) with the unit seconds (s).
•
• The value of t for results evaluation corresponds to the selection made in the Time list in the Data sections for the visualization and data evaluation nodes in the Results branch in the Model Builder. See the Results Analysis and Plots section.The frequency variable (freq) is the global frequency for models in the frequency domain (time-harmonic models and frequency response analysis, for example).
• When specifying an eigenvalue problem, use the eigenvalue variable (lambda) like any other variable.
• To choose between different eigenvalues, select one from the Eigenvalue list in the Data sections for the visualization and data evaluation nodes in the Results section of the Model Builder. The value of the eigenvalue variable corresponds to the selection made in the Eigenvalue list. See the Results Analysis and Plots section.The phase angle variable (phase) is the phase angle (in radians), primarily for postprocessing of models in the frequency domain, and you can specify its value in the Settings window for a data set, using the Solution at angle (phase) field. The default value is 0.
By default, the COMSOL Multiphysics software plots the real part of complex-valued data. You can use the imag function to plot the imaginary part and the abs function to plot the absolute value (modulus) of complex-valued data.The variable numberofdofs returns the total number of degrees of freedom (DOFs), which is the number of DOFs solved for plus any internal DOFs that the solver might add. The number of DOFs solved for plus the number of internal DOFs are reported in the Messages window when you compute the solution. COMSOL Multiphysics sometimes uses internal DOFs for storing information during solution that would be expensive or impossible to recompute afterward. Internal DOFs have no equations and therefore do not make the system matrices larger.
These variables are built-in variables with reserved variable names. If you use a parameter called t, for example, COMSOL Multiphysics uses it for a stationary study, but the time-dependent solver overrides it with the value of t from the solver. Any variable or parameter using one of these names can be overridden during solution or postprocessing. Avoid using these reserved variable names for user-defined parameters and variables, unless you are aware of how they are handled in COMSOL Multiphysics.