Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » sxfcherry
  • » Profile

Posts

Posts

Jun-01-12 18:27:10
the model terminates

when i set the simulation time 10s or longer time,then the curve of variable is only to 4.5 ,and the error message is as follows:

warning | Error solving nonlinear system SES_SIMPLE_ASSIGN 1 at time 4.5028
info    | model terminate | Simulation terminated at time 4.5

could someone tell me what i can do to solve this problem? Thank you so much!

May-27-12 17:50:17
how to utilize the exe file that is compiled when i simulate a model?

hi, when i script like "> %OPENMODELICAHOME%\bin\OMPlot --filename=helloworld_res.mat --plotAll" it  says helloworld_res.mat is not existent. is there some requirement for the path of the .mat file?
"

May-25-12 10:13:43
how to utilize the exe file that is compiled when i simulate a model?

i would also like to ask a question,could the exe file can directly display the result ,for example the curve of the variable,it can pop out in the screen? I am a Chinese college students doing the graduateproject , I am very grateful for your help!

May-25-12 09:52:14
how to utilize the exe file that is compiled when i simulate a model?

Thank  you  so much!!!  you help me so much!

May-25-12 04:59:54
how to utilize the exe file that is compiled when i simulate a model?

Thank you so much!
but i cannot understand "You run Model.exe from the command line to get Model.mat."  when i just double-click to open the exe file,then a window flash and then disappear.and how i  can run Model.exe from the command line?  thank  you ! i am a beginner so  what i know is so little.

May-25-12 04:10:49
how to utilize the exe file that is compiled when i simulate a model?

Is  there some guide about this?thank you !

May-23-12 11:17:50
how to utilize the exe file that is compiled when i simulate a model?

i want to know whether i can get my model files directly packaged into exe format, which does not depend on OMEdit and can generate the simulation results? Thank you !!

May-22-12 03:56:20
Can the user change the solver of the OpenModelica?

yes,and in the system guide I have seen that "
The library libsim.a is the runtime library for simulations, it contains solvers and a main function for the simulation. The following files are included:
simulation_runtime.* Includes the main function, solver wrappers,etc.
daux.f Auxiliary Fortran functions.
ddasrt.f DDASRT solver.
ddassl.f DASSL solver.
dlamch.f Determine machine parameters for solvers.
dlinpk.f Gaussian elimination routines, used by solvers.
lsame.f LAPACK axuiliary routine LSAME.
Non-linear solver:
hybrd1.f Non-linear solver with approximate jacobian.
hybrj.f Non-linear solver with analythical jacobian.- alternative for non-linear solver.
fdjac1.f Helper routines
enorm.f Helper routines.
dpmpar.f Helper routines
dogleg.f Helper routines"
and can i use these solver?for example, the non-linear ones?thank you!

May-20-12 15:16:12
Can the user change the solver of the OpenModelica?

I  want to know whether I can change the solver of the openmodelica ,and the process is simple or not and need i change the source code ?

May-18-12 10:52:52
Setting simulation time?

my error message(in OMshell) is as follows :


warning | Error solving nonlinear system SES_ALGORITHM 0 at time 0.0159813
info         | model terminate | Simulation terminated at time 0.014
",
but i can not understand what "SES_ALGORITHM "means. and then I should do what to solve the problem.

May-16-12 10:40:18
Setting simulation time?

so I want to know where I can find the diagnostics.Thank you !

May-14-12 17:12:55
OMEdit: simulation of modelica standard library example fails

Hi,Could you help me ? I am in my graduation project ,Thank  you so much!

The message of error is as follows :

Scripting    16:08:19        0:0-0:0    Failed to open simulation result C:/Users/sxf/AppData/Local/Temp/OpenModelica/OMEdit/wojiubx_res.mat: Too few rows in data_2 matrix

I cannot understand "Too few rows in data_2 matrix"  .Can someone tell me what possible reasons for this situation? Thank  you!

May-14-12 16:19:54
As in MATLAB GUIDE, is there a facility to program an interactive GUI

Hi,I want to know how I can  create a c code library and even compiles it to an exe.I have never seen it in the tutorial . Thank you !

May-10-12 11:21:14
fail to open simulation result

The message of error is as follows :

Scripting    16:08:19        0:0-0:0    Failed to open simulation result C:/Users/sxf/AppData/Local/Temp/OpenModelica/OMEdit/wojiubx_res.mat: Too few rows in data_2 matrix

I cannot understand "Too few rows in data_2 matrix"  .Can someone tell me what possible reasons for this situation? Thank  you!

Apr-30-12 09:28:17
message from the OMEdit

thank you so much!

Apr-28-12 05:24:54
message from the OMEdit

Thank you! I use version 1.8.0.

Apr-25-12 05:17:21
message from the OMEdit

Scripting    10:11:56        0:0-0:0    Failed to open simulation result C:/Users/sxf/AppData/Local/Temp/OpenModelica/OMEdit/evmode_res.mat: No such file or directory

can someone tell me what the error means?

Apr-21-12 15:16:38
can someone be in such cases?

case is :
in the former time,I can simulate the program successfully,however, later I can simulate it and no plot result,the
message is " cannot  find the result in .mat
thank you !

Apr-20-12 15:22:01
Failed to open simulation

when I simulate,the  result   is “Failed to open simulation result C:/Users/sxf/AppData/Local/Temp/OpenModelica/OMEdit/wowowowo_res.mat: No such file or directory”
can  someone tell me why?

Apr-20-12 03:48:48
Setting simulation time?

no,for example,I simulate from 0 to 1 ,but the   actual  time is just 0.012s,

Apr-19-12 16:58:52
Setting simulation time?

In  some cases, the actual simulation time is not consistant with my setting simulation time ,and the actual is so small.  Can somebody tell me why?thank you!

Apr-18-12 10:33:12
how to utilize “terminate”?

Hi,I want to know how I can make the programe end when a condition occurs. in  OpenModelica.
Thank  you!
cherry

Apr-17-12 09:34:17
how to utilize “terminate”?

Thank  you !

Apr-16-12 11:40:07
how to utilize “terminate”?

in the “MoonLanding” example,
“when apollo.altitude < 20 then
    terminate("The moon lander touches the ground of the moon");
  end when;”
but  the simulation result is not expected,the altitude is smaller than 0.
could someone tell me why?

Apr-07-12 09:28:51
I want to model the drivingshaft of a vehicle.

I want to model the drivingshaft of a vehicle. If I just use mathematical equations,I can get the right simulation result. however,my aim is to model a whole vehicle,so I need to add a connector (flange )to my model ,then errors come up ! my code is as follows :
model drivingshaft
  import SI = Modelica.SIunits;
  RotFlange_a  flange_a ;
  input SI.Velocity u;
  SI.AngularVelocity dew;
  parameter SI.Mass m = 1360;
  parameter SI.Area A = 2.57;
  parameter SI.CoefficientOfFriction Cd = 0.26,f = 0.014;
  parameter SI.Radius Rwh = 0.348;
  parameter SI.Acceleration g = 9.81;
  parameter Real ktrans = 4.113;
  SI.Force Fenv;
  SI.Torque tau;
  parameter SI.Inertia J = m * Rwh ^ 2;
equation
  dew = der(flange_a.phi);
  Fenv = (Cd * A * u ^ 2) / 21.15 + m * g * f + m * der(u);
  tau = Fenv * Rwh;
  dew = u / (Rwh * ktrans);
  J * der(dew) = flange_a.tau + tau;
end drivingshaft;
who can tell me the problem? Thank you!
cherry

Apr-06-12 04:32:08
how to get the integrator of a variable in a model?

Thank you so much!
cherry

Apr-04-12 14:41:21
how to get the integrator of a variable in a model?

I am a beginner of Modelica language.I want to get the state of charge of a battery,it needs the integrator of  current,but I cannot .I hope someone can help me !
Thank you!
  cherry

  • Index
  • » Users
  • » sxfcherry
  • » Profile
You are here: