CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Error when sampling a symmTensor variable

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2021, 07:30
Default Error when sampling a symmTensor variable
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 471
Rep Power: 15
syavash is on a distinguished road
Dear Foamers,

I am using OpenFOAM v2012. When I input a symmTensor quantity to be sampled via the command "postProcess -func samplePlanes -latestTime", I get the following error:

Executing functionObjects
--> FOAM Warning :
--> FOAM FATAL IO ERROR: (openfoam-2012)
Entry 'type' has 1 excess tokens in stream

    2(tensor symm)

file: fields.UPrime2Mean at line 0.

The UPrime2Mean is the quantity of interest. It exists in the database but apparently foam has some issues with it. I use the following dictionary in the "samplePlanes" file:

    type            surfaces;
    libs            (sampling);
    surfaceFormat   ensight;
    writeControl    writeTime;
    fields          (U nut UMean nutMean UPrime2Mean);

            type        cuttingPlane;
            planeType   pointAndNormal;
                point   (0 0 0);  // slightly inside the domain
                normal  (0 0 1);

//            offsets ( 500 1000 1500 2000 2500 3000 3500 4000 4500 );
As seen in the code above, there are other quantities for sampling. However, only UPrime2Mean is causing problem. I was wondering if this is a bug?

I appreciate any hint.

syavash is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
sampling interval and sampling frequency beauty FLUENT 9 October 25, 2021 03:09
[waves2Foam] surfaceElevation sampling utilities katakgoreng OpenFOAM Community Contributions 2 November 18, 2016 06:27
Modeling sampling valve in CONVEARGE williamchina CONVERGE 2 September 13, 2016 02:16
Possible bug or limitation in stl-generated surface for sampling analysis Ali Blues OpenFOAM Post-Processing 3 April 27, 2016 10:30
sampling Data during calculation JimKnopf OpenFOAM Post-Processing 0 May 27, 2011 05:10

All times are GMT -4. The time now is 02:20.