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

Wrong temperatures with postProcess functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2021, 10:27
Default Wrong temperatures with postProcess functions
  #1
New Member
 
Adrian Kwiatkowski
Join Date: Oct 2021
Posts: 2
Rep Power: 0
akwiatek is on a distinguished road
Hello everyone!
I'm trying to postProcess a case by using linear and surface sampling and I recieved wrong results of temperature, the temperature is equal to 193K in whole domain, while the other quantities seemes to be fine. I checked the time/T results itself and numbers there are fine, paraview does not have any troubles with opening it.



Functions inside controlDict

Code:
functions 
{     
    #includeFunc mag(U)      
    linesample               
    {         
        type                      sets;         
        libs                  (sampling);         
        writeControl              timeStep;
             outputInterval            500; 
          interpolationScheme       cellPoint;
           setFormat             csv;
           sets
          (
                 line_horiz_1
                        {
                  type            uniform;
                  axis            x;
                  start           (0 -0.05 0.100);
                  end             (4.525 -0.05 0.100);
                  nPoints         1000;
            }
            line_horiz_2
                        {
                  type            uniform;
                  axis            x;
                  start           (0 -0.05 1.905);
                  end             (4.525 -0.05 1.95);
                  nPoints         1000;
            }
            line_horiz_3
                        {
                  type            uniform;
                  axis            x;
                  start           (0 -1.975 1.905);
                  end             (4.525 -1.975 1.95);
                  nPoints         1000;
            }
            line_horiz_4
                        {
                  type            uniform;
                  axis            x;
                  start           (0 -1.975 0.100);
                  end             (4.525 -1.975 0.100);
                  nPoints         1000;
            }
            line_vert_1
                        {
                  type            uniform;
                  axis            z;
                  start           (0.1 -1.975 0);
                  end             (0.1 -1.975 2.05);
                  nPoints         1000;
            }
            line_vert_2
                        {
                  type            uniform;
                  axis            z;
                  start           (4.425 -1.975 0);
                  end             (4.425 -1.975 2.05);
                  nPoints         1000;
            }
            line_vert_3
                        {
                  type            uniform;
                  axis            z;
                  start           (0.1 -0.05 0);
                  end             (0.1 -0.05 2.05);
                  nPoints         1000;
            }
            line_vert_4
                        {
                  type            uniform;
                  axis            z;
                  start           (4.425 -0.05 0);
                  end             (4.425 -0.05 2.05);
                  nPoints         1000;
            }
            Measurment_points
            {
            type            cloud;
            axis             xyz;
            points            ((0.1 -0.05 0.1) (0.1 -1.975 0.1) (0.1 -0.05 1.95) (0.1 -1.975 1.95) (4.425 -0.05 0.1) (4.425 -1.975 0.1) (4.425 -0.05 1.95) (4.425 -1.975 1.95));
            }
            
         );
          fields                  (T mag(U) p p_rgh U);
     }
    /*
    Measurment_points
    {
        type            cloud;
        axis             xyz;
        points            ((0.1 -0.1 0.1) (0.1 -1.925 0.1) (0.1 -0.1 1.95) (0.1 -1.925 1.95) (4.425 -0.1 0.1) (4.425 -1.925 0.1) (4.425 -0.1 1.95) (4.425 -1.925 1.95));
        interpolationScheme     cellPoint;
        setFormat        csv;
        writeControl        timeStep;
        outputInterval          500;
        fields                  (T mag(U) p p_rgh );
    }
    */
    
    Surfaces
    {
        type            surfaces;
        libs            (sampling);
        interpolationScheme     cellPoint;
        surfaceFormat        vtk;
        writeControl        timeStep;
        outputInterval          500;
        fields                  (T mag(U) p p_rgh U);
        surfaces
        (
            surface4
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (0.1 -0.05 0.1);
                normal    (0 1 0 );
                }
                triangulate    true;
            }
            
            surface3
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (0.1 -0.05 0.1);
                normal    (0 0 1 );
                }
                triangulate    false;
            }
            surface5
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (0.1 -0.05 0.1);
                normal    (1 0 0 );
                }
                triangulate    false;
            }
            surface2
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (4.425 -1.975 1.95);
                normal    (0 1 0 );
                }
                triangulate    false;
            }
            surface1
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (4.425 -1.975 1.95);
                normal    (0 0 1 );
                }
                triangulate    false;
            }
            surface6
            {
                type        plane;
                planeType       pointAndNormal;
                pointAndNormalDict
                {
                point    (4.425 -1.975 1.95);
                normal    (1 0 0 );
                }
                triangulate    false;
            }
        );
    }
    
 }
I uploaded exemplary results, unfortunately I can't upload the T results itself because the file is to big.

If anyone had the same problem or know the solution please let me know.
Thank you all in advance!
Adrian
Attached Files
File Type: gz cfdDirect.tar.gz (8.1 KB, 0 views)
akwiatek is offline   Reply With Quote

Reply

Tags
buoyantsimplefoam, openfaom, sample postprocessing, temperature


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
postprocess: symbol lookup error BenAsbo626 OpenFOAM Post-Processing 2 October 26, 2018 13:28
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
How to calculate node temperatures from cell temperatures? h0rst FLUENT 2 May 28, 2017 00:15
fully developed channel flow with kOmega, wrong results boshynova OpenFOAM Programming & Development 1 April 20, 2016 10:54
meshing of a compound volume in GMSH shawn3531 OpenFOAM 4 March 12, 2015 10:45


All times are GMT -4. The time now is 18:17.