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

Expressions inside functionobjects

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2025, 04:42
Default Expressions inside functionobjects
  #1
Member
 
Andy
Join Date: Jul 2017
Posts: 63
Rep Power: 10
Starcatcher is on a distinguished road
Hi folks,
I am using the OF2412 and I ouwld like tp write out special postprocessing logs for which there are not prepared function objects. For example when simulationg with pimpleFoam the Head at the outlet of a pump would be calculated as:
(p+U^2/2)/9.81


Online, I did find some hints, that functionObjects such as "type surfaceFieldValue" can process expressions, but no full information, which would guide me.

Maybe someone can provide an example of such a function object.
Otherwise I have to conitue using "type coded;" function object which is not very handy.

Thank you
Starcatcher is offline   Reply With Quote

Old   October 17, 2025, 06:21
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,347
Rep Power: 32
Yann will become famous soon enoughYann will become famous soon enough
Hello,

The exprField function object should do the job!
https://doc.openfoam.com/2312/tools/...eld/exprField/

Cheers,
Yann
Yann is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Difference Between UDF and Expressions in Thermal Comfort Evaluation? danisnug FLUENT 7 April 11, 2023 05:59
[snappyHexMesh] snappyHexMesh not deleting the inside cells Bdew8556 OpenFOAM Meshing & Mesh Conversion 9 May 14, 2019 11:53
regarding simulation of heat and mass transfer inside thermosyphon 1757003@kiit.ac.in ANSYS 1 May 14, 2019 03:06
[snappyHexMesh] Inside and outside mesh with snappyhexmesh nzy102 OpenFOAM Meshing & Mesh Conversion 21 February 16, 2016 17:42
How to determine a point is inside a tetrahedral? G.P. Xia Main CFD Forum 16 January 12, 2000 12:15


All times are GMT -4. The time now is 01:32.