CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

foamCalc addSubtract

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2012, 09:32
Default foamCalc addSubtract
  #1
New Member
 
Join Date: May 2012
Posts: 2
Rep Power: 0
jclement is on a distinguished road
Dear Foamers,

I am new to OpenFoam and would like to realize a substract between two vector fields.
I have tried to use foamCalc but without success:

"foamCalc addSubtract UL ULMean"Create time

Create mesh for time = 0



--> FOAM FATAL ERROR:
Invalid calcMode: ULMean
Valid calcModes are add and subtract


From function calcTypes::addSubtract:reCalc
in file basic/addSubtract/addSubtract.C at line 229.

FOAM exiting

If someone have a idea it would be great.

my goal is to calculate the RMS vorticity fluctuation,is somebody know how to do it?

thank you for your help!!
jclement is offline   Reply With Quote

Old   July 30, 2012, 02:21
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
The correct syntax would be something like
Code:
foamCalc addSubtract UL subtract -field ULmean -resultName ULfluct
or something like that.

A better way to calculate the RMS values, may be to use function objects during runtime: http://www.cfd-online.com/Forums/ope...ldaverage.html
HakikiCanakkaleli likes this.
Bernhard is offline   Reply With Quote

Old   August 3, 2012, 17:19
Default
  #3
New Member
 
Join Date: May 2012
Posts: 2
Rep Power: 0
jclement is on a distinguished road
Thank you Bernard I have tried your second solution and it works.
jclement is offline   Reply With Quote

Reply


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
foamCalc and chtMultiRegion sixwp OpenFOAM Programming & Development 1 March 20, 2014 13:03
FoamCalc writing a new function wakeField markc OpenFOAM Post-Processing 5 December 24, 2008 04:09
[OpenFOAM] Ucomponents utility not found ep4 ParaView 1 November 28, 2008 03:45


All times are GMT -4. The time now is 07:03.