Skip to content

Commit b80ce22

Browse files
authored
Merge pull request #922 from EnergySystemsModellingLab/user-guide
Add info about getting started to user guide
2 parents d544d65 + d054145 commit b80ce22

1 file changed

Lines changed: 103 additions & 4 deletions

File tree

docs/user_guide.md

Lines changed: 103 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,110 @@
11
# User Guide
22

3-
## Running MUSE2
4-
53
Once you have installed MUSE2, you should be able to run it via the `muse2` command-line program.
6-
For details of the command-line interface, [see here](./command_line_help.md).
4+
For details of the command-line interface, [see here](./command_line_help.md) or run `muse2 help`.
5+
6+
## Example models
7+
8+
MUSE2 comes with a number of [example models], partly to demonstrate the various program features as
9+
well as to be used as templates for new models. To see the list of available examples, you can run:
10+
11+
```sh
12+
muse2 example list
13+
```
14+
15+
It should print something like the following:
16+
17+
```sh
18+
missing_commodity
19+
muse1_default
20+
simple
21+
two_outputs
22+
two_regions
23+
```
24+
25+
To view information about a particular example, you can run, e.g.:
26+
27+
```sh
28+
muse2 example info simple
29+
```
30+
31+
You can run examples like so:
32+
33+
```sh
34+
muse2 example run simple
35+
```
36+
37+
[example models]: ./examples.md
38+
39+
## Building and running your own model
40+
41+
> 🚧 Note that this section is under construction! 🚧
42+
>
43+
> In the longer term, we [plan to have a tutorial][tutorial-issue] describing how to build a model
44+
> in more detail.
45+
46+
Models in MUSE2 are defined with one [TOML] file (`model.toml`) and many CSV files. For a
47+
description of each of the files and the different fields, see [the documentation for input files].
48+
49+
[TOML]: https://toml.io/en/
50+
[the documentation for input files]: file_formats/input_files.md
51+
52+
### Creating a new model from an example
53+
54+
We recommend you use one of the examples as starting point for your own model, as there are many
55+
required files.
56+
57+
To create a new model based on the `simple` example, run:
58+
59+
```sh
60+
muse2 example extract simple new_model
61+
```
62+
63+
This will create a new subdirectory called `new_model` in the current folder.
64+
65+
### Running this model
66+
67+
First, let's run this model so you can see the output for a working model. You can do this by
68+
running:
69+
70+
```sh
71+
muse2 run new_model
72+
```
73+
74+
If everything works as expected, you should see output on your terminal indicating the progress of
75+
the simulation (which should finish very quickly).
76+
77+
The first few lines should look something like:
78+
79+
```txt
80+
[12:24:20 INFO muse2::cli] Starting MUSE2 v2.0.0
81+
[12:24:20 INFO muse2::cli] Loaded model from new_model/
82+
[12:24:20 INFO muse2::cli] Output folder: muse2_results/new_model
83+
...
84+
```
85+
86+
You should see that a new `muse2_results` folder has been created. This folder will contain the
87+
output for your model in a subfolder called `new_model`. For information about how to interpret
88+
these files, see [the documentation for output files]. We also have some [example Jupyter
89+
notebooks].
90+
91+
[the documentation for output files]: file_formats/output_files.md
92+
[example Jupyter notebooks]: https://github.com/EnergySystemsModellingLab/MUSE2/tree/main/docs/notebooks
93+
94+
### Next steps
95+
96+
You will now want to configure the model for your own use case. You should start by looking at [the
97+
documentation for input files] for details of the different data types and parameters for MUSE2.
98+
99+
Unfortunately, this may not be easy, especially if you are not already familiar with [MUSE1]. In the
100+
longer term, [we will have tutorials][tutorial-issue], so watch this space! In the meantime, if you
101+
have a question, feel free to [open an issue].
102+
103+
[MUSE1]: https://github.com/EnergySystemsModellingLab/MUSE_OS
104+
[tutorial-issue]: https://github.com/EnergySystemsModellingLab/MUSE2/issues/921
105+
[open an issue]: https://github.com/EnergySystemsModellingLab/MUSE2/issues
7106

8-
### Visualising commodity graphs
107+
## Visualising commodity graphs
9108

10109
To visualise the structure of your model, you can use the [the `muse2 save-graphs` command] to
11110
create graphs of commodity/process relationships.

0 commit comments

Comments
 (0)