# Create a sub-grid inside a box around a point moving inside the box

**URL:** https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024
**Category:** ParaView Support
**Created:** [April 10, 2020, 1:55pm UTC](https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024 "2020-04-10T13:55:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![drudox00](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/a5b964/32.png) [@drudox00](https://discourse.paraview.org/u/drudox00)
#### Post date: [April 10, 2020, 1:55pm UTC](https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024/1 "2020-04-10T13:55:43Z")

</div>

Hi All I would ask you if you know if there is the possibility to generate inside a 256x256x256cell fluid domain one subgrid let say wit 200 points for direction correspondin to 5 cell of the main cube, around a data point present inside the box that moving during timestep … and of course this subgrid with 200points corresponding to 5 cell of the oriinal cube interpolate the value given by the main box

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 14, 2020, 5:39am UTC](https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024/2 "2020-04-14T05:39:58Z")

</div>

Sounds highly specific.

May be doable with a ProgrammableFIlter or, of course, a C++ VTK Filter plugin.

---

<div class="post-metadata">

### Author: ![drudox00](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/a5b964/32.png) [@drudox00](https://discourse.paraview.org/u/drudox00)
#### Post date: [April 14, 2020, 7:26am UTC](https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024/3 "2020-04-14T07:26:14Z")

</div>

Any Idea about Programmable Filter ? maybe just the pseudo code …  
I neve used C++ VTK Filter plugin, I’m using C++ for implement models in openFoam

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 15, 2020, 5:09am UTC](https://discourse.paraview.org/t/create-a-sub-grid-inside-a-box-around-a-point-moving-inside-the-box/4024/4 "2020-04-15T05:09:40Z")

</div>

[https://www.paraview.org/Wiki/Python\_Programmable\_Filter](https://www.paraview.org/Wiki/Python_Programmable_Filter)
