# Need help with Scalar Distribution of Water Contamination on ParaView

**URL:** https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405
**Category:** In Situ Support
**Created:** [June 12, 2021, 6:39am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405 "2021-06-12T06:39:11Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ameeth\_Hariprasad](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameeth_hariprasad/32/6876_2.png) [@Ameeth\_Hariprasad](https://discourse.paraview.org/u/Ameeth_Hariprasad)
#### Post date: [June 12, 2021, 6:39am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/1 "2021-06-12T06:39:11Z")

</div>

Hi,  
I am working towards validating a Simscale-ParaView project:  
[https://www.simscale.com/projects/Ali\_Arafat/water\_purification\_process/](https://www.simscale.com/projects/Ali_Arafat/water_purification_process/)  
You can scroll down a bit in the link mentioned above for the explanation.

I have obtained the results until the velocity streamlines on ParaView, however I’m not able to get the scalar distribution of water contamination as done on ParaView in the project mentioned above despite much efforts. I would be grateful if you could help me out with the same.

Attached herewith is the expected output of the Scalar Distribution of Water Contamination to be obtained on ParaView.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/c9d26b45ae2016f07849d0d8081e3c86bad4ddd0.jpeg)

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 13, 2021, 4:49am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/2 "2021-06-13T04:49:37Z")

</div>

Hello,

The image appears to be using the Surface LIC plugin. In order to use Surface LIC, you need to load the plugin before loading the data.  
[https://www.paraview.org/Wiki/ParaView/Line\_Integral\_Convolution](https://www.paraview.org/Wiki/ParaView/Line_Integral_Convolution)

---

<div class="post-metadata">

### Author: ![Ameeth\_Hariprasad](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameeth_hariprasad/32/6876_2.png) [@Ameeth\_Hariprasad](https://discourse.paraview.org/u/Ameeth_Hariprasad)
#### Post date: [June 14, 2021, 1:58pm UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/3 "2021-06-14T13:58:23Z")

</div>

Hi,  
Thank you so much for the reply and the reference link, I have loaded the Surface LIC plugin on Local Plugins, but am unable able to load it on remote plugins, is it necessary to load it on both? I am unable to find Advanced Properties option as well.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/be205a034ec4866ef877a5d602c074b7fcf519a0.png)  
This what I have obtained, but I am not sure if this is the scalar distribution of water contamination on a different color scale. Could you please clarify regarding the same?

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 15, 2021, 12:15am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/4 "2021-06-15T00:15:13Z")

</div>

Hello,

If you are not in client/server mode, you can only need to load the Surface LIC plugin locally.  
And you may need to click the gear icon to show the Advanced Properties option.

> [@I can't find an option/parameter/control in a dialog, or tab (such as the Properties tab)](https://discourse.paraview.org/t/i-cant-find-an-option-parameter-control-in-a-dialog-or-tab-such-as-the-properties-tab/4512):
>
> Make sure to enable the advanced option by clicking on the gear icon: [2020-05-24-111301\_31x30\_scrot]

The image may be colored with the “SeedIds” variable, but isn’t there a “scalar” variable?

---

<div class="post-metadata">

### Author: ![Ameeth\_Hariprasad](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameeth_hariprasad/32/6876_2.png) [@Ameeth\_Hariprasad](https://discourse.paraview.org/u/Ameeth_Hariprasad)
#### Post date: [June 16, 2021, 2:42pm UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/5 "2021-06-16T14:42:26Z")

</div>

Hi,  
Thank you for the gear icon clarification, I have loaded the Surface LIC plugin locally. I don’t have a “scalar” variable but there is a passive scalar value of 0.7 which has been considered on Simscale before importing this file to ParaView. I am attaching an image to give you an overview as to the list of variables available to check through. Kindly let me know what can be done further to attain the scalar distribution. Thank you!

 ![Screenshot (1)](https://discourse.paraview.org/uploads/default/original/2X/7/7b56fb64439c5fc1ab03750de5508086cb58f9a6.png)

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 17, 2021, 12:56am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/6 "2021-06-17T00:56:32Z")

</div>

Hello,

I don’t know the details, but the ”scalar" variable seems to be converted from the value of T1 using the Calculator filter.

[https://www.simscale.com/projects/Ricardopg/passive\_scalar\_tests/](https://www.simscale.com/projects/Ricardopg/passive_scalar_tests/)

> **[Pollution exhaust in a garage](https://www.simscale.com/forum/t/pollution-exhaust-in-a-garage/85652)**
>
> Hi everyone, I am doing some practice on the following project (https://www.simscale.com/projects/vaibhav\_s/pollutant\_extraction\_from\_parking\_garage\_-\_editorial\_demo/) as I am planning to do something similar for my dissertation thesis and I have...

---

<div class="post-metadata">

### Author: ![Ameeth\_Hariprasad](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameeth_hariprasad/32/6876_2.png) [@Ameeth\_Hariprasad](https://discourse.paraview.org/u/Ameeth_Hariprasad)
#### Post date: [June 20, 2021, 3:07pm UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/7 "2021-06-20T15:07:19Z")

</div>

Hi @Kenichiro-Yoshimi ,  
Thank you for redirecting me to the forum, I went through these projects over the past few days and have requested for help on the forum link, however I haven’t been able to receive a reply yet. I am not able to work out a formula for T1 scalar to be input into the calculator in ParaView despite trying a lot as this seems to be a very specific case. In the project link mentioned above, it takes into account the parameters such as air density which is quite different from my project. Any ideas as to how I can go about this? I am trying to validate this project for my Undergraduate project, so any help at the earliest would be appreciated.  
Thank you!

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 20, 2021, 10:20pm UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/8 "2021-06-20T22:20:50Z")

</div>

Hello,

What happens if you simply convert the range of T1 values [T1\_min, T1\_max] to [0, 0.7] in the Calculator filter?

> 0.7\*(T1-T1\_min)/(T1\_max-T1\_min)

Or you could specify the following in **Expression** in the **Python Calculator** :

> 0.7\*(T1-min(T1))/(max(T1)-min(T1))

---

<div class="post-metadata">

### Author: ![Ameeth\_Hariprasad](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ameeth_hariprasad/32/6876_2.png) [@Ameeth\_Hariprasad](https://discourse.paraview.org/u/Ameeth_Hariprasad)
#### Post date: [June 21, 2021, 6:54pm UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/9 "2021-06-21T18:54:56Z")

</div>

Hi @Kenichiro-Yoshimi ,  
This is how T1 scalar look upon selection and I entered the formula in the calculator on the left but there was no visible difference in the T1 scalar. Am I missing out on something?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/b2499d0d8b98b9bb4f0cc81e270cf127b497c20a.png)  
model.

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 22, 2021, 5:42am UTC](https://discourse.paraview.org/t/need-help-with-scalar-distribution-of-water-contamination-on-paraview/7405/10 "2021-06-22T05:42:45Z")

</div>

Hello,

Have you tried the Python Calculator?  
Anyway, if the calculation results are wrong, there is nothing that ParaView can do.
