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

Posts

Posts

Hi,

When I install ModelicaML, there shows an library dependency issue:

  Missing requirement: ModelicaML - Papyrus Customization, Modelica Code Generation, Simulation with OMC 1.9.6.201402260741 (org.openmodelica.modelicaml.feature.feature.group 1.9.6.201402260741) requires 'org.eclipse.acceleo.feature.group 0.0.0' but it could not be found

May I know how I should fix this problem?

Thank you very much!

Hi Adrpo,

Thank you very much!

Chih-Wei

Hi,

I would like to install ModelicaML but the update link for MDT is invalid on the website:
http://www.ida.liu.se/~pelab/modelica/OpenModelica/MDT/

May I know where I can get this package for eclipse?

Thank you very much,
Chih-Wei

Jul-16-14 04:11:04
assign initial conditions to make step function continue
Category: Programming

I would like to ask a Modelica question about when function, and the following source code cannot be properly functioned. The variable Pstart_CONV is an initial condition for der(x_calc) in the if statement, and the Pstart_CONV value is given by x when the "when statement" becomes true. Because x is a step function, I want to assign an initial condition for der(x_calc) so x can be continued for the whole domain.

Thank you very much,

Source:

model Unnamed4
  Real  Pstart_CONV;

  Real P_crit_ratio;
  parameter Real P_crit_ratio_criteria = 2.00;

  Real x;
  Real x_calc(start=0);

equation
  P_crit_ratio = 10-time;

  when P_crit_ratio <= P_crit_ratio_criteria then
    Pstart_CONV = x;
  end when;

  if P_crit_ratio >= P_crit_ratio_criteria then
    x = time^2;
    x_calc = 0;
  else
    der(x_calc) = time * 5;
    x = x_calc + Pstart_CONV;
  end if;   
end Unnamed4;

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