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

Surface Sampling for Overset Meshes on OpenFOAM

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

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By nainavinod

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2022, 18:13
Question Surface Sampling for Overset Meshes on OpenFOAM
  #1
New Member
 
pisharoti05
Join Date: Feb 2020
Posts: 6
Rep Power: 5
nainavinod is on a distinguished road
Hello Foamers,

I am currently running a large overset mesh case (~40 million cells) to simulate a propeller rotating at a certain rpm. The set-up is very similar to the "simpleRotor" tutorial case, except I have a more well defined propeller geometry. It uses the incompressible overPimpleDyMFoam solver.

I am trying to extract the surface pressure distribution on the propeller and I use the surface sampling library for it as shown below:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F yield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

surfaces
{
    type            surfaces;
    libs            (sampling);
    timeStart       0.429997;
    timeEnd         0.489997;
    writeControl    timeStep;
    writeInterval   4;
    surfaceFormat   ensight;
    fields          (p wallShearStress);

    interpolationScheme cellPoint;  //<- default

    surfaces
    {
        propeller
        {
            type            patch;
            patches         ("Propeller");
            interpolate     false;
            //invariant       true;  // Unaffected by mesh motion
            //fixedLocations  false;
            surfaceFormat   ensight;
        }
    }
}


// ************************************************************************* //
I dont believe the surface sampling for overset meshes works correctly on OpenFOAM. And here's my reasoning:

- I did a simple check to ensure the sampled surface data is correct or not. (Data obtained from : $CASE_DIR/postProcessing/surfaces/propeller/propeller.case). I calculated the integrated thrust (integral of the quantity: p*Normal_Z-wallShearStressZ) on Paraview for a particular time instance.
- I compared the thrust value I got from Paraview with the value predicted by the libforces library for the same time instance. They do not match and vary by a very large margin(~20% error).
- I tried switching the interpolation "on" and "off" while using the surface sampling library and that didn't affect the solution either.

This made me check one of the reconstructed time files as well. I opened it on Paraview and calculated the integrated thrust over the propeller surface. This matched the value predicted by the surface sampling and obviously did not agree with the value predicted by libforces.

I have reason to trust the value predicted by libforces as it is in line with past literature and experimental data. However, the surface sampling library and the recontructed files are underpredicting surface pressure. If someone has faced this problem, or knows how to fix it, please let me know. I have been stuck with the issue for a while now.
nainavinod is offline   Reply With Quote

Old   April 18, 2022, 04:43
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 603
Rep Power: 20
Yann will become famous soon enough
Hi,

Incompressible solvers in OpenFOAM use kinematic pressure. (https://www.openfoam.com/documentati...-pressure.html)

You have to multiply p by the density to get the static pressure if you want to compute forces in paraView. This is already handled in libforces since you need to define rhoInf in the function definition.

If you are working with air, this might explain the 20% error.

I hope this helps,
Yann
nainavinod likes this.
Yann is offline   Reply With Quote

Old   April 18, 2022, 12:31
Default
  #3
New Member
 
pisharoti05
Join Date: Feb 2020
Posts: 6
Rep Power: 5
nainavinod is on a distinguished road
Hey Yann!

That actually makes complete sense. I knew this about incompressible solvers but it completely slipped out of my head when I was trying to calculate the forces. I added the density factor and now the solution is spot on. Thank you so much. This was very helpful.

Thank You,
Naina.
Yann likes this.
nainavinod is offline   Reply With Quote

Reply

Tags
dynamic mesh, overset mesh, post procesing, surface sampling

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
OF2006 Surface sampling problem : VTP to VTK format alainislas OpenFOAM Post-Processing 3 March 2, 2022 02:27
Surface Sampling AA29 OpenFOAM Post-Processing 4 September 21, 2021 08:16
surface sampling all zero values yewi OpenFOAM Post-Processing 0 January 9, 2019 02:44
[snappyHexMesh] snappyHexMesh creates inverted meshes emat OpenFOAM Meshing & Mesh Conversion 3 March 27, 2017 09:50
surface sampling with a step smaller than outputTime seiji_adachi OpenFOAM 3 April 15, 2014 05:44


All times are GMT -4. The time now is 20:48.