kabdelhak / OpenModelica

OpenModelica is an open-source Modelica-based modeling and simulation environment intended for industrial and academic usage.
https://openmodelica.org
Other
0 stars 0 forks source link

Add support for Nonlinear loops #10

Open kabdelhak opened 3 years ago

kabdelhak commented 3 years ago

The first goal is a simple model such as

model nonlinearLoop
  Real x,y;
equation
  x = y^2 + sin(time);
  y = sin(x);
end nonlinearLoop;

The basic structure for this already exists. We have jacobians and we have the structures for StrongComponent loops. Currently we only have residual variables for DAE-Mode, but i think there is no reason to not use the deaResidual of an equation as general residual.

Maybe we should even create a residual variable for each equation to have a unique identifier for them. Could be benefitial.