diff options
Diffstat (limited to 'sandbox/fancy_pants')
-rw-r--r-- | sandbox/fancy_pants/model.modelica | 15 | ||||
-rw-r--r-- | sandbox/fancy_pants/page.md | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sandbox/fancy_pants/model.modelica b/sandbox/fancy_pants/model.modelica new file mode 100644 index 0000000..9c1fbb8 --- /dev/null +++ b/sandbox/fancy_pants/model.modelica @@ -0,0 +1,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;
diff --git a/sandbox/fancy_pants/page.md b/sandbox/fancy_pants/page.md new file mode 100644 index 0000000..26e254c --- /dev/null +++ b/sandbox/fancy_pants/page.md @@ -0,0 +1 @@ +This model is a stress-test for representation code. |