equation and function setup in Simscape

Hi, I need your small help. Lets say, I have I = C * dv/dt
which is:
dv/dt = I/C
If I integrate this equ, I will have
v = (I/C)*t + constant
where constant = v(t=0)
So, in simscape when I do:
function setup v = { 5 ,'V'}; end
equation i == C*v.der end
does this v(t=0) value is taken from function setup?
Or equivalently, does this mean:
v = (I/C)*t + 5
when I actually implement this simscape equ.
Please kindly let me know about "der" and "function setup" thing. I have read the manual and other stuffs in the Internet but I could not get my answer. I need to know how the initial value can be given in the equation using ".der"
Thanks

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Run-Time Parameters 的更多信息

产品

提问:

2015-6-4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by