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

Volume average of variable over piece of entire domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2024, 07:34
Default Volume average of variable over piece of entire domain
  #1
New Member
 
Join Date: Jul 2024
Posts: 4
Rep Power: 2
pchris22 is on a distinguished road
Hey guys,

I have set up my simulation using cfmesh as a mesher and simpleFoam as my solver. My simulation run well and that is not my issue. I would like to make a function which should do a volume average of k (turbulent kinetic energy) for each interaction in a certain part of my hole domain. It would be a cuboid where I know the coordinates of the corners.

If you could help me it would be of great help. Thanks

Kind regards,
pchris22
pchris22 is offline   Reply With Quote

Old   August 1, 2024, 12:15
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

You can use the volFieldValue function object for that.

In order to compute values only on a portion of your simulation domain, you will have to define a cellZone, either directly with snappyHexMesh when meshing, or afterward on an existing mesh with topoSet.

Regards,
Yann
Yann is online now   Reply With Quote

Reply

Tags
post-processing


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
Sudden increase the residual of Maxwell's equations hsezsz CFX 2 October 13, 2016 07:58
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
injection problem Mark New FLUENT 0 August 4, 2013 02:30
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
Volume fraction for entire domain in interFoam jmcneill OpenFOAM Post-Processing 5 May 22, 2012 03:10


All times are GMT -4. The time now is 12:13.