SDT-nlsim
Contents  
Functions  
 ![]() ![]() |
Purpose
Commands for result post-processing. This functions provides post-treatment commands and handles the HBM result object.
Description
Trajectory generation as harmonic result structures Zcurve from synthesis of given shapes.
model is a standard SDT-NL model, def is a def curve expressed on the model DOF, typically a modeshape. The output is a HBM output Z. The model is HBM-assembled and data are initialized based on model.Stack{info,HBMOpt} or using the default options output by hbm_solve Opt. If the def curve is real, the output will be initialized with the shape on the c1 harmonic, the pulsation is initialized by def.data(:,1). If complex, the c1 harmonic is set to the real part and s1 to the opposite of the imaginary part, the pulsation is initialized by def.data(:,1).
The output of hbm_post ZTraj cannot directly be exploited by other ZTraj commands as an observation (see hbm_solve AddPost) must be declared prior to generating the the HBM results object allowing response synthesis. The following command options are supported
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);.
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.
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.
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.
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