poISubcase GetDerivedSimulationLabel

Returns the derived label of the simulation of a derived subcase.

Syntax

subcase_handle GetDerivedSimulationLabel simidx

Application

HyperView Tcl Query

Description

This command returns the derived label of the simulation corresponding to the simulation index specified. The derived simulation label usually will be a combination of the original subcase label and the original simulation label which is used to create this simulation of the derived subcase.
Note: This command is different from the GetSimulationLabel command.

Inputs

simidx
The simulation index within the derived subcase.

Example

For example if we have a subcase id 1 (whose label is SC1) and it has one simulation (whose label is T=0.0), and if we include this simulation in a derived subcase whose id is 2 (whose label is SC2).
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
set scid [result_handle AddSubcase];

result_handle GetSubcaseHandle subcase_handle $scid
subcase_handle SetDerivedType "superposition"
subcase_handle AppendSimulation 1 0;
set lab [subcase_handle GetDerivedSimulationLabel 0];

# The variable lab will have a value something like "SC1   T=0.0"

hwi CloseStack

Errors

Returns nothing if an error occurred.