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

How to sample turbulenceProperties:R?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 24, 2017, 03:07
Default How to sample turbulenceProperties:R?
  #1
Member
 
Join Date: Apr 2017
Posts: 68
Rep Power: 9
kaaja is on a distinguished road
Running k-epsilon with simpleFoam I am using "sample" to sample values at certain locations. This works fine for values like U and k, that are generated during run time. However, it does not work for values like, turbulenceProperties:R and wallShearStress, which is generated by the postprocessing functionality.

For the turbulent stress tensor I get the error message

Code:
--> FOAM Warning : 
    From function Foam::label Foam::sampledSets::classifyFields()
    in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
    Cannot find registered field matching turbulenceProperties:R
--> FOAM Warning : 
    From function Foam::label Foam::sampledSets::classifyFields()
    in file sampledSet/sampledSets/sampledSetsGrouping.C at line 140
    Cannot find registered field matching turbulenceProperties:R
My sample-file looks like this

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

type sets;
libs ("libsampling.so");

interpolationScheme cellPointFace;

setFormat raw;

sets
(
    mu_0101
    {
        type            face;
        axis            z;
        start           (-0.075 0.0875 0.0);
        end             (-0.075 0.0875 0.05);
    }
    mu_0201
    {
        type            face;
        axis            z;
        start           (-0.025 0.0875 0.0);
        end             (-0.025 0.0875 0.05);
    }

);

fields
( 
    U turbulenceProperties:R
);

// ************************************************************************* //
turbulenceProperties:R is generated by

Code:
  simpleFoam -postProcess -func R -latestTime
The sample file is run by

Code:
simpleFoam -postProcess -func sample -latestTime
"turbulenceProperties:R" exists lik a file just like U and k, so I do not understand why there is a problem sampling it. Does anybody have an idea about how to solve this?
kaaja is offline   Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a sample line coincides with faces, the user should set the set the sample line?? Hojae OpenFOAM 3 November 29, 2014 05:48
Sample issues MikePo OpenFOAM Post-Processing 1 February 7, 2010 19:20
heat conducting in a solid domain Rogerio Fernandes Brito Phoenics 0 March 18, 2008 17:23
heat conducting in a solid domain Rogerio Fernandes Brito Siemens 0 March 18, 2008 17:23
about my old post Rogerio Fernandes Brito CFX 1 February 8, 2008 19:19


All times are GMT -4. The time now is 00:36.