|
[Sponsors] |
Today, 04:38 |
Custom function object
|
#1 |
Member
Giorgio
Join Date: Mar 2023
Posts: 49
Rep Power: 3 |
Dear all,
I am using Openfoam 2312. I am trying to develop a custom function object that compute a linear combination of an area average (at runtime). Seems complicated but it is just computing something like Output = (0.9-Area_average)/(0.9-0.5) where Area_average can be computed with the function object "surfaceFieldValue". In other words, I want to apply an expression to the output of a function object before printing. I know that I could compile a new function object but I guess there is a simpler approach? Moreover I need it for just one test case. Thanks in advance Last edited by giorgianig; Today at 06:43. |
|
Today, 07:24 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,210
Rep Power: 28 |
Hello Giorgio,
It looks like a job for the exprField function object! https://doc.openfoam.com/2312/tools/...eld/exprField/ Cheers, Yan |
|
Today, 08:18 |
|
#3 | |
Member
Giorgio
Join Date: Mar 2023
Posts: 49
Rep Power: 3 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in enabling the python wrapper | Jinn | SU2 Installation | 2 | April 23, 2022 14:52 |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
Custom field function object from wallHeatFlux | HorstvanGrass | OpenFOAM Post-Processing | 1 | August 3, 2021 13:28 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |