# Julia in fusion research

**URL:** https://discourse.julialang.org/t/julia-in-fusion-research/26460
**Category:** Numerics
**Created:** [July 17, 2019, 10:59am UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460 "2019-07-17T10:59:11Z")
**Posts on this page:** 11
**Page:** 1

<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: [July 17, 2019, 10:59am UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/1 "2019-07-17T10:59:11Z")

</div>

Following on fromn the discussion on PIC codes. Is there much activity in using Julia for fusion and plasma simulations? Any pointers gratefully received.

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [July 17, 2019, 2:52pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/2 "2019-07-17T14:52:55Z")

</div>

Slightly off topic, here’s a recent paper that is very interesting. They 'black box optimized and tripled yield.

[https://www.nature.com/articles/s41586-019-0877-0.pdf](https://www.nature.com/articles/s41586-019-0877-0.pdf)

---

<div class="post-metadata">

### Author: ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)
#### Post date: [July 17, 2019, 5:29pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/3 "2019-07-17T17:29:06Z")

</div>

Not to my knowledge–people might be playing with toy programs on single nodes, but the language hasn’t been stable for long enough to get buy-in to build a full radiation hydro code with a lifespan of 15-30 years. The nuts & bolts C++/Fortran approach still dominates. The ability to easily extend kernels to GPUs might be a killer feature considering the hardware of Summit/Sierra, but it’s a lot less work to write a specialized GPU kernel for a hot loop in the same low-level language as the rest of the hydrocode than it is to build a new code from scratch in Julia, fleshing out the language’s HPC bones along the way.

---

<div class="post-metadata">

### Author: ![lstagner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lstagner/32/448_2.png) [@lstagner](https://discourse.julialang.org/u/lstagner)
#### Post date: [July 17, 2019, 5:43pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/4 "2019-07-17T17:43:54Z")

</div>

I’m a fusion researcher and I use Julia as my primary programming language. I started the [JuliaFusion Organization](https://github.com/JuliaFusion) a while back but, for the moment, none of the packages are registered (I’m waiting for the v1.2 release) and they are only used for my own research.

---

<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: [July 17, 2019, 6:10pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/5 "2019-07-17T18:10:29Z")

</div>

Thankyou all. I am talking to the UK fusion research centre tomorrow. All responses are very helpful.

---

<div class="post-metadata">

### Author: ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)
#### Post date: [July 17, 2019, 6:51pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/6 "2019-07-17T18:51:57Z")

</div>

I built a 0-D fusion systems code with Jeff Freidberg for my masters [thesis](http://git.io/segal_masters):

[https://github.com/djsegal/Fussy.jl](https://github.com/djsegal/Fussy.jl)

Haven’t updated it to Julia v1+ though, so YMMV…

// notebooks can be found: [here](https://github.com/djsegal/fussy-binder)

---

<div class="post-metadata">

### Author: ![lamorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lamorton/32/21115_2.png) [@lamorton](https://discourse.julialang.org/u/lamorton)
#### Post date: [June 17, 2021, 9:49pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/7 "2021-06-17T21:49:02Z")

</div>

The University of Wisconsin stellarator research group is using Julia: [WISTELL · GitLab](https://gitlab.com/wistell)

---

<div class="post-metadata">

### Author: ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)
#### Post date: [August 4, 2021, 1:16am UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/8 "2021-08-04T01:16:31Z")

</div>

Thats pretty cool!

We wrote a paper on 0-D tokamak design [[segal & freidberg](https://iopscience.iop.org/article/10.1088/1741-4326/abe0d2/meta)] using Julia

// have been interested in expanding it to stellarators 🙂

* * *

**edit:** also im a former badger! hope the terrace is nice this summer

---

<div class="post-metadata">

### Author: ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)
#### Post date: [August 4, 2021, 3:46am UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/9 "2021-08-04T03:46:24Z")

</div>

Yeah, there’s a healthy Julia contingent at Madison with package development by groups in stats, system bio, optimization, and fusion (that I know of). We should’ve done a meetup at the Terrace during JuliaCon!

---

<div class="post-metadata">

### Author: ![rkube](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rkube/32/211198_2.png) [@rkube](https://discourse.julialang.org/u/rkube)
#### Post date: [October 21, 2021, 12:36pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/10 "2021-10-21T12:36:08Z")

</div>

I’ve implemented a simple PIC code in Julia, but it’s more a side-project.  
[https://github.com/rkube/picfun](https://github.com/rkube/picfun)

---

<div class="post-metadata">

### Author: ![rkube](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rkube/32/211198_2.png) [@rkube](https://discourse.julialang.org/u/rkube)
#### Post date: [October 21, 2021, 1:18pm UTC](https://discourse.julialang.org/t/julia-in-fusion-research/26460/11 "2021-10-21T13:18:56Z")

</div>

I would be interested in a Julia in fusion energy meeting. Anyone else?
