Parameters
| Name | Default | Description |
| IC | | [V] |
Modelica definition
model IC1
extends INTERFACE.OnePin;
extends INIT.Part;
parameter SI.Voltage IC;
constant SI.Resistance R_EPS=2e-4;
protected
SI.Voltage vClampDC;
SI.Voltage vClampTran;
SI.Time timeClampDC(start=1E100);
SI.Time timeClampTran(start=1E100);
equation
// ------------
// Static model
// ------------
p.iDC = if ctrl_IC_clampDC then (p.vDC - vClampDC)/R_EPS else 0;
when ctrl_IC_clampDC then
timeClampDC = time;
end when;
vClampDC = if ctrl_IC_clampDC and ctrl_IC_mode == 0 then IC else if
ctrl_IC_clampDC and ctrl_IC_mode == 1 then IC*(time - timeClampDC)/
TIME_SCALE else 0;
// ---------------------
// AC small-signal model
// ---------------------
{p.iAC_Re,p.iAC_Im} = zeros(2);
// ---------------
// Transient model
// ---------------
p.iTran = if ctrl_IC_clampTran then (p.vTran - vClampTran)/R_EPS else 0;
when ctrl_IC_clampTran then
timeClampTran = time;
end when;
vClampTran = if ctrl_IC_clampTran and ctrl_IC_mode == 0 then IC else if
ctrl_IC_clampTran and ctrl_IC_mode == 1 then IC*(time - timeClampTran)/
TIME_SCALE else 0;
end IC1;
Parameters
| Name | Default | Description |
| IC | | [V] |
Modelica definition
model IC2
extends INTERFACE.OnePort;
extends INIT.Part;
parameter SI.Voltage IC;
constant SI.Resistance R_EPS=2e-4;
protected
SI.Voltage vClampDC;
SI.Voltage vClampTran;
SI.Time timeClampDC(start=1E100);
SI.Time timeClampTran(start=1E100);
equation
// ------------
// Static model
// ------------
iDC = if ctrl_IC_clampDC then (vDC - vClampDC)/R_EPS else 0;
when ctrl_IC_clampDC then
timeClampDC = time;
end when;
vClampDC = if ctrl_IC_clampDC and ctrl_IC_mode == 0 then IC else if
ctrl_IC_clampDC and ctrl_IC_mode == 1 then IC*(time - timeClampDC)/
TIME_SCALE else 0;
// ---------------------
// AC small-signal model
// ---------------------
{iAC_Re,iAC_Im} = zeros(2);
// ---------------
// Transient model
// ---------------
iTran = if ctrl_IC_clampTran then (vTran - vClampTran)/R_EPS else 0;
when ctrl_IC_clampTran then
timeClampTran = time;
end when;
vClampTran = if ctrl_IC_clampTran and ctrl_IC_mode == 0 then IC else if
ctrl_IC_clampTran and ctrl_IC_mode == 1 then IC*(time - timeClampTran)/
TIME_SCALE else 0;
end IC2;
HTML-documentation generated by Dymola Tue Oct 14 18:26:37 2003
.