Data Display
A Data Display object is used to display the numerical values of scalars and arrays. If there is an associated unit, it will be displayed as part of the Data Display object.
The figure below shows an example with data display objects for the Derived Values quantities Point Evaluation and Volume Maximum. A formatted unit label is automatically displayed as part of the object if applicable.
In many cases, the Editor Tools window can be used to insert a Data Display object accompanied by a Text Label. Right-click a node in the editor tree and select the Output option, if available.
Source
To add a Data Display object without using the Editor Tools window, open the Settings window for a data display object. In the Source section, select a node from the model tree. Then click the Use as Source button shown below. Valid parameters, variables, and properties include:
The output from a Derived Values node, such as a Global Evaluation, Point Evaluation, or a Volume Maximum node
Variables declared under the Declarations > Scalar, 1D Array, and 2D Array nodes
One of the following Information node variables, which are under the root node and under each Study node:
-
Expected Computation Time
Under the root node, this value is specified in the Expected field in the Settings window of the root node.
-
Last Computation Time
Under the root node: Displays the last measured computation time for the most recently computed study.
Under a study node: Displays the last measured computation time specific to that study.
-
Computed in Version
Under the root node: Indicates the version of COMSOL Multiphysics used for the last computed study (for example, COMSOL 6.3.0.271).
Under a study node: Indicates the version of COMSOL Multiphysics used for the last computation of that particular study.
When you start an application for the first time, the last measured times are reset, displaying Not available yet.
Using the Form Wizard for Generating Data Display Objects
In the Form Wizard, nodes under Derived Values, as well as variables under Declarations and constants made available through Data Access, will automatically generate Data Display form objects to present their values and Text Label form objects to display their descriptions.
The settings for these form objects can subsequently be edited. To insert additional data display objects, use the Insert Object menu in the ribbon and select Data Display.
Number Format
The Number Format section lets you set the Precision, Notation, Exponent, and Unit.
Rendering Method
By default, the unit of a data display object is displayed using Unicode rendering. As an alternative, you can use LaTeX rendering by selecting the LaTeX markup checkbox. Then, the data display does not rely on the selected font.
A formatted display of arrays and matrices is only supported with LaTeX rendering. The figure below shows a 2D double array (see Array 2D) displayed using a Data Display object with LaTeX markup selected.
You can add a Tooltip with text that is shown when hovering over the data display object.