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

The relationship between forces and the pressure from sampledSurfaces in OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2018, 13:09
Default The relationship between forces and the pressure from sampledSurfaces in OF
  #1
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Hi Guys,

Currently I encounter a problem that the predicted noise based on the sampled pressure on the solid surfaces (patch: cube) is inconsistent with the root-mean-square values calculated based on the forces from the same surface (patch: cube) in OF. The related code in the system file is as following:

Code:
forcesCube
    {
        type            forces;
        functionObjectLibs ("libforces.so");
        outputControl timeStep;
        outputInterval 1;
    
        patches         ( cube );
        pName           p;
        UName           U;
        rhoName         rhoInf;
        log             true;
        rhoInf          1;
        CofR            (0 0 0);
    }
fieldAverage
    {
        type            fieldAverage;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        enabled         true;
        outputControl   outputTime;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    } 
             sampled_surface
    {
        type                   surfaces;
        functionObjectLibs    ("libsampling.so");
        enabled                true;
        outputControl          timeStep;
        outputInterval         5;
        surfaceFormat          raw;
        interpolationScheme    cell;
        fields
        ( 
              p
         );
        surfaces
        (
              wall
              {
                 type        patch;
                 patches     (cube);
              }
         ); 
     } 
}
I'm now thinking about the relationship between the forces calculated by OF acting on the object and the sampled pressure from the surfaces of the same object, which is suppose to be consistent since the only difference is the integrated area of the surface (Frankly, I'm not sure if my understanding is correct).

Base on my knowledge, the forces in OF is calculated relying on the x, y, z coordinates, while the sampledSurface requires information of surface areas. I suspect the sampled pressure from the cube with rounded corners may not be reliable due to the curved surfaces. But I have no idea about how to test it. Any suggestions? Thanks in advance.
jiaodanuma is offline   Reply With Quote

Reply

Tags
forces, openfoam, sampledsurface


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



All times are GMT -4. The time now is 16:02.