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

force on wall derived from pressure (OF processing vs paraview)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2022, 06:06
Default force on wall derived from pressure (OF processing vs paraview)
  #1
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 355
Rep Power: 8
geth03 is on a distinguished road
hi all,

i am currently learning how to derive the force on a rotating impeller.
for that purpose i wanted to check if i can reproduce the result which is calculated with the "libforces"-lib from OF Version 7 with paraview.
unfortunately i get different results, so maybe can help.

Geometry and Simulation-setup:
the case is pretty simple.
one blade impeller, the force is only calculated on one side of the impeller.
rotor and stator, with MRF in rotor-cellzone.
SimpleFoam is used here, and convergence is reached.

OF processing:
from one tutorial i copied the forces-file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/

forces
{
    type          forces;

    libs          ("libforces.so");

    writeControl  timeStep;
    timeInterval  1;

    log           yes;

    patches       ("force.*");
    rho           rhoInf;     // Indicates incompressible
    log           true;
    rhoInf        1;          // Redundant for incompressible

    CofR          (0 0 0);    // Rotation around centre line of propeller
    pitchAxis     (0 1 0);
}


// ************************************************************************* //
Paraview:
1. foamToVTK
2. load only patch that i want to analyze
3. Force = pressure * surfaceArea(from filter)
4. Force_Vector = Force * surfaceNormal(from filter)
5. extract x-Component.
6. Integrate Variables and divide result by total Area -> total Force in x-direction

Results for pressure derived force, only x-component:
OF: -7.876775e-05
PV: 1.79e-06
signs do not match bc PV makes the surface normal the other way round, however the magnitude should match.

note: simpleFoam is an incompressible solver, so pressure is kinematic (divided by rho). i did not correct for rho in PV bc i think OF does not do it either. so forces calcuted are in reality Force/rho. however, both values should match in the end.

i hope anybody can help in this regard. thanks.


-> Fixed: https://www.youtube.com/watch?v=rzkd61rBavg&t=1s
nice tutorial
Attached Images
File Type: png geometry.png (106.5 KB, 9 views)

Last edited by geth03; May 17, 2022 at 07:04. Reason: found a good tutorial that explains it
geth03 is offline   Reply With Quote

Reply


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
udf for compute pressure drag force fatemi Fluent UDF and Scheme Programming 1 January 26, 2018 13:27
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 13:04
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
How to plot pressure over a wall in PARAVIEW danielec87 OpenFOAM 0 July 27, 2012 12:59


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