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
  • » cporowski
  • » Profile

Posts

Posts

May-02-12 17:37:17
Simple question for which I cannot find a solution online or in books.
Category: Programming

Thank you!

Apr-27-12 12:25:03
Simple question for which I cannot find a solution online or in books.
Category: Programming

Hello,

I am trying to keep tab of the number of times that a curve passes a certain line but I can't get the counter to work (i++ style).

e.g.:
algorithm
  if  y==constant  then
        i:=i+1
  end if;

This only makes i:=i+1 at the moment when condition is true.. afterwards it reverts to its old value.  How do I change it for good?

Help is much appreciated.

Nov-25-11 14:51:38
Simulation error (x_min and x_max do not bracket the root)

Hi,

I have been repeatedly having this error when adjusting certain parameters for my simulation (using Dymola 7.1).  At this point I cannot avoid it anymore and need to solve it to continue my work.

Does anyone have a clue as to how to approach this?

The following error was detected at time: 0.08644948974278317
The arguments x_min and x_max to OneNonLinearEquation.solve(..)
do not bracket the root of the single non-linear equation:
  x_min  = 200
  x_max  = 6000
  y_zero = 133830
  fa = f(x_min) - y_zero = 66313.2
  fb = f(x_max) - y_zero = 7.38427e+006
fa and fb must have opposite sign which is not the case
The stack of functions is:
Internal.solve_Unique'"16EACA28"'
Modelica.Media.Air.DryAirNasa.T_h_Unique'"13825900"'
Modelica.Media.Air.DryAirNasa.setState_phX_Unique'"15F37938"'
Modelica.Media.Air.DryAirNasa.setState_phX_Unique'"15F37938"'(volume1.medium.p, volume1.ports[1].h_outflow, volume1.ports[1].Xi_outflow)

Thank you,

Christian

Nov-24-11 11:41:59
Libraries FLUID and FLUIDDISSIPATION does not work in OpenModelica

Hmm I'm still having trouble. I will stick to using Dymola for Fluids for now.
Thank you very much for your help!

Christian

Nov-23-11 19:15:44
Libraries FLUID and FLUIDDISSIPATION does not work in OpenModelica

Thank you, but unfortunately I'm still confused about it:

I have the exact copy of the Fluid folder from Modelica 3.2 and it contains the file "package.mo" in it.  Am I using the right name and value? or is it in the right directory?

Cheers
Christian

Nov-23-11 18:50:50
Libraries FLUID and FLUIDDISSIPATION does not work in OpenModelica

Hi,

so I am still having problems importing.

I moved my "Fluid" folder into C:\OpenModelica1.8.0\lib\omlibrary.

Then when adding a new library in the options, I typed in:
"Fluid" as name and "default" as value.

I try resetting the programming and nothing changes. What am I doing wrong?

(I am using the OpenModelica revision 10304)

Thanks!

Christian

Nov-03-11 15:29:27
How do you import a library into OMEdit?

Oh yea.. Im using a beta of 1.8 which doesn't have that option current/sad

Thanks a lot!

Nov-03-11 13:44:12
How do you import a library into OMEdit?

Hi,

This sounds very simple but I can't seem to figure out how to open in OMEdit say the library Modelica_Fluid 1.0. I can't find an option for importing a library and inserting the files into the modelica library folders doesn't do anything.  I also tried to open .mo files in the Fluid library but the software just freezes.

Please, if anyone has a clue, could you help me with this?

Thanks in advance,

Christian

Oct-26-11 12:31:13
Pendulum fail in 1.8.0

Hi

I am using OM 1.8.0 and trying the pendulum example.  It fails at about 0.2 sec because it is not converging. Is this a bug?

Here is my input and the message I get:

class Pendulum "Planar Pendulum"
  constant Real PI = 3.14159265358979;
  parameter Real m = 1,g = 9.81,L = 0.5;
  Real F;
  output Real x(start = 0.5),y(start = 0);
  output Real vx,vy;
equation
  m * der(vx) = -(x / L) * F;
  m * der(vy) = -(x / L) * F - m * g;
  der(x) = vx;
  der(y) = vy;
  x ^ 2 + y ^ 2 = L ^ 2;
end Pendulum;




Simulated 'Pendulum' successfully! with message:
DASSL--  AT CURRENT T (=R1)  500 STEPS
      In above message,  R1 =   .2054502887339E+00
DASSL--  TAKEN ON THIS CALL BEFORE REACHING TOUT
| warning | DDASRT: A large amount of work has been expended.(About 500 steps). Trying to continue ...
DASSL--  AT CURRENT T (=R1)  500 STEPS
      In above message,  R1 =   .2054502887357E+00
DASSL--  TAKEN ON THIS CALL BEFORE REACHING TOUT
| warning | DDASRT: A large amount of work has been expended.(About 500 steps). Trying to continue ...
DASSL--  AT CURRENT T (=R1)  500 STEPS
      In above message,  R1 =   .2054502887362E+00
DASSL--  TAKEN ON THIS CALL BEFORE REACHING TOUT
| warning | DDASRT: A large amount of work has been expended.(About 500 steps). Trying to continue ...
DASSL--  AT CURRENT T (=R1)  500 STEPS
      In above message,  R1 =   .2054502887364E+00
DASSL--  TAKEN ON THIS CALL BEFORE REACHING TOUT
| warning | DDASRT: A large amount of work has been expended.(About 500 steps). Trying to continue ...
DASSL--  AT T (=R1) AND STEPSIZE H (=R2) THE
      In above,  R1 =   .2054502887365E+00   R2 =   .1164869998510E-15
DASSL--  CORRECTOR FAILED TO CONVERGE REPEATEDLY
DASSL--  OR WITH ABS(H)=HMIN

Error in Simulation. Solver exit with error.

| error | DDASRT: The corrector could not converge.

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