|
[Sponsors] |
Run-time wall pressure sampling - Nodal / Cell-Centered values |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 19, 2014, 13:39 |
Run-time wall pressure sampling - Nodal / Cell-Centered values
|
#1 |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
Hello, I am using OpenFOAM for an LES case of fluid through a wall-bounded region. I'm outputing the wall pressure at each time-step using sampling function objects in the controlDict (see below). These values are exported at the cell-center of each element along the wall surface. Is there an easy way to export the pressure a nodes instead of cell-centers? This is an option in Fluent,and I was wondering if there is a simple option/way of doing this without having to add in any of my own code or using a post-processing script to do some kind of interpolation. Thank you!
My function in controlDict to export wall pressure: wallPressure { type surfaces; functionObjectLibs ("libsampling.so"); surfaceFormat raw; // vtk; outputControl timeStep; outputInterval 1; interpolationScheme cellPoint; //cell enabled true; timeStart 14.0; fields (p); surfaces ( Wall { type patch; patches ("Wall"); interpolate false; triangulate false; } ); } |
|
August 25, 2014, 07:41 |
|
#2 |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
No one has any thoughts? Perhaps I should have posted this in the main OpenFOAM forum instead of the Post-Processing sub-forum.
|
|
August 25, 2014, 22:47 |
|
#3 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17 |
It appears that you already have cellPoint 'cell-to-point' interpolation activated. Are you sure you aren't already writing out the field you need?
|
|
August 26, 2014, 12:39 |
|
#4 | |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
Quote:
Yes, I have "cellPoint" chosen as an interpolationScheme, but I think this refers to how the pressure is calculated (I could be wrong as the documentation is a little unclear) not where it is written. I have tested this by writing out pressure using both "cellPoint" and "cell" for the interpolationScheme, and both options wrote out data for the cell-center, not at the nodes. |
||
August 26, 2014, 12:41 |
|
#5 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17 |
Have you also tried to set
Code:
interpolate true; |
|
August 26, 2014, 16:08 |
|
#6 |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
Yes, I've tried setting "interpolate true;" for the Wall patch. It affects the values that the sampling function object exports, but not the location. The location is the cell center for either choice.
It appears that this uses the nodal values to calculate the pressure using the "cellPoint" interpolation scheme, but there doesn't seem to be (at least not that I can see ) an option to just export these nodal values themselves? Thanks for your help! |
|
August 26, 2014, 16:12 |
|
#7 |
Senior Member
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17 |
I believe that OF writes node based values when it outputs in VTK format. You could try to write the vtk then check the ascii values within the file perhaps.
|
|
August 28, 2014, 08:35 |
|
#8 |
Member
Join Date: Apr 2011
Posts: 57
Rep Power: 15 |
Well, I tried changing the "surfaceFormat" to "vtk" instead of "raw", but it is still exporting values at the cell centers. Is this what you were referring to?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TimeVaryingMappedFixedValue | irishdave | OpenFOAM Running, Solving & CFD | 32 | June 16, 2021 06:55 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 15:33 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 07:47 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 22:40 |
air bubble is disappear increasing time using vof | xujjun | CFX | 9 | June 9, 2009 07:59 |