|
[Sponsors] |
July 27, 2012, 10:32 |
foamCalc addSubtract
|
#1 |
New Member
Join Date: May 2012
Posts: 2
Rep Power: 0 |
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!! |
|
July 30, 2012, 03:21 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
The correct syntax would be something like
Code:
foamCalc addSubtract UL subtract -field ULmean -resultName ULfluct 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 |
|
August 3, 2012, 18:19 |
|
#3 |
New Member
Join Date: May 2012
Posts: 2
Rep Power: 0 |
Thank you Bernard I have tried your second solution and it works.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foamCalc and chtMultiRegion | sixwp | OpenFOAM Programming & Development | 1 | March 20, 2014 14:03 |
FoamCalc writing a new function wakeField | markc | OpenFOAM Post-Processing | 5 | December 24, 2008 05:09 |
[OpenFOAM] Ucomponents utility not found | ep4 | ParaView | 1 | November 28, 2008 04:45 |