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 + 3 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 examples/classic_gravitation/examples.toml delete mode 100644 examples/classic_gravitation/metadata.toml (limited to 'examples/classic_gravitation') 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"; -- cgit v1.2.3