Skip to content

Examples

Jens Möckel edited this page Jan 7, 2016 · 13 revisions

This section contains small examples, which should give a first but sufficient impression on how to use Moliana.

  • Example1 - General usage of Moliana
  • Example2 - Setting the level, up to which the report should be broken down
  • Example3 - Setting the first level that should be checked
  • Example4 - Changing the report colors while using the same report instance
  • Example5 - Adding some displayed information to an already existing report
  • Example6 - Comparing two reports to each other
  • Example7 - Using Converter to convert an Html report into a Report instance

Each example is applied to a small Modelica library named test_library, which can be found at examples/test_library. Each model is very, very simple as their only purpose is to generate some different cases to show results of Moliana. The structure of the library (displayed in Dymola) can be seen in the below picture. Note, that the package/model names are generic in order to ease the process of validation of the results. Note furthermore, that L1Pck5 is just is a copy of L1Pck1 where the content is stored in one file.

structure_test_library
All examples can be found as runnable Python modules in examples/examples.py

Clone this wiki locally