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

Integrate a 3D scalar over one direction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2024, 07:18
Default Integrate a 3D scalar over one direction
  #1
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10
annan is on a distinguished road
Hi folks,

I have a 3D distribution of my temperature obtained after an openfoam simulation, and I would like to visualize a surface distribution of the average temperature over the z direction only.

I have been trying to use programmable filters in paraview to do so, with no success. Can anybody help me achieve this please ?

Many thanks!
annan is offline   Reply With Quote

Old   March 1, 2024, 11:08
Default
  #2
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
Hello,
Unfortunately, I cannot help you do this in Paraview. As far as I know it is quite hard to do this in Paraview. I have tried doing it in the past but couldn't manage to write a properly working programmable filter for this purpose.

However I suggest you to use the columnAverage functionObject for this purpose (only available in ESI version). But you need to have a structured mesh
https://www.openfoam.com/documentati...volume%20field.

There are also some nice community contributions, for example see: https://github.com/syavash20/TurbLab...panwiseAverage

Good luck!
Severus is offline   Reply With Quote

Old   March 13, 2024, 07:29
Default
  #3
Member
 
annan
Join Date: Nov 2016
Posts: 72
Rep Power: 10
annan is on a distinguished road
Hello Severus,

Thank you so much for your valuable response.

I have indeed tested columnAverage and it works perfectly since my mesh is structured. However, I wanted to use the same functionObject for temperature but the arithmetic average does not provide a satisfactory result. I think I need to integrate (U*T) in the z-direction, do you know any other functionObject that could help me compute this integral ?

Many thanks!
annan is offline   Reply With Quote

Old   March 13, 2024, 14:19
Default
  #4
Member
 
Shravan
Join Date: Mar 2017
Posts: 75
Rep Power: 9
Severus is on a distinguished road
Hello,
Lets say you compute U*T, now can you use columnAverage functionObject? Will your results be satisfactory? Or are you only looking for something to integrate a variable along a direction?

If your question is about how to compute U*T, you can look at codedFunctionObject, there are many posts out there regarding this.
https://www.openfoam.com/documentati...8H_source.html
Another option is define a new variable and simply multiply (U*T) inside your solver and recompile your solver.

If your question on integrating in a specific direction using a functionObject, sorry I am not aware of anything.

Thanks
Severus is offline   Reply With Quote

Reply

Tags
openfoam, paraview, 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
Creating a transient .case file scro1022 EnSight 0 November 27, 2020 11:11
Calculating gradient for scalar considering flow direction durg Fluent UDF and Scheme Programming 2 April 11, 2019 11:12
Solving for an additional species CO in coalChemistryFoam N. A. OpenFOAM Programming & Development 3 February 18, 2019 06:58
How to apply an external forces on a moving body in interDyMFoam? Larsa OpenFOAM Running, Solving & CFD 14 July 31, 2018 11:41
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48


All times are GMT -4. The time now is 10:43.