# Flow "in" a Klein bottle

**URL:** <https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475>\
**Category:** Visualization\
**Created:** [November 13, 2018, 3:16pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475 "2018-11-13T15:16:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [November 13, 2018, 3:16pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475/1 "2018-11-13T15:16:22Z")

</div>

Can we make something like this?

[![](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e41c58c2bcf732d0b2bd260055284d9dedad135.jpeg "klein bottle fluid simulation") ](https://www.youtube.com/watch?v=Li7F9qbInVg)

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [November 13, 2018, 5:43pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475/2 "2018-11-13T17:43:56Z")

</div>

I nan’t really help. However I would first add the Makie package [GitHub - JuliaPlots/Makie.jl: High level plotting on the GPU.](https://github.com/JuliaPlots/Makie.jl)  
Then try to get it to read a mesh file for the Klein bottle itself [https://www.yobi3d.com/q/3d-model-Klein-bottle](https://www.yobi3d.com/q/3d-model-Klein-bottle)

The fluid there looks like an SPH simulation [http://cfd.mace.manchester.ac.uk/sph/SPH\_2day\_Course\_Manchester\_2018.pdf](http://cfd.mace.manchester.ac.uk/sph/SPH_2day_Course_Manchester_2018.pdf)  
Someone has written a bit of code, but it is three years old  
[https://github.com/LarsZondag/SPH/blob/master/code/julia/main.jl](https://github.com/LarsZondag/SPH/blob/master/code/julia/main.jl)

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 13, 2018, 5:49pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475/3 "2018-11-13T17:49:56Z")

</div>

It would be very useful to put a bit more “meat” on a question like this. Do you mean if there is an existing package where you can just define some geometry and get raytraced visualizations of fluid flows? Probably not. Do you mean that the julia language has the capability of doing the necessary computations to generate a movie like this. Most definitely. Do you mean what is the best current package to do visualizations like this in general? Etc etc.

---

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [November 13, 2018, 6:07pm UTC](https://discourse.julialang.org/t/flow-in-a-klein-bottle/17475/4 "2018-11-13T18:07:04Z")

</div>

I am wondering “do we have the package infrastructure to accomplish this, currently?”  
If so, which cooperation of packages is most appropriate / most flexible in this context?  
If not, what facilities are required that are not yet ready for prime-time (or unavailable now)?

I found JuliaIO/MeshIO.jl – looks good to me for reading/writing 3D meshes.
