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

Extracting pressure values for each face in a defined patch

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2019, 06:48
Default Extracting pressure values for each face in a defined patch
  #1
Member
 
David Andersson
Join Date: Oct 2019
Posts: 46
Rep Power: 7
sippanspojk is on a distinguished road
Hi,

I am currently writing my own functionObject to include in my analysis. My end goal is to compute mean values, standard deviation and correlations of the pressure of each cell for the user defined patches and write that to a file.

I have started by copying the standard functionObject forces and modified that one. So far I have managed to compute the mean values and the standard deviation and writing that to a file. Since the standard forces functionObject is operating on the integrated pressure value of the complete patch my next step is to modify the code so it instead operates on the "face level", i.e. loops over each face for the defined patches and do the same calculations there. I have read online documentation about this but I still feel lost, I have the feeling I should introduce a volScalarField but that is pretty much it, hence I need help!

I am grateful for any help bu bare with me because I am new to both C++ and to coding in OpenFOAM, so if you want to help me please explain it thoroughly.

Cheers,
David
sippanspojk is offline   Reply With Quote

Reply

Tags
face, functionobjects, pressure

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 19:25
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 14:48
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56


All times are GMT -4. The time now is 15:03.