From 12eb30845811e2b597efb66001da382a74f9f806 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 16 Jan 2017 14:36:11 -0800 Subject: sandbox: repr-heavy demo page --- sandbox/fancy_pants/model.modelica | 15 +++++++++++++++ sandbox/fancy_pants/page.md | 1 + 2 files changed, 16 insertions(+) create mode 100644 sandbox/fancy_pants/model.modelica create mode 100644 sandbox/fancy_pants/page.md 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. -- cgit v1.2.3