CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Problem with "R" and "uPrime2Mean" (http://www.cfd-online.com/Forums/openfoam-paraview/124673-problem-r-uprime2mean.html)

samiam1000 October 10, 2013 10:50

Problem with "R" and "uPrime2Mean"
 
Dear Foamers,

I have the simpleFoam solution of a channel. I postprocessed the results calculating R (see here) but I can't `use the results'.
I mean: I can visualize them in paraFoam, but when I try to use them in the calculator, I get this error:
Code:

ERROR: In /home/zampini/OpenFOAM/ThirdParty-2.2.0/ParaView-3.12.0/VTK/Common/vtkFunctionParser.cxx, line 1480
vtkFunctionParser (0xc6ac050): Syntax error: operator expected;  see position 3


ERROR: In /home/zampini/OpenFOAM/ThirdParty-2.2.0/ParaView-3.12.0/VTK/Common/vtkFunctionParser.cxx, line 1480
vtkFunctionParser (0xc6ac050): Syntax error: operator expected;  see position 3


Warning: In /home/zampini/OpenFOAM/ThirdParty-2.2.0/ParaView-3.12.0/VTK/Graphics/vtkArrayCalculator.cxx, line 401
vtkPVArrayCalculator (0xc684df0): An error occured when parsing the calculator's function.  See previous errors.

Do you have an idea?

Thanks a lot,
Samuele

wyldckat October 11, 2013 18:27

Greetings Samuele,

:confused: Could you please describe the steps you've taken on ParaView/paraFoam and the expression used in the calculator?

In addition, are you using point data or cell data?

Best regards,
Bruno

samiam1000 October 12, 2013 03:31

Dear Bruno,

thanks for answering, first.

So, the steps that I do are the following:

1. I run my simulation on a channel flow and everything seems to be good (e.g. referring our results to the *famous* KMM's results).
2. I run the command "R" in OpenFOAM, in order to post-process the results.
3. I open paraFoam and I load my case.
4. I apply the calculator filter and I can manage all the variable except the R tensor.
5. If I try to use R in the calculator I get the error message posted below, both with cellData and pointData.

Thanks a lot for help.

Samuele

wyldckat October 12, 2013 15:11

Hi Samuele,

It's a bug in ParaView 3.12.0. It works fine with ParaView 4.0.1.

But don't worry, with OpenFOAM you can extract the components of the symmetric tensor "R" into separate scalar fields, by running:
Code:

foamCalc components R
It will get you the component fields "0/Rxx", "0/Ryy" and so on.

Best regards,
Bruno

samiam1000 October 14, 2013 04:03

Hi Bruno and thanks for answering: I'll try this and I'll let you know if this works fine for my case. I guess yes.

Thanks a lot,
Samuele

Usman15 February 7, 2014 06:58

Thanks Bruno, I was facing the same problem but I have got able to fix it with your help. It worked like you said.


All times are GMT -4. The time now is 02:08.