CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Problem with "R" and "uPrime2Mean"

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By samiam1000
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2013, 11:50
Default Problem with "R" and "uPrime2Mean"
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
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
Ria likes this.
samiam1000 is offline   Reply With Quote

Old   October 11, 2013, 19:27
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Samuele,

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
__________________
wyldckat is offline   Reply With Quote

Old   October 12, 2013, 04:31
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   October 12, 2013, 16:11
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 and babakflame like this.
__________________
wyldckat is offline   Reply With Quote

Old   October 14, 2013, 05:03
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   February 7, 2014, 06:58
Default
  #6
New Member
 
Namsu
Join Date: Jun 2011
Location: Neubiberg 85579, Munich, Germany
Posts: 4
Rep Power: 14
Usman15 is on a distinguished road
Thanks Bruno, I was facing the same problem but I have got able to fix it with your help. It worked like you said.
Usman15 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UPrime2Mean calculation of Reynolds stresses MarijaB OpenFOAM Post-Processing 0 June 15, 2018 21:19
[OpenFOAM] Problem with UPrime2Mean in Paraview lcbuijs ParaView 1 August 11, 2015 06:36
Sample utility problems msrinath80 OpenFOAM Running, Solving & CFD 12 December 21, 2012 06:51
Problems sampling UPrime2Mean leonardo.morita OpenFOAM Post-Processing 5 May 10, 2012 05:36
Problem with channeloodles and foamToVTK farbfilm OpenFOAM Running, Solving & CFD 0 October 31, 2008 06:28


All times are GMT -4. The time now is 11:49.