GetICs
get the initial conditions of the active MapleSim subsystem
Calling Sequence
Parameters
Returns
Options
Description
Notes
Examples
A := MapleSim:-LinkModel();
A:-GetICs(options)
options
-
(optional) equation(s) of the form name = value
set : set of the active subsystem's initial conditions
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 {}.
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.
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
Link to a MapleSim model (located in .msim file):
A≔MapleSim:-LinkModel⁡filename=cat⁡kernelopts⁡toolboxdir=MapleSim,/data/examples/RLCcircuit.msim:
Set the active subsystem to an RLC circuit subsystem:
A:-SetSubsystemName⁡RLC
Get the initial conditions of the active subsystem:
A:-GetICs⁡
C1_i⁡t=0.,C1_n_i⁡t=−0.,C1_n_v⁡t=0,C1_p_i⁡t=0.,C1_p_v⁡t=−0.,C1_v⁡t=−0.,G2_p_i⁡t=0.,G2_p_v⁡t=0,I1_i⁡t=0.,I1_n_i⁡t=−0.,I1_n_v⁡t=0,I1_p_i⁡t=0.,I1_p_v⁡t=−0.,I1_v⁡t=−0.,NP1_i⁡t=0,NP1_v⁡t=0,NP2_i⁡t=0,NP2_v⁡t=0,PP1_i⁡t=0,PP1_v⁡t=−0.,PP2_i⁡t=0,PP2_v⁡t=−0.,PP3_i⁡t=0,PP3_v⁡t=−0.,PS1_p_i⁡t=0,PS1_p_v⁡t=−0.,PS1_y⁡t=−0.,R1_i⁡t=−0.,R1_n_i⁡t=0.,R1_n_v⁡t=0,R1_p_i⁡t=−0.,R1_p_v⁡t=−0.,R1_v⁡t=−0.,SC1_i⁡t=0,SC1_n_i⁡t=0,SC1_n_v⁡t=−0.,SC1_p_i⁡t=0,SC1_p_v⁡t=0,SC1_v⁡t=0.,Vout⁡t=−0.,InputSignal⁡t=0,OutputSignal⁡t=−0.,R1_LossPower⁡t=0.,R1_R_actual⁡t=1,R1_T_heatPort⁡t=600320,D⁡C1_n_v⁡t=0.,D⁡C1_p_v⁡t=−0.,D⁡C1_v⁡t=0.,D⁡G2_p_v⁡t=0.,D⁡I1_i⁡t=0.,D⁡I1_n_i⁡t=−0.,D⁡I1_n_v⁡t=0.,D⁡I1_p_i⁡t=0.,D⁡I1_p_v⁡t=−0.,D⁡I1_v⁡t=−0.,D⁡NP1_i⁡t=0.,D⁡NP1_v⁡t=0.,D⁡NP2_i⁡t=0.,D⁡NP2_v⁡t=0.,D⁡PP1_i⁡t=0.,D⁡PP1_v⁡t=−0.,D⁡PP2_i⁡t=0.,D⁡PP2_v⁡t=−0.,D⁡PP3_i⁡t=0.,D⁡PP3_v⁡t=−0.,D⁡PS1_p_i⁡t=0.,D⁡PS1_p_v⁡t=−0.,D⁡PS1_y⁡t=−0.,D⁡R1_i⁡t=−0.,D⁡R1_n_i⁡t=0.,D⁡R1_n_v⁡t=0.,D⁡R1_p_i⁡t=−0.,D⁡R1_p_v⁡t=−0.,D⁡R1_v⁡t=−0.,D⁡SC1_i⁡t=6.28318530717958648,D⁡SC1_n_i⁡t=−6.28318530717958648,D⁡SC1_n_v⁡t=−0.,D⁡SC1_p_i⁡t=6.28318530717958648,D⁡SC1_p_v⁡t=0.,D⁡SC1_v⁡t=0.,D⁡Vout⁡t=−0.,D⁡InputSignal⁡t=6.28318530717958648,D⁡OutputSignal⁡t=−0.,D⁡R1_LossPower⁡t=0.,D⁡R1_R_actual⁡t=0.,D⁡R1_T_heatPort⁡t=0.,D2⁡C1_n_v⁡t=0.,D2⁡G2_p_v⁡t=0.,D2⁡I1_n_v⁡t=0.,D2⁡NP1_i⁡t=0.,D2⁡NP1_v⁡t=0.,D2⁡NP2_i⁡t=0.,D2⁡NP2_v⁡t=0.,D2⁡PP1_i⁡t=0.,D2⁡PP2_i⁡t=0.,D2⁡PP3_i⁡t=0.,D2⁡PS1_p_i⁡t=0.,D2⁡R1_n_v⁡t=0.,D2⁡SC1_i⁡t=0.,D2⁡SC1_n_i⁡t=0.,D2⁡SC1_p_i⁡t=0.,D2⁡SC1_p_v⁡t=0.,D2⁡InputSignal⁡t=0.,D2⁡R1_LossPower⁡t=0.,D2⁡R1_R_actual⁡t=0.,D2⁡R1_T_heatPort⁡t=0.
See Also
MapleSim
MapleSim[LinkModel]
Download Help Document