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

Can't output Reynolds stress in pisoFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 25, 2013, 03:47
Default Can't output Reynolds stress in pisoFoam
  #1
New Member
 
Amitabh
Join Date: Feb 2013
Posts: 7
Rep Power: 5
bhattach is on a distinguished road
I am trying to run a channel flow using the k-epsilon model, with the pisoFoam solver. While the result seems to be converging, and I can see outputs for U, k, epsilon, nut, p, phi, I don't see any output files for R (Reynolds stress). Is there any way I can make the solver output R as well ? I can of course calculate R from k, nut and grad U, but it would be more convenient to just get R outputted directly.

I am attaching the contents of the 0/R file below. Any help will be appreciated.

regards

Amitabh

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volSymmTensorField;
object R;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField uniform (0 0 0 0 0 0);

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type zeroGradient;
}

fixedWalls
{
type kqRWallFunction;
value uniform ( 0 0 0 0 0 0 );
}

frontAndBack
{
type empty;
}
}

// ************************************************** *********************** //
bhattach is offline   Reply With Quote

Old   February 25, 2013, 13:06
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 573
Rep Power: 20
chegdan will become famous soon enoughchegdan will become famous soon enough
You could use the R utility that is already there in OpenFOAM. Just go to your case directory and type

Code:
R -help
If you want to add this to pimpleFoam, go check out the R utility in

Code:
$FOAM_APP/utilities/postProcessing/turbulence/R
for inspiration.
__________________
Dan

Find me on twitter @dancombest and LinkedIn

Last edited by chegdan; March 3, 2013 at 18:27.
chegdan is offline   Reply With Quote

Old   February 25, 2013, 13:17
Default
  #3
New Member
 
Amitabh
Join Date: Feb 2013
Posts: 7
Rep Power: 5
bhattach is on a distinguished road
Thanks a lot, Dan, that worked great for me.
bhattach is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New implemented algebraic Reynolds stress model volker OpenFOAM 13 October 21, 2013 00:01
Convergence of Reynolds Stress Tensor / Fluctuations in OpenFOAM Anne Lincke OpenFOAM Running, Solving & CFD 0 July 17, 2012 10:50
Reynolds Stress Models Jade M Main CFD Forum 0 April 21, 2010 16:38
Reynolds Stress Boundary Conditions tstorm FLUENT 0 July 27, 2009 14:44
Questions about the Reynolds stress model empirer2002 Main CFD Forum 1 January 5, 2006 08:37


All times are GMT -4. The time now is 21:06.