# Visualization using streamlines and contours

**URL:** https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729
**Category:** ParaView Support
**Created:** [November 11, 2022, 5:01pm UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729 "2022-11-11T17:01:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Subash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@Subash](https://discourse.paraview.org/u/Subash)
#### Post date: [November 11, 2022, 5:01pm UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729/1 "2022-11-11T17:01:06Z")

</div>

Hi, I have a magnetic field vector (Bx, By, and Bz) and a scalar flux function (PhiZ) that I am trying to visualize using paraview. I need streamlines of magnetic field as flux tubes and contours of PhiZ along the end planes.

I am able to make the flux tubes but the contour does not work. The contour filter was activated after using Glyph filter but no contours show up. Can someone help please? Here is the data file attached:

> **[Peiyun\_data.h5](https://drive.google.com/file/d/1oFB1oISxri9m54B6DtD27CX-0VFjwBFT/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [November 11, 2022, 8:27pm UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729/2 "2022-11-11T20:27:11Z")

</div>

Use the `Cell Data to Point Data` filter to convert the `PhiZ` field to point data. Then the contour filter will be available to contour it.

---

<div class="post-metadata">

### Author: ![Subash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@Subash](https://discourse.paraview.org/u/Subash)
#### Post date: [November 14, 2022, 1:28pm UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729/3 "2022-11-14T13:28:23Z")

</div>

Hi Kenneth, thank you for your reply. Yes, it worked and the contours are visible now.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [November 14, 2022, 4:08pm UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729/4 "2022-11-14T16:08:45Z")

</div>

I’m glad that works. One more thing to mention. If you need to contour cell data a lot, you can go to ParaView settings and turn on the `Auto Convert Properties`, then ParaView will allow you to run filters like `Contour` directly on cell data like yours. It basically will run `Cell Data to Point Data` internally for you.

 ![Screen Shot 2022-11-14 at 10.04.10 AM](https://discourse.paraview.org/uploads/default/original/2X/e/e6be53a2ca6118eed3baf5773927100354390cbf.jpeg)

If you are wondering why ParaView does not have this option all the time, it is because the operation of converting cell data to point data has the effect of smoothing the data a bit. Because there is this side effect on your data, ParaView won’t do it unless you explicitly ask.

---

<div class="post-metadata">

### Author: ![Subash](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@Subash](https://discourse.paraview.org/u/Subash)
#### Post date: [November 16, 2022, 1:46am UTC](https://discourse.paraview.org/t/visualization-using-streamlines-and-contours/10729/5 "2022-11-16T01:46:19Z")

</div>

Hi Kenneth, this is very useful information for someone like me who is new to paraview. Thanks a ton.
