Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> A model that should run but it didn't ???, mysterius simulation
MOS701
post Feb 19 2009, 09:54 AM
Post #1


Member
**

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



hi !!

i am facing a problem with open modelica shell, for exemple this simple electrical model model
""""""""""""""""""""""""""""""""
within test_resistor;

model resistor
Modelica.Electrical.Analog.Basic.Resistor R(R=10);
Modelica.Electrical.Analog.Sources.ConstantVoltage E(V=10);
Modelica.Electrical.Analog.Basic.Ground gnd;
equation
connect(R.p,E.p);
connect(R.n,E.n);
connect(R.n,gnd.p);

end resistor;

"""""""""""""""""""""""""""""""""""""""""

this is so simple and modelica have no probleme with it as i konw ( i am a newbie so correct me if i am wrong )

and this is the Script mos file
"""""""""""""""""""""""""""""""""""""""
/*test*/
clear();
loadModel(Modelica);
getErrorString();
loadFile("resistor.mo");
getErrorString();


simulate(resistor,startTime=0.0,stopTime=0.1,numberOfIntervals=1000);
getErrorString();
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

the modelica shell answer is good

"true
true
""
true
""
record SimulationResult
resultFile = "resistor_res.plt"
end SimulationResult;
""

true"

but the problem is that the plt file is empty !!!!! and the output file alsoooo !!!!!!!!

the init file is empty

0.0 // start value
0.1 // stop value
0.0001 // step value
1e-10 // tolerance
"dassl" // method
1 // n states
0 // n alg vars
0 //n parameters
0 // n string-parameters
0 // n string variables
0.0 // $dummy
0.0



did anyone faced this king of problem!!
Attached File  resistor_init.txt ( 219bytes ) Number of downloads: 764

Attached File  resistor_init.txt ( 219bytes ) Number of downloads: 764

Attached File  resistor_init.txt ( 219bytes ) Number of downloads: 764
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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

 



Lo-Fi Version Time is now: 22nd January 2019 - 12:25 PM