Difference between revisions of "Contrib foamCalcEx"

From OpenFOAMWiki
(Added grad)
(Usage: added scalarMultiply)
Line 7: Line 7:
 
== Usage ==  
 
== Usage ==  
  
The utility works the same way as the standard foamCalc tool, but accepts extra parameters (min, max, volIntegrate, average, grad):
+
The utility works the same way as the standard foamCalc tool, but accepts extra parameters (min, max, volIntegrate, average, grad, scalarMultiply):
  
 
<pre>
 
<pre>
Line 19: Line 19:
  
 
./foamCalcEx grad <fieldName> [-latestTime] [-time ranges]
 
./foamCalcEx grad <fieldName> [-latestTime] [-time ranges]
 +
 +
./foamCalcEx scalarMultiply <fieldName> -value <scalar_value> [-latestTime] [-time ranges]
 
</pre>
 
</pre>
  

Revision as of 13:04, 24 June 2013

Valid versions: OF Version 16x.png OF Version 16ext.png OF Version 20x.png

1 Short description

A patch to the foamCalc tool to enable some extra field operations such as min and max.

2 Usage

The utility works the same way as the standard foamCalc tool, but accepts extra parameters (min, max, volIntegrate, average, grad, scalarMultiply):

./foamCalcEx min <fieldName> [-latestTime] [-time ranges] 

./foamCalcEx max <fieldName> [-latestTime] [-time ranges]

./foamCalcEx volIntegrate <fieldName> [-latestTime] [-time ranges]

./foamCalcEx average <fieldName> [-latestTime] [-time ranges]

./foamCalcEx grad <fieldName> [-latestTime] [-time ranges]

./foamCalcEx scalarMultiply <fieldName> -value <scalar_value> [-latestTime] [-time ranges]

3 Download

Get the most recent version here: http://code.google.com/p/foamcalcex/

To install, run the following commands in a terminal window where you have loaded the OpenFOAM environment:

hg clone https://code.google.com/p/foamcalcex/
cd foamcalcex
./Allwmake

4 History

--Akidess (talk) 13:59, 2 October 2012 (CEST) Now runs on OF-1.6-ext

--Akidess 08:36, 10 January 2012 (CET)

--Akidess 09:38, 18 October 2011 (CEST)