|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Samer
Join Date: Jan 2013
Posts: 14
Rep Power: 2 ![]() |
Dear all
I am using openfoam 1.6-ext and i am testing a solver on a Turek Benchmark (oscillating elastic flap in a laminar incompressible flow) and i want to see the lift and drag on the flap, i included a header file in my main .C file that calculates the lift and drag: scalar lift = 0; scalar drag = 0; const vectorField& Sfp = mesh.boundary()[plateID].Sf(); forAll(p.boundaryField()[plateID], facei) { vector faceForce = p.boundaryField()[plateID][facei] * Sfp[facei]; lift += vector(0,1,0) & faceForce; drag += vector(1,0,0) & faceForce; } const vectorField& Sfc = mesh.boundary()[cylinderID].Sf(); forAll(p.boundaryField()[cylinderID], facei) { vector faceForce = p.boundaryField()[cylinderID][facei] * Sfc[facei]; lift += vector(0,1,0) & faceForce; drag += vector(1,0,0) & faceForce; } how can i know see these scalar fields in paraview? |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [ANSYS Meshing] Lift & Drag Meshing Techniques | tylerplowright | ANSYS Meshing & Geometry | 6 | May 2, 2012 23:53 |
| Calculating Lift and Drag in Paraview (paraFoam) | scott | OpenFOAM | 4 | September 12, 2011 10:28 |
| Lift and Drag Monitor Point Values Converging to Zero | Josh | CFX | 24 | May 9, 2011 10:38 |
| Correct lift but wrong pressure drag - possible? | zx | Main CFD Forum | 4 | July 27, 2007 23:38 |
| drag and lift coefficient | Noé | CD-adapco | 5 | July 13, 2004 10:21 |