# Compute local Reynolds number

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 12, 2010, 12:44 Compute local Reynolds number #1 Senior Member   Emanuele Join Date: Mar 2009 Posts: 110 Rep Power: 10 Sponsored Links 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Emmanuel FLUENT 2 April 7, 2016 01:46 laliong Main CFD Forum 11 March 19, 2015 12:42 xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33 Nokadu Main CFD Forum 3 May 26, 2013 11:42 Mech FLUENT 0 March 15, 2006 11:28