CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

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 Display Modes
Old   October 10, 2013, 10:50
Default Problem with "R" and "uPrime2Mean"
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 18:27
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 03:31
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 15:11
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,516
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 04:03
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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: 6
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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