# Vector field visualization

**URL:** <https://forum.dynamobim.com/t/vector-field-visualization/26862>\
**Category:** Geometry\
**Created:** [October 5, 2018, 7:04am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862 "2018-10-05T07:04:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 5, 2018, 7:04am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/1 "2018-10-05T07:04:35Z")

</div>

Hello everyone,  
I was wondering have anyone tried to explore visualization of vector field like this below in dynamo inside 2d or 3d environment.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/4/14cfe8b50a609744307152ae49fc0772178ec8da.jpeg)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/e/2eb616d7b42dd76c85080fe2187f51f1563e1fd1.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/782ca343a91a39a0c560af1cf906ef43cf984faf.jpeg)  
I have found in this site tried to explore such patterns in grasshopper environment.  
[https://generativelandscapes.wordpress.com/category/vector-field/](https://generativelandscapes.wordpress.com/category/vector-field/)  
I am unable to figure it out relevant node in dynamo.  
Let me know if you have any idea.  
Thank you.

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [October 5, 2018, 7:32am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/2 "2018-10-05T07:32:56Z")

</div>

Hi,

What would be your initial input ?

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 5, 2018, 7:38am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/3 "2018-10-05T07:38:22Z")

</div>

i think like this.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fce93e3c45ecff1ed3adb2cf94e29432ce96ce6c.png)  
points on curves having direction.  
or it could be array of points and curves will be drawn later based on direction of each point.

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [October 5, 2018, 7:44am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/4 "2018-10-05T07:44:04Z")

</div>

> [@ROY](#):
>
> points on curves having direction.

So basically a list of vectors ?

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 5, 2018, 7:47am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/5 "2018-10-05T07:47:46Z")

</div>

yes exactly. a list of vectors and a list of correspondence points.  
points with directions.

---

<div class="post-metadata">

**Author:** ![GregX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gregx/32/56837_2.png) [@GregX](https://forum.dynamobim.com/u/GregX)\
**Post date:** [October 5, 2018, 1:31pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/6 "2018-10-05T13:31:35Z")

</div>

You could draw lines with the origin in the vector origin and set the length with a small unit

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 5, 2018, 6:09pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/7 "2018-10-05T18:09:07Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/a/dae3647b524e5e8b2afec89ec790821309f0cca8.png)  
I have progressed whit this so far.  
any ideas are welcome.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [October 5, 2018, 6:57pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/8 "2018-10-05T18:57:43Z")

</div>

@ROY See if this helps

 ![vectorField](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/7/67d13fe6978a82a088d8ef8ac2d3d36a10a02435.png)  
[vectorField.dyn](https://forum.dynamobim.com/uploads/short-url/ymV1z7SIUbeIjM8vwizFLGhawlW.dyn) (19.4 KB)

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 5, 2018, 7:54pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/9 "2018-10-05T19:54:35Z")

</div>

ita alot easier . Thanks!!!

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 6, 2018, 5:03am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/10 "2018-10-06T05:03:05Z")

</div>

Thanks @Vikram_Subbaiah but the problem is i need a output like this and its yet to figure it out. Rotation is partially doing the job for centre field but vectors far away from the influence point are suppose to be less rotated but if you see on left side the are rotated in to almost opposite direction. I believe there must be some function.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/b/6b3fbc42dd14ae53e68db62319300b6d1f5a0b98.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/37edd12196ec0d44a003a8c8bdf0e40309c86211.jpeg)

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [October 6, 2018, 3:18pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/11 "2018-10-06T15:18:03Z")

</div>

@ROY Seems like you’ll need equations and more.  
Below are a few attempts at generating basic vector field illustrations  
[vectorField.dyn](https://forum.dynamobim.com/uploads/short-url/tuRZDSSxGNzF6XRhivkAOgKn32V.dyn) (33.0 KB)

 ![vectorField1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d575e4d79a6515e99348b8c5358c9fd8acbba4f5.png)

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 8, 2018, 4:42am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/12 "2018-10-08T04:42:49Z")

</div>

@Vikram_Subbaiah thanks this is was i was looking for.

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [October 8, 2018, 7:47am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/13 "2018-10-08T07:47:50Z")

</div>

I’d suggest Structure Synth [http://structuresynth.sourceforge.net](http://structuresynth.sourceforge.net) or Fugu [https://bp.io/fugu/old/about.html](https://bp.io/fugu/old/about.html) (both no longer maintained) for procedural 3D graphics  
or Nodebox for simpler 2D vector graphics [https://www.nodebox.net](https://www.nodebox.net)

  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a47fa21ae81dd18adf571c12dfcf4a2ae02ac5f.jpeg)  
 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/9/c9e4e6d1a69e4e931b61526b06e6f8eb2cdbaa5d.jpeg)

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 8, 2018, 8:41am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/14 "2018-10-08T08:41:39Z")

</div>

thanks for these informations. Its completely new to me and it seems very interesting. I’ll check for more details.

---

<div class="post-metadata">

**Author:** ![ROY](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/roy/32/55244_2.png) [@ROY](https://forum.dynamobim.com/u/ROY)\
**Post date:** [October 8, 2018, 8:44am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/15 "2018-10-08T08:44:56Z")

</div>

i was searching further more for more operation on vector field and my findings are here.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/b/cb2bba1833239e8e661329981b935c87068a0c49.png) [vectorField.2.dyn](https://forum.dynamobim.com/uploads/short-url/oGT9KdozaajcLaGv0OyUNTp1Hmg.dyn) (21.9 KB)  
one more thing to ask, is there any way to draw curve along the vector direction. i know there is a node calls tangent at parameter but i think exact opposite node of this can do the job.

---

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [October 8, 2018, 10:57am UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/16 "2018-10-08T10:57:35Z")

</div>

I don’t know the existence of such a node, but mathematically, if you want to do such thing, you’ll have to solve an differential equation, or at least do this tiny step by tiny step.

> **[Streamlines, streaklines, and pathlines](https://en.wikipedia.org/wiki/Streamlines,_streaklines,_and_pathlines)**
>
> Streamlines, streaklines and pathlines are field lines in a fluid flow.
> They differ only when the flow changes with time, that is, when the flow is not steady.
> 
> Considering a velocity vector field in three-dimensional space in the framework of continuum mechanics, we have that:  
> By definition, different streamlines at the same instant in a flow do not intersect, because a fluid particle cannot have two different velocities at the same point. Similarly, streaklines cannot intersect themselves or...

> **[Euler method](https://en.wikipedia.org/wiki/Euler_method)**
>
> Euler's method is a numerical method to solve first order first degree differential equation with a given initial value. It is the most basic explicit method for numerical integration of ordinary differential equations and is the simplest Runge–Kutta method. The Euler method is named after Leonhard Euler, who treated it in his book Institutionum calculi integralis (published 1768–1870).
> The Euler method is a first-order method, which means that the local error (error per step) is proportional to...

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [January 13, 2022, 11:13pm UTC](https://forum.dynamobim.com/t/vector-field-visualization/26862/17 "2022-01-13T23:13:19Z")

</div>

I really enjoyed this thread 🕶

So I thought it’d be fun do do a ‘3D’ one and colour according to vector length.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/88d5cb2eeebfa95836d7867632b96d6724c2d299.png)

And with the points:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/1/31b59fb5106cd76cd307455fcaf4cbfc2022e750.png)
