- Index
- » Users
- » Changfu
- » Profile
Posts
Posts
Dear,
In my case, I want to use conditional input for model which consists of fully coupled state variables.
I have tried,
if use fixed input, it works well;
if use non-fully coupled state variables, it works well;
Below is a simple example from my real project:
Could anyone give me some suggestions?
model test
Real x,y,z;
Real I;
equation
if y< 4 then
I =10;
else
I = -10;
end if;
der(x) = 5*z + I;
z+y = 4;
y = 2*x;
end test;
Because my model is very complex consisting of 21 partial differential algebraic equations, and I want simulate it for hundreds of cycles, I cannot update the initial values by hand.
Could you give me some suggestion?
Thank you!
Is there some function like 'xlsread' and "xlswrite" in matlab?
Since I want to simulate a large number of loops, and the result of step j is the initialization of step j+1
Do you have any idea about this?
Dear everyone,
I am using OpenModelica, and meet a problem.
In my model, I initialize each variable with C0, such as
Real C[N](each start = C0)
However, I need C0 to change at some certain time. For example, I use "for loop". At the beginning of each loop, I want to update the value of C0.
How can I do this ?
Many thanks!
- Index
- » Users
- » Changfu
- » Profile