|
[Sponsors] |
April 9, 2020, 12:58 |
What does the "add" function object do?
|
#1 |
Senior Member
|
Hello all,
The topic title says it all! What does the new "add" function object do? In the user guide it says: Code:
Add a list of fields. Not even a single tutorial on this. Code:
cd $FOAM_TUTORIALS grep -r "type" | grep "add" Stay healthy, Mojtaba
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
April 9, 2020, 14:04 |
|
#2 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Hi,
The header description usually contains a simple example: Code:
The operation can be applied to any volume or surface fields generating a volume or surface scalar field. Example of function object specification: \verbatim Ttot { type add; libs ("libfieldFunctionObjects.so"); fields (T Tdelta); result Ttot; executeControl writeTime; writeControl writeTime; } \endverbatim Regards, D. Khazaei |
|
April 9, 2020, 14:13 |
|
#3 | |
Senior Member
|
Quote:
Thank you Dan! You are right, I forgot about the .H source files. Cheers!
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||
April 9, 2020, 14:13 |
|
#4 |
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 12 |
You need a configuration file in the system directory, like this:
https://github.com/OpenFOAM/OpenFOAM...ing/fields/add change the <field names> to T T and then: Code:
postProcess -func add -fields '(T T)' From my experience, this functionObject cannot use in the OpenFOAM compiled by Icc.
__________________
https://openfoam.top |
|
April 9, 2020, 14:35 |
|
#5 | |
Senior Member
|
Quote:
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 11:04 |
foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 121 | June 11, 2021 10:05 |
How to create a function object in OpenFoam that runs properly ? | mkhm | OpenFOAM Programming & Development | 1 | October 20, 2018 16:16 |
[blockMesh] Errors during blockMesh meshing | Madeleine P. Vincent | OpenFOAM Meshing & Mesh Conversion | 51 | May 30, 2016 10:51 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |