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

Difference between forceCoeffs function and Paraview force calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2018, 09:33
Default Difference between forceCoeffs function and Paraview force calculation
  #1
New Member
 
Aleksei
Join Date: Oct 2016
Posts: 4
Rep Power: 10
alexey_sw is on a distinguished road
Good afternoon everyone

I`ve run several cases in rhoSimpleFoam for calculation drag and lift coefficient. Function forceCoeffs was used for run-time post-processing. After I used Paraview to calculate Cl and Cd (only pressure component):
  • Generate surface normals;
  • Calculator => (p)*Normals_X/(0.5*rhoInf*(URef^2)*ARef);
  • Integrate variables.

Results:
forceCoeffs
Cd : 0.0239694 (pressure: 0.0181724 :confused: viscous: 0.00579704)
Cl : 0.260187 (pressure: 0.260349 viscous: -0.000162107)
Paraview
Cd : 0.0408192 :confused:
Cl : 0.257274


My forceCoeffs file:

forceCoeffs1
{
type forceCoeffs;

libs ("libforces.so");

writeControl timeStep;
timeInterval 2;

log yes;

patches ( "Wall.*" );
// rho rhoInf; // Indicates incompressible
rhoInf 1.225; // Redundant for incompressible
liftDir (0 1 0);
dragDir (-1 0 0);
CofR (-0.44347 0 0); // Axle midpoint on ground
pitchAxis (0 0 1);
magUInf 56;
lRef 0.94; // Wheelbase length
Aref 0.019; // Estimated
/*
binData
{
nBin 20; // output data into 20 bins
direction (1 0 0); // bin direction
cumulative yes;
}
*/
}

Also such differense observed when I run cases in simpleFoam. However, inequality was less then 5%.

Any thoughts? What is the reason of this inconsistency?
I would highly appreciate any advice!
Attached Images
File Type: jpg Paraview.jpg (51.2 KB, 162 views)
alexey_sw is offline   Reply With Quote

Old   October 1, 2018, 06:20
Default
  #2
New Member
 
Aleksei
Join Date: Oct 2016
Posts: 4
Rep Power: 10
alexey_sw is on a distinguished road
Problem was solved.

Thanks to this thread https://www.cfd-online.com/Forums/op...-paraview.html I find out that "point" values in paraview are created by interpolation. By changing attribute mode in calculator from "point data" to "cell data" I`ve got Cl and Cd in paraview equal to ones from forceCoeffs function.
alexey_sw is offline   Reply With Quote

Old   June 9, 2021, 05:05
Default
  #3
New Member
 
damu
Join Date: Feb 2017
Posts: 24
Rep Power: 9
damu1414 is on a distinguished road
Hi Aleksei,

Thanks for the thread. Can you help me calculate viscous drag using ParaView?
damu1414 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
[OpenFOAM] Probes function gives different values than ParaView Bazinga ParaView 4 November 29, 2017 14:59
[General] Calculation of accumulated drag on bodies in Paraview Jan.Östh ParaView 2 November 3, 2014 05:32
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
[OpenFOAM] parafoam - paraview help function felik9 ParaView 5 June 3, 2010 16:03
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


All times are GMT -4. The time now is 17:38.