aboutsummaryrefslogtreecommitdiffstats
path: root/sandbox/fancy_pants/model.modelica
blob: 9c1fbb8301a29611741ad52b367b9fa04377a230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
model FancyPants
  "Demo of modelthing syntax features"
  Real alpha "complexity factor";
  Real beta "variable of state";
  input Integer Delta "raven count";
  output Integer Gamma[3] = 1997 "year of birth";
  parameter Real P_2=1.234 "dimensional constant";
  parameter Real Q_lambda=1.234 "widget ratio";
equation
  alpha = Delta^P_2;
  der(Gamma) = (6 + Q_lambda) / beta;
  der(beta^4) = 99;
  5 = log10(beta);
  Q_lambda = sqrt( Delta*alpha / 3453 );
end FancyPants;