GetICs - MapleSim Help

Online Help

All Products    Maple    MapleSim


GetICs

get the initial conditions of the active MapleSim subsystem

 

Calling Sequence

Parameters

Returns

Options

Description

Notes

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetICs(options)

Parameters

options

-

(optional) equation(s) of the form name = value

Returns

• 

set : set of the active subsystem's initial conditions

Options

• 

toplevel : true or false

  

Specifies whether the top-level initial conditions should be returned regardless of the active subsystem setting.  Default is false.

• 

params : set or list

  

Specifies which, if any, new parameter values to use for the calculation of the initial conditions. Default is {}.

Description

• 

A:-GetICs returns a set A's active subsystem's initial conditions.

• 

The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.

Notes

• 

The active subsystem's initial conditions will always be a subset of the entire system's initial conditions (same values) with the addition of initial conditions for the subsystem's input ports

Examples

Link to a MapleSim model (located in .msim file):

AMapleSim:-LinkModelfilename=catkerneloptstoolboxdir=MapleSim,/data/examples/RLCcircuit.msim:

Set the active subsystem to an RLC circuit subsystem:

A:-SetSubsystemNameRLC

Get the initial conditions of the active subsystem:

A:-GetICs

C1_it=0.,C1_n_it=−0.,C1_n_vt=0,C1_p_it=0.,C1_p_vt=−0.,C1_vt=−0.,G2_p_it=0.,G2_p_vt=0,I1_it=0.,I1_n_it=−0.,I1_n_vt=0,I1_p_it=0.,I1_p_vt=−0.,I1_vt=−0.,NP1_it=0,NP1_vt=0,NP2_it=0,NP2_vt=0,PP1_it=0,PP1_vt=−0.,PP2_it=0,PP2_vt=−0.,PP3_it=0,PP3_vt=−0.,PS1_p_it=0,PS1_p_vt=−0.,PS1_yt=−0.,R1_it=−0.,R1_n_it=0.,R1_n_vt=0,R1_p_it=−0.,R1_p_vt=−0.,R1_vt=−0.,SC1_it=0,SC1_n_it=0,SC1_n_vt=−0.,SC1_p_it=0,SC1_p_vt=0,SC1_vt=0.,InputSignalt=0,OutputSignalt=−0.,R1_LossPowert=0.,R1_R_actualt=1,R1_T_heatPortt=600320,DC1_n_vt=0.,DC1_p_vt=−0.,DC1_vt=0.,DG2_p_vt=0.,DI1_it=0.,DI1_n_it=−0.,DI1_n_vt=0.,DI1_p_it=0.,DI1_p_vt=−0.,DI1_vt=−0.,DNP1_it=0.,DNP1_vt=0.,DNP2_it=0.,DNP2_vt=0.,DPP1_it=0.,DPP1_vt=−0.,DPP2_it=0.,DPP2_vt=−0.,DPP3_it=0.,DPP3_vt=−0.,DPS1_p_it=0.,DPS1_p_vt=−0.,DPS1_yt=−0.,DR1_it=−0.,DR1_n_it=0.,DR1_n_vt=0.,DR1_p_it=−0.,DR1_p_vt=−0.,DR1_vt=−0.,DSC1_it=6.28318530717958648,DSC1_n_it=−6.28318530717958648,DSC1_n_vt=−0.,DSC1_p_it=6.28318530717958648,DSC1_p_vt=0.,DSC1_vt=0.,DInputSignalt=6.28318530717958648,DOutputSignalt=−0.,DR1_LossPowert=0.,DR1_R_actualt=0.,DR1_T_heatPortt=0.,D2C1_n_vt=0.,D2G2_p_vt=0.,D2I1_n_vt=0.,D2NP1_it=0.,D2NP1_vt=0.,D2NP2_it=0.,D2NP2_vt=0.,D2PP1_it=0.,D2PP2_it=0.,D2PP3_it=0.,D2PS1_p_it=0.,D2R1_n_vt=0.,D2SC1_it=0.,D2SC1_n_it=0.,D2SC1_p_it=0.,D2SC1_p_vt=0.,D2InputSignalt=0.,D2R1_R_actualt=0.,D2R1_T_heatPortt=0.

(1)

See Also

MapleSim

MapleSim[LinkModel]