From 3983ac71d8911234342386aed897d6d2f9fef13f Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 26 Dec 2016 05:01:29 -0800 Subject: remove metadata.toml Grab name and decription from modelica source. Only keep around examples in .toml (so far unimplemented) --- examples/classic_gravitation/examples.toml | 12 ++++++++++++ examples/classic_gravitation/metadata.toml | 16 ---------------- examples/classic_gravitation/model.modelica | 1 + examples/hodgkin_huxley/model.modelica | 1 + examples/lotka_volterra/examples.toml | 11 +++++++++++ examples/lotka_volterra/metadata.toml | 15 --------------- examples/van_der_pol/examples.toml | 0 examples/van_der_pol/metadata.toml | 0 8 files changed, 25 insertions(+), 31 deletions(-) create mode 100644 examples/classic_gravitation/examples.toml delete mode 100644 examples/classic_gravitation/metadata.toml create mode 100644 examples/lotka_volterra/examples.toml delete mode 100644 examples/lotka_volterra/metadata.toml create mode 100644 examples/van_der_pol/examples.toml delete mode 100644 examples/van_der_pol/metadata.toml (limited to 'examples') diff --git a/examples/classic_gravitation/examples.toml b/examples/classic_gravitation/examples.toml new file mode 100644 index 0000000..516b16c --- /dev/null +++ b/examples/classic_gravitation/examples.toml @@ -0,0 +1,12 @@ + +[examples] + + [examples.earth_surface] + r = 6.371e6 # radius of earth + m1 = 5.972e24 # mass of earth + + [examples.earth_moon] + r = 385000 # radius of earth + m1 = 5.972e24 # mass of earth + m2 = 7.348e22 # mass of moon + diff --git a/examples/classic_gravitation/metadata.toml b/examples/classic_gravitation/metadata.toml deleted file mode 100644 index 9f43ae7..0000000 --- a/examples/classic_gravitation/metadata.toml +++ /dev/null @@ -1,16 +0,0 @@ - -[model] -name-en = "Classic Gravitation" -description-en = "Newtonian" - -[examples] - - [examples.earth_surface] - r = 6.371e6 # radius of earth - m1 = 5.972e24 # mass of earth - - [examples.earth_moon] - r = 385000 # radius of earth - m1 = 5.972e24 # mass of earth - m2 = 7.348e22 # mass of moon - diff --git a/examples/classic_gravitation/model.modelica b/examples/classic_gravitation/model.modelica index e0f7b60..7d5d327 100644 --- a/examples/classic_gravitation/model.modelica +++ b/examples/classic_gravitation/model.modelica @@ -1,4 +1,5 @@ model ClassicGravitation + "Newtonian" parameter Real G=6.674e-11 "Gravitational Constant"; Real m1(unit="kilogram") "mass #1"; Real m2(unit="kilogram") "mass #2"; diff --git a/examples/hodgkin_huxley/model.modelica b/examples/hodgkin_huxley/model.modelica index 9153799..532bdac 100644 --- a/examples/hodgkin_huxley/model.modelica +++ b/examples/hodgkin_huxley/model.modelica @@ -1,4 +1,5 @@ model HodgkinHuxley + "Predator-Prey Model" parameter Real G_Na =120 "conductance"; parameter Real G_K =36 "conductance"; parameter Real G_lk =0.3 "conductance"; diff --git a/examples/lotka_volterra/examples.toml b/examples/lotka_volterra/examples.toml new file mode 100644 index 0000000..0f5fb85 --- /dev/null +++ b/examples/lotka_volterra/examples.toml @@ -0,0 +1,11 @@ + +[examples] + + [examples.mathworld] + x = 10 + y = 5 + alpha = 1.5 + beta = 1 + gamma = 1 + t = [0, 20] + diff --git a/examples/lotka_volterra/metadata.toml b/examples/lotka_volterra/metadata.toml deleted file mode 100644 index 9753537..0000000 --- a/examples/lotka_volterra/metadata.toml +++ /dev/null @@ -1,15 +0,0 @@ - -[model] -name-en = "Lotka–Volterra equations" -description-en = "Predator-Prey Model" - -[examples] - - [examples.mathworld] - x = 10 - y = 5 - alpha = 1.5 - beta = 1 - gamma = 1 - t = [0, 20] - diff --git a/examples/van_der_pol/examples.toml b/examples/van_der_pol/examples.toml new file mode 100644 index 0000000..e69de29 diff --git a/examples/van_der_pol/metadata.toml b/examples/van_der_pol/metadata.toml deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3