CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Collecting turbulent statistics with openFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 4, 2017, 07:37
Default Collecting turbulent statistics with openFOAM
  #1
Senior Member
 
Manu Chakkingal
Join Date: Feb 2016
Location: Delft, Netherlands
Posts: 129
Rep Power: 10
manuc is on a distinguished road
Hello All


I have a geometry with:
Spheres packed in a solid box. Flow of fluid through the pore space. The flow is induced by buoyancy effects. There exists a heat transfer between the fluid and the solid spheres.

Its a conjugate heat transfer problem.
I would like to collect turbulent statistics of 1st order and higher like :

1. Kinetic energy
2.Reynolds stress
3.turbulent heat flux (u'T')
4.temperature variance (T'T')
5.gradient of the above quantities etc.

along a 2d slice in my 3d domain during runtime.

(I am only aware of fieldAverage where I could save the whole field)
Is it possible using function objects to save the data along the plane.
Also should i create new fields like grad(uT) in createfields.H for both solid and fluid to obtain them using any function (what I am looking for) to save data over a plane.
__________________
Regards
Manu
manuc is offline   Reply With Quote

Old   March 28, 2018, 13:44
Talking
  #2
Member
 
HK
Join Date: Oct 2015
Location: Madras
Posts: 31
Rep Power: 10
Luttappy is on a distinguished road
Hi Manu
There is a post processing utility called cuttingPlane to extract the data (U, p etc) of selected slice/plane in a three dimensional geometry during the simulation.
I think there should be an option to write turbulent statistics as well.
Please go through the following examples in the tutorials, you may get some idea
1. simpleFoam/motorBike
2. pisoFoam/les/motorBike/
3. pimpleDyMFoam/movingCone
Luttappy is offline   Reply With Quote

Old   March 29, 2018, 03:37
Default
  #3
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
Depending on your mesh there are several options. The best solution would be a faceZone. This however requires your mesh to match the plane you are trying to evaluate. What you are looking for is the surfaceFieldValue function object.
(Github Link). This can be used with a patch | faceZone | or a sampledSurface. The sampledSurface could e.g be provided via an stl file. The result can be saved to a vtk file for postProcessing in paraview.

You should be able to calculate some of those via function objects as well.
Bloerb is offline   Reply With Quote

Reply


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
modeling a turbulent flow over an obstacle using OpenFOAM Daniel_Khazaei OpenFOAM Running, Solving & CFD 2 June 4, 2020 05:21
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
Verification of Turbulent Pipe Flow in OpenFOAM - kwSST ajcav2 OpenFOAM Running, Solving & CFD 6 April 28, 2017 15:51
STATEMENT about how to implement new turbulent models in OpenFOAM PeterShi OpenFOAM Running, Solving & CFD 0 February 28, 2017 07:18
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20


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