# Problem with Calculator

**URL:** https://discourse.paraview.org/t/problem-with-calculator/13944
**Category:** ParaView Support
**Created:** [February 14, 2024, 7:23pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944 "2024-02-14T19:23:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Roland01](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Roland01](https://discourse.paraview.org/u/Roland01)
#### Post date: [February 14, 2024, 7:23pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/1 "2024-02-14T19:23:00Z")

</div>

Hi,  
For postprocessing results coming from Elmer I use Paraview 5.5.2 which generally works very well on my Windows 10 PC.  
But for the results of a multiphysics Elmer model which couples Electromagnetics, Heat transfer and Fluid mechanics I have following problem :  
I want to plot the Contours of CoordsX\*Potential\_re, meaning the scalar product of the horizontal x coordinates by the real part of the z component of the vector potential, for getting the magnetic induction field lines (this is more precise than plotting the magnetic streamlines with the stream tracer). When doing this I get an error message as showed in the following screenshot.

 ![ScreenShot](https://discourse.paraview.org/uploads/default/original/2X/5/5dc3e784f87b8cd8a7bfcc96db6aed5fd778f595.jpeg)  
It would be very nice if somebody could bring me some help about how to fix this problem.  
Thanks in advance for any help!  
Roland

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 14, 2024, 11:58pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/2 "2024-02-14T23:58:08Z")

</div>

Hi @Roland1.

At first glance it looks like your “potential re” is missing the underscore. Make sure that name is right. If it does have a space, put the name in quotes - I’m not sure if this works in ParaView 5.5.2, but it does in current versions.

If everything looks fine there, could you click on `case_t0005.vtu` and then click on the Information tab just below the Pipeline Browser? Make sure the data array names and ranges are shown clearly in the screenshot.

You could also attach a file if it is small enough and if are allowed to share the data.

---

<div class="post-metadata">

### Author: ![Roland01](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Roland01](https://discourse.paraview.org/u/Roland01)
#### Post date: [February 15, 2024, 1:11pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/3 "2024-02-15T13:11:58Z")

</div>

Hi,  
Thanks for your quick anwer and help.  
As you suggested it I first checked the information tab and see that potential re is correctly identified (potential re means the real part of the z component of the vector potential). Then I put potential re in quotes but it does not work and shows again the error message.  
At last I tried the calculation with Paraview 5.12 but it does not work either, and I also noticed that an animation (with several time steps, meaning with several case\_t0001.vtu, case\_t0002.vtu, etc… files) takes much more time with the 5.12 version than with the 5.5 version. This is why I prefer to keep this 5.5 version for the moment.  
As you suggest it I upload here attached the case\_t0005.vtu file so that you could perhaps check all this and try to help me to fix this problem.  
Many thanks  
[case\_t0005.vtu](https://discourse.paraview.org/uploads/short-url/nlgajR7O6aBuyUi5w6iNMfVJgR1.vtu) (807.0 KB)

---

<div class="post-metadata">

### Author: ![Roland01](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Roland01](https://discourse.paraview.org/u/Roland01)
#### Post date: [February 16, 2024, 11:14am UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/4 "2024-02-16T11:14:15Z")

</div>

Hi, concerning this scalars multiplication with the calculator which does not work with the Paraview 5.5 version, after trying the v5.10 version this multiplication works well. But as I noticed it also with the v5.12 version the animation of a time dependant model is much slower than with the v5.5 version.  
So how could it be possible to speed up an animation in the 5.10 (or upper) version? Is there a setting for doing this?  
Thanks for any help

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 16, 2024, 5:28pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/5 "2024-02-16T17:28:09Z")

</div>

When you say “animation” do you mean playing through the time series on repeat? If that’s the case, one way to speed up animations after the first run through of the time series is to enable **Cache Geometry for Animation** option in the General settings (Edit menu → Settings).

---

<div class="post-metadata">

### Author: ![Roland01](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@Roland01](https://discourse.paraview.org/u/Roland01)
#### Post date: [February 16, 2024, 6:11pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/6 "2024-02-16T18:11:15Z")

</div>

Hi,  
Yes I mean playing through the time series.  
Finally I installed Paraview v5.7 and everything works well, meaning both the scalars product calculation and the fast animation speed. But in this version I didn’t find your mentionned setting “Cache Geometry for Animation”. Is this setting perhaps only available in upper versions?  
Thanks for your help

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 16, 2024, 8:24pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/7 "2024-02-16T20:24:06Z")

</div>

> [@Roland01](#):
>
> But in this version I didn’t find your mentionned setting “Cache Geometry for Animation”. Is this setting perhaps only available in upper versions?

I just checked in 5.7 and it is in the General settings (Preferences on macOS). It is an “advanced” option, so you need to either click on the gear icon to the right of the search field or type some text like “Cache” in the search bar to see it.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 19, 2024, 2:51pm UTC](https://discourse.paraview.org/t/problem-with-calculator/13944/8 "2024-02-19T14:51:13Z")

</div>

2 posts were split to a new topic: [Increase line thickness](https://discourse.paraview.org/t/increase-line-thickness/13964)
