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

sampling,surfaces,output precision

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2024, 21:01
Default sampling,surfaces,output precision
  #1
New Member
 
chuyi
Join Date: Oct 2023
Posts: 1
Rep Power: 0
cyssr is on a distinguished road
i did a unsteady simulation
i use surfaces to output p and U of a slice
the default precision of p and U is 8,i need to change it to get higher precision
i tried to change it, but it did not work.


the setting like:
Code:
 type        surfaces;
    interpolationScheme cellPoint;
    functionObjectLibs ( "libsampling.so" );
    enabled         true; // this is just a switch on/off for that function
    writeControl   timeStep; 
    writeInterval  20; // the surface will be stored every 2nd time step (for example)
    setFormat   vtk;
    surfaceFormat    vtk;   
formatOptions
{
    surfaces
    {
         // Optional scale
        scale 1.0;
        // Optional format
        // short/long/free format
        // short: scalar field width 8. default.
        // long : scalar field width 16
        // free : comma separated, field width according to writePrecision
        //        setting
        format  long;      // short/long/free
    }

}
        fields (p U); 

    surfaces
    (
        zCut
        {
        // Cutingplane using iso surface
        type            cuttingPlane;
        planeType       pointAndNormal;
        pointAndNormalDict
        {
        point        (0 0 0.15);
        normal      (0 0 1);
        }
        interpolate     true;       
        }
    );
}
but i only get default precision,and i try to change write precison in controlDict.it also did not work , do you have any idea
cyssr is offline   Reply With Quote

Reply

Tags
output data, precision, sampling, slice, surfaces


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
why do commercial cfd products provide single precision? aerosayan Main CFD Forum 9 February 26, 2022 11:57
Switching between single and double precision in Fortran aerosayan Main CFD Forum 12 November 20, 2020 07:24
Single precision better than double precision? 140raiders CFX 1 July 30, 2015 02:32
[ANSYS Meshing] ICEM output precision papis ANSYS Meshing & Geometry 4 July 9, 2013 09:54
what's wrong about my code for 2d burgers equation morxio Main CFD Forum 3 April 27, 2007 10:38


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