|
[Sponsors] |
forcesCoeffs - how to use relative pressure instead of absolute pressure |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 10, 2015, 12:51 |
forcesCoeffs - how to use relative pressure instead of absolute pressure
|
#1 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 11 |
Hi,
In controlDict I would like to use the relative pressure instead of the absolute pressure for the calculation of CD CL ecc. I'm using the compressibile solver rhoSimplecFoam, and in the calculation of forces the absolute pressure is used. I noticed the absolute pressure is also used in the calculation of force coefficents. I would like to use the relative pressure (so Prel =Pabs-Pref) in these calculations. Is it possible to specify Pref? Thanks in advance, WhiteW Code:
forces { type forces; functionObjectLibs ( "libforces.so" ); outputControl timeStep; outputInterval 1; patches (wall_body); pName p; UName U; rhoName rhoInf; log true; rhoInf 1.16; CofR (0 0 0); pitchAxis (0 -1 0); } forcesCoeffs { type forceCoeffs; functionObjectLibs ( "libforces.so" ); outputControl timeStep; outputInterval 1; patches ( wall_body ); pName p; UName U; log true; rhoInf 1.16; CofR (0.98460 0 0.35195); pitchAxis (0 -1 0); liftDir (0 0 1); dragDir (1 0 0); magUInf 44.85; lRef 0.3034; Aref 0.578; } |
|
December 12, 2015, 08:26 |
|
#2 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 11 |
Hi, anyIdea?
I can calculate the corect forces with Paraview using the filters: ExtractSurface GenerateSurfaceNormal Calculator my reference pressure is 97956 Pa, so: (p - 97956) * Normals IntegrateVariables I get the correct forces on the body. If I use the formula (p) * Normals in the calculator, I get the output forces of OpenFoam(that uses the absolute pressure) . Is there a way to do this operation inside openfoam? Thanks, WhiteW |
|
December 22, 2015, 13:40 |
|
#3 |
Member
Join Date: Dec 2015
Posts: 74
Rep Power: 11 |
Hi , is it possible to correct the evaluation of forces, using the relative pressure, only in the post-processing phase?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet pressure | aja1345 | FLUENT | 5 | August 18, 2015 12:02 |
InterPhaseChangeFoam ERROR | shipman | OpenFOAM Running, Solving & CFD | 37 | March 23, 2014 13:43 |
Setting up the pressure variation due to tornado in a duct(UDF)+animation | guillaume1990 | FLUENT | 0 | March 3, 2014 12:59 |
about large minus absolute pressure | richard | FLUENT | 3 | December 6, 2003 10:39 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |