poISubcase GetNumberOfDerivedSimulations

Returns the number of derived simulations available in the derived subcase.

Syntax

subcase_handle GetNumberOfDerivedSimulations

Application

HyperView Tcl Query

Description

This command returns number of derived simulations available in the derived subcase. This command is useful for derived load cases of the type "superposition" and "envelope".

Strictly speaking the "linear superposition" subcase, or the "envelope" subcase, will have only one simulation. However that single simulation is built using one/many simulations from various subcases. This command returns the number of simulations that were used to build this "linear superposition" or "envelope" subcase.

Example

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 3 0;
subcase_handle AppendSimulation 4 1;

set ndsim [subcase_handle GetNumberOfDerivedSimulations];
hwi CloseStack

Errors

None.