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:
If you want to define a variable such as rf and
surf1, you don’t need to know its type in advance. Simply write the code you want to assign to a variable, for example:
Then press Ctrl+1, which will replace the line with something like:
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. Again, use
Record Code or
Record Method for a parametric model to learn more about this syntax.
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 example below 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.
Similar to before, you can use Ctrl+1 to automatically generate the variable
cam of the type
ViewFeature.