|
[Sponsors] |
Extracting pressure values for each face in a defined patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 13, 2019, 06:48 |
Extracting pressure values for each face in a defined patch
|
#1 |
Member
David Andersson
Join Date: Oct 2019
Posts: 46
Rep Power: 7 |
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 |
|
Tags |
face, functionobjects, pressure |
|
|
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 |