SDT-nlsim         Contents     Functions         Previous Next     PDF Index

hbm_post

Purpose

Commands for result post-processing. This functions provides post-treatment commands and handles the HBM result object.

Description

ZTraj[,Get,GetBnl,Set,SetDef]

Trajectory generation as harmonic result structures Zcurve from synthesis of given shapes.

AddPost

Handles observations declarations for post-treatments from the HBM curve output to the HBM results object.
hbm_post('AddPost',job,data); is used to handle outputs stored in the application. job is the name on which the observation will be applied (entry in PA.Stack). data provides the observation, it can be of the following types

For all cases, a Sens data structure is generated and a SensDof entry is added to the model PA.Stack{job}2. The GUI then adds the observation to the available observation list.

Manual handling outside the GUI requires the use of a results structure RE as a third argument. The same operations are performed, the observation list stored in RE.PostSensList being updated RE=hbm_post('AddPost',lab,data,RE);.

Init

Initializes the HBM result object.
XF=hbm_post('Init',UI,ci);.

UI is a variable pointing to the HBM solver output data. It can be left empty, in such case it is initialized by UI=hbmui('PARAMUI'), or it is a results structure with mandatory fields .Res (see hbm_post ZTraj-Res) and .PostSensList (see hbm_postAddPost). ci is a iiplot object that will host the results display. It can be left empty not to display results.

If results are stored in the application, the HBM result object associated to the current application state can be recovered using XF=hbm_post('init').

Manual initialization with no display can be performed from an assembled harmonic model mo1 and a HBM curve output structure Z using

RE=struct('Res',{{Z.name,{Z,mo1}}});
RE=hbm_post('addPost',Z.name,mo1.DOF,RE);
XF=hbm_post('init',RE,[]);

HBM results object



The HBM results object provides methods to synthesize transfers or transient trajectories based on a HBM result, it is based on the curvemodel object that is a SDT curve wrapper. The result object is initialized using hbm_post Init.

XF.[GetData,X,Y,Xlab]

Provides access to the resolved content of the HBM result object XF in its current state.
X=XF.X;
Warning: depending on the current object state, recovering the full output can be a very intensive task and may generate a very large volume of data !

The .GetData method returns the full curve structure synthesized for the current object state. The other methods only return the field corresponding to their name.

XF.set

HBM results object options handling.
XF.set('nTSamp',100);

For an app linked object, the options are available in the GUI Post tab. This programmatic way can be used in scripts interacting with the GUI, or with results objects not linked with the GUI.

XF.Stack

Provides access to HBM results context data. The object mode can be programmatically altered through this way.
XF.Stack'type'=val;

Accepted types for val are


©1991-2025 by SDTools
Previous Up Next