diff options
author | bnewbold <bnewbold@robocracy.org> | 2017-01-16 14:36:11 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2017-01-16 14:36:11 -0800 |
commit | 12eb30845811e2b597efb66001da382a74f9f806 (patch) | |
tree | 4683d5e78b221b7d52f5e0cfe3c6a5bd1d97dbfc /sandbox/fancy_pants | |
parent | 4ef105cd0d3336b8755483cde43450d9f96abf4a (diff) | |
download | modelthing-12eb30845811e2b597efb66001da382a74f9f806.tar.gz modelthing-12eb30845811e2b597efb66001da382a74f9f806.zip |
sandbox: repr-heavy demo page
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. |