# Package to Plot Physical System in Julia

**URL:** <https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470>\
**Category:** General Usage\
**Tags:** package\
**Created:** [September 19, 2022, 2:36pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470 "2022-09-19T14:36:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [September 19, 2022, 2:36pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/1 "2022-09-19T14:36:56Z")

</div>

Hi all,

I want to know whether there are package that can create this physical system below, or similar, (you can suggest something outside Julia, if there is no such package).

![Capture d’écran_2022-09-19_21-34-37](https://global.discourse-cdn.com/julialang/original/3X/e/4/e4eee9400e511ccee3dbe3cd1008284cc8658ee3.png)

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [September 19, 2022, 2:47pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/2 "2022-09-19T14:47:33Z")

</div>

Are you looking for a package that

- Draws diagrams like in the picture?
- Simulates the system and plots the trajectories?
- Has a GUI to build a model of such a system?

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [September 19, 2022, 3:00pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/3 "2022-09-19T15:00:49Z")

</div>

For the answer:

- Draws diagrams like in the picture? **yes**

- Simulates the system and plots the trajectories? **if possible yes too for this**

- Has a GUI to build a model of such a system? **I think GUI is too much, I still love to learn raw coding.**

Please don’t tell me the answer for all the above are MATLAB.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [September 19, 2022, 4:00pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/4 "2022-09-19T16:00:03Z")

</div>

For drawing diagrams, check out  
[https://bauglir.github.io/Kroki.jl/stable/](https://bauglir.github.io/Kroki.jl/stable/)  
maybe it has something you could make use of.

For simulating the system, which is linear, you could use

1. OrdinaryDiffEq.jl directly
2. Create the transfer function in ControlSystemsBase.jl and call `lsim`
3. Model the system in ModelingToolkit.jl, possibly using components from ModelingToolkitStandardLibrary.Rotational (translational is not yet merged, but rotational should be mostly equivalent for many purposes).

The GUI question does not yet have a Julia answer.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 19, 2022, 6:51pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/5 "2022-09-19T18:51:17Z")

</div>

For drawing I would suggest [https://www.diagrams.net/](https://www.diagrams.net/) (not related to Julia)…

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [September 19, 2022, 6:52pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470/6 "2022-09-19T18:52:39Z")

</div>

For modelling and simulation of physical systems you could also try [GitHub - ModiaSim/Modia.jl: Modeling and simulation of multidomain engineering systems](https://github.com/ModiaSim/Modia.jl) .
