# How to have more examples for ModelingToolkit Standard Library?

**URL:** https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879
**Category:** Modelling & Simulations
**Tags:** package, modelingtoolkit
**Created:** [April 9, 2025, 8:44am UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879 "2025-04-09T08:44:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Matthew1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matthew1/32/215134_2.png) [@Matthew1](https://discourse.julialang.org/u/Matthew1)
#### Post date: [April 9, 2025, 8:44am UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/1 "2025-04-09T08:44:02Z")

</div>

It would be really great if there are more examples in the MTSL docs. I see that there are already some great ‘examples’ in the tests. However, most potential users won’t navigate to the tests. Also, if the goal is to replicate the Modelica Standard Library (MSL), they have multiple examples per domain (fluid, electrical, etc.). I would like to contribute some examples (copy from tests and MSL examples), but the docs would need to be configured to allow this. Any advice on how to do this would be much appreciated.

I know there is already the ‘tutorials’ section on the index of the docs, but it would not make sense to have too many here.

---

<div class="post-metadata">

### Author: ![Bart\_van\_de\_Lint](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bart_van_de_lint/32/212161_2.png) [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)
#### Post date: [April 9, 2025, 11:03am UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/3 "2025-04-09T11:03:43Z")

</div>

I agree, it would be great if ModelingToolkit would have more examples and tutorials in the docs in general, not just in the Standard Library.

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [April 9, 2025, 4:26pm UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/4 "2025-04-09T16:26:56Z")

</div>

The docs could have a lot more examples. Our plan is to get a lot of examples into the examples section, and then ultimately redesign the docs to give the examples a better display like [Tutorials | Lux.jl Docs](https://lux.csail.mit.edu/stable/tutorials/). But first we need to build the set of examples to display (and the docs restructure will probably wait for MTK v10 which should simplify a lot of the internals and delete half of the code, so the docs will simplify a lot giving more space for examples)

---

<div class="post-metadata">

### Author: ![Matthew1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/matthew1/32/215134_2.png) [@Matthew1](https://discourse.julialang.org/u/Matthew1)
#### Post date: [April 9, 2025, 5:47pm UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/5 "2025-04-09T17:47:24Z")

</div>

Are we referring to MTK docs or std lib docs? I was referring specifically to std lib docs.

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [April 9, 2025, 5:52pm UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/6 "2025-04-09T17:52:30Z")

</div>

Kind of both. The MTK standard lib docs are missing the examples section right now 🤷. Just needs work.

---

<div class="post-metadata">

### Author: ![Bart\_van\_de\_Lint](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bart_van_de_lint/32/212161_2.png) [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)
#### Post date: [April 9, 2025, 7:40pm UTC](https://discourse.julialang.org/t/how-to-have-more-examples-for-modelingtoolkit-standard-library/127879/7 "2025-04-09T19:40:25Z")

</div>

Good to hear!
