GetICs - MapleSim Help

GetICs

get the initial conditions of the active MapleSim subsystem

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):

 > $A≔\mathrm{MapleSim}:-\mathrm{LinkModel}\left('\mathrm{filename}'=\mathrm{cat}\left(\mathrm{kernelopts}\left('\mathrm{toolboxdir}'=\mathrm{MapleSim}\right),"/data/examples/RLCcircuit.msim"\right)\right):$

Set the active subsystem to an RLC circuit subsystem:

 > $A:-\mathrm{SetSubsystemName}\left("RLC"\right)$

Get the initial conditions of the active subsystem:

 > $A:-\mathrm{GetICs}\left(\right)$
 $\left\{{\mathrm{C1_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{C1_n_i}}{}\left({t}\right){=}{-0.}{,}{\mathrm{C1_n_v}}{}\left({t}\right){=}{0}{,}{\mathrm{C1_p_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{C1_p_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{C1_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{G2_p_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{G2_p_v}}{}\left({t}\right){=}{0}{,}{\mathrm{I1_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{I1_n_i}}{}\left({t}\right){=}{-0.}{,}{\mathrm{I1_n_v}}{}\left({t}\right){=}{0}{,}{\mathrm{I1_p_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{I1_p_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{I1_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{NP1_i}}{}\left({t}\right){=}{0}{,}{\mathrm{NP1_v}}{}\left({t}\right){=}{0}{,}{\mathrm{NP2_i}}{}\left({t}\right){=}{0}{,}{\mathrm{NP2_v}}{}\left({t}\right){=}{0}{,}{\mathrm{PP1_i}}{}\left({t}\right){=}{0}{,}{\mathrm{PP1_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{PP2_i}}{}\left({t}\right){=}{0}{,}{\mathrm{PP2_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{PP3_i}}{}\left({t}\right){=}{0}{,}{\mathrm{PP3_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{PS1_p_i}}{}\left({t}\right){=}{0}{,}{\mathrm{PS1_p_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{PS1_y}}{}\left({t}\right){=}{-0.}{,}{\mathrm{R1_i}}{}\left({t}\right){=}{-0.}{,}{\mathrm{R1_n_i}}{}\left({t}\right){=}{0.}{,}{\mathrm{R1_n_v}}{}\left({t}\right){=}{0}{,}{\mathrm{R1_p_i}}{}\left({t}\right){=}{-0.}{,}{\mathrm{R1_p_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{R1_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{SC1_i}}{}\left({t}\right){=}{0}{,}{\mathrm{SC1_n_i}}{}\left({t}\right){=}{0}{,}{\mathrm{SC1_n_v}}{}\left({t}\right){=}{-0.}{,}{\mathrm{SC1_p_i}}{}\left({t}\right){=}{0}{,}{\mathrm{SC1_p_v}}{}\left({t}\right){=}{0}{,}{\mathrm{SC1_v}}{}\left({t}\right){=}{0.}{,}{\mathrm{InputSignal}}{}\left({t}\right){=}{0}{,}{\mathrm{OutputSignal}}{}\left({t}\right){=}{-0.}{,}{\mathrm{R1_LossPower}}{}\left({t}\right){=}{0.}{,}{\mathrm{R1_R_actual}}{}\left({t}\right){=}{1}{,}{\mathrm{R1_T_heatPort}}{}\left({t}\right){=}\frac{{6003}}{{20}}{,}{\mathrm{D}}{}\left({\mathrm{C1_n_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{C1_p_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{C1_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{G2_p_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_n_i}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_n_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_p_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_p_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{I1_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{NP1_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{NP1_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{NP2_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{NP2_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{PP1_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{PP1_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{PP2_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{PP2_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{PP3_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{PP3_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{PS1_p_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{PS1_p_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{PS1_y}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_i}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_n_i}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_n_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_p_i}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_p_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{SC1_i}}\right){}\left({t}\right){=}{6.28318530717958648}{,}{\mathrm{D}}{}\left({\mathrm{SC1_n_i}}\right){}\left({t}\right){=}{-6.28318530717958648}{,}{\mathrm{D}}{}\left({\mathrm{SC1_n_v}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{SC1_p_i}}\right){}\left({t}\right){=}{6.28318530717958648}{,}{\mathrm{D}}{}\left({\mathrm{SC1_p_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{SC1_v}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{InputSignal}}\right){}\left({t}\right){=}{6.28318530717958648}{,}{\mathrm{D}}{}\left({\mathrm{OutputSignal}}\right){}\left({t}\right){=}{-0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_LossPower}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_R_actual}}\right){}\left({t}\right){=}{0.}{,}{\mathrm{D}}{}\left({\mathrm{R1_T_heatPort}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{C1_n_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{G2_p_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{I1_n_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{NP1_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{NP1_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{NP2_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{NP2_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{PP1_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{PP2_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{PP3_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{PS1_p_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{R1_n_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{SC1_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{SC1_n_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{SC1_p_i}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{SC1_p_v}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{InputSignal}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{R1_R_actual}}\right){}\left({t}\right){=}{0.}{,}{{\mathrm{D}}}^{\left({2}\right)}{}\left({\mathrm{R1_T_heatPort}}\right){}\left({t}\right){=}{0.}\right\}$ (1)