The Results node contains nodes for
Datasets,
Derived Values,
Tables,
Plot Groups,
Export, and
Reports. As soon as a solution is obtained, a set of
Plot Group nodes are automatically created. In the example of
Heat Transfer in Solids, when setting up such an analysis in the Model Builder, two
Plot Group nodes are added automatically. The first one is a
Surface plot of the
Temperature and the second one is a
Contour plot showing the isothermal contours. Below you will see how to set up the corresponding plots manually.
Create a Surface plot for
pg1 with settings for the color table used, the intra-element interpolation scheme, and the dataset referring to the parent of the
Surface plot node, which is the
pg1 node:
Create a Table node to hold the numerical result and write the output from
max1 to the
Table:
Use Record Code or any of the other tools for automatic generation of code to learn more about the syntax and methods for
Results.
The code below changes the visualization of a plot group pg1 by setting the property
looplevel, which controls the solution parameter, to the string variable
svar.
The property looplevel has a central role in accessing parameterized solutions. Its argument is a 1D string array with one index per "loop level" in a study. The different loop levels correspond to the different nested parameters in a parametric sweep with multiple parameters.
By using the loadFile method you can import data into a table and then display it using a results table form object or a table surface plot. The following example demonstrates loading data from an Excel file into a table and visualizing the contents using a table surface plot. The file in this example is assumed to be imported, in an application, using a file import form object with a file declaration
file1 as the
File Destination.