Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Is there any problem about "initial equation" in OpenModelica?
MOS701
post Feb 17 2009, 08:33 AM
Post #1


Member
**

Group: Members
Posts: 16
Joined: 11-February 09
Member No.: 30,419



Hello
to inistializse this variable you need to use the start commant,
so

"""""""""""
Modelica.Blocks.Continuous.TransferFunction AVR(b={1}, a={Tr,1},AVR.y(start=5.123));
""""""""""""""
regards

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
new_wave
post Sep 28 2007, 05:13 AM
Post #2


Member
**

Group: Members
Posts: 11
Joined: 12-October 06
Member No.: 65



Dear all,
Consider a simple test example shown below,

model stf
parameter Real Tr=0.5;
Modelica.Blocks.Continuous.TransferFunction AVR(b={1}, a={Tr,1});
output Real yy;
equation
yy=AVR.y;
AVR.u=sin(2*3.14159*2*time);
initial equation
AVR.y=5.123;
end stf;

I found that the result obtained from Dymola and OpenModelica is different. The problem is that I cannot force the output AVR.y to a specific value as I want. Is this a problem from OpenModelica ? How can I force the output at the initial in OpenModelica?

Best regards,
new_wave








User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 20th July 2019 - 01:28 PM