Simple First Order System - FirstOrderInitial

Gallery
Tutorial
Click on the image to view it full size
The exported Modelica code is:

model FirstOrderInitial
  Real x(start=2.0,fixed=true);
equation
  der(x)=1-x;
end FirstOrderInitial;
The SysPhS version as formulated here is slightly different from the Modelica By Example target version, which used an explicit 'initial equation' rather than 'start' and 'fixed':

model FirstOrderInitial "First order equation with initial value"
  Real x "State variable";
initial equation
  x = 2 "Used before simulation to compute initial values";
equation
  der(x) = 1-x "Drives value of x toward 1.0";
end FirstOrderInitial;
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
External links