# Reaction Diffusion Python Script

**URL:** <https://discourse.mcneel.com/t/reaction-diffusion-python-script/90480>\
**Category:** Grasshopper\
**Created:** [October 15, 2019, 5:43pm UTC](https://discourse.mcneel.com/t/reaction-diffusion-python-script/90480 "2019-10-15T17:43:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [October 15, 2019, 7:51pm UTC](https://discourse.mcneel.com/t/reaction-diffusion-python-script/90480/2 "2019-10-15T19:51:13Z")

</div>

You put a multiplication instead of addtion  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/3/4/34c81870d98daa77123599c2a11b462a99b36399.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/e/2ee563965e14ffd9b9a52189afd3c39ee6c3a00f.jpeg)

Good exercice but super long.  
You could also look here  
[https://www.grasshopper3d.com/forum/topics/2d-reaction-diffusion-to-3d](https://www.grasshopper3d.com/forum/topics/2d-reaction-diffusion-to-3d)  
[https://www.grasshopper3d.com/forum/topics/reaction-diffusion-on-triangular-mesh](https://www.grasshopper3d.com/forum/topics/reaction-diffusion-on-triangular-mesh)  
Or a very fast

> [@Fast Gray-Scott reaction-diffusion C# component using Alea for GPU computation](https://discourse.mcneel.com/t/fast-gray-scott-reaction-diffusion-c-component-using-alea-for-gpu-computation/78786):
>
> I wrote a component that computes reaction-diffusion like this, [Reaction-Diffusion Tutorial](http://www.karlsims.com/rd.html), on a mesh. It builds on Vicente Soler and Laurent Delrieu’s work here [reaction diffusion on triangular mesh - Grasshopper](https://www.grasshopper3d.com/forum/topics/reaction-diffusion-on-triangular-mesh) . Thanks guys! I extended the inputs to take either a single value, or one for each mesh vertex, so f, k etc. can vary over the mesh just as the dir input for flow direction already does. I used Alea 3.0.4, [http://www.aleagpu.com/release/3\_0\_4/doc/](http://www.aleagpu.com/release/3_0_4/doc/), to do the computation on the …

---

_[View the full topic](https://discourse.mcneel.com/t/reaction-diffusion-python-script/90480)._
