|
[Sponsors] |
July 12, 2010, 13:44 |
Compute local Reynolds number
|
#1 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
Hi, i want to compute local Reynolds number (aka Peclet) using interFoam but i have some problems.
PecletX = rho * DeltaX * Ux / mu PecletY = rho * DeltaY * Uy / mu I create two fields : one for Peclet along X axis one along Y axis in this way volScalarField PecletX ( IOobject ( "PecletX", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("PecletX", dimensionSet(1,0,-2,0,0),1) ); volScalarField PecletY ( IOobject ( "PecletY", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("PecletY", dimensionSet(1,0,-2,0,0),1) ); Now i have to compute DeltaX and DeltaY for all of cells forAll(mesh.cells(), celli) { const labelList& cellPts = mesh.cellPoints()[celli]; DeltaX = mesh.points()[cellPts[1]].component(0) - mesh.points()[cellPts[0]].component(0); DeltaY = mesh.points()[cellPts[4]].component(1) - mesh.points()[cellPts[0]].component(1); PecletX = (U.component(0) * DeltaX * twoPhaseProperties.mu()) ; PecletY = (U.component(1) * DeltaY * twoPhaseProperties.mu()) ; } The previous way is wrong. I have to make a cycle over whole points of all cells and storage the max and the min value of X (and Y). How can i do this?? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cell Reynolds Number | laliong | Main CFD Forum | 12 | September 17, 2019 04:18 |
Obtaining Reynolds Number in FLUENT | Emmanuel | FLUENT | 2 | April 7, 2016 02:46 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Turbulence model for low Reynolds number flow? | Nokadu | Main CFD Forum | 3 | May 26, 2013 12:42 |
Reynolds number help | Mech | FLUENT | 0 | March 15, 2006 11:28 |