# How to set Refinemet in SPHVolumeInterpolator in PvPython

**URL:** https://discourse.paraview.org/t/how-to-set-refinemet-in-sphvolumeinterpolator-in-pvpython/8245
**Category:** ParaView Support
**Created:** [October 23, 2021, 9:14am UTC](https://discourse.paraview.org/t/how-to-set-refinemet-in-sphvolumeinterpolator-in-pvpython/8245 "2021-10-23T09:14:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JOJO](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jojo/32/7423_2.png) [@JOJO](https://discourse.paraview.org/u/JOJO)
#### Post date: [October 23, 2021, 9:14am UTC](https://discourse.paraview.org/t/how-to-set-refinemet-in-sphvolumeinterpolator-in-pvpython/8245/1 "2021-10-23T09:14:09Z")

</div>

I found the volume refinement is important on SPHVolumeInterpolation. And I can set it easily in GUI. But I can not find this in both the guide and script tracer.

![image](https://discourse.paraview.org/uploads/default/original/2X/7/7aa1aa2989d17e5f8068ff20c8b2aef298d6403a.png)

Thus, I’d like to ask if there any functions in pvPyhon to set these parameters?  
Thanks

---

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [October 26, 2021, 2:59pm UTC](https://discourse.paraview.org/t/how-to-set-refinemet-in-sphvolumeinterpolator-in-pvpython/8245/2 "2021-10-26T14:59:28Z")

</div>

if “sPHVolumeInterpolator1” is your Python object in pvbatch/pvpython, then the resolution can be set like this:

sPHVolumeInterpolator1.Source.Resolution = [512,512,512]
