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

Unable to retrieve anything from surfaceInterpolate function

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2022, 03:33
Wink Unable to retrieve anything from surfaceInterpolate function
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 5
sunagra27 is on a distinguished road

I am running a steady state simulation. For post-processing, I am trying to get the surfaceField using surfaceInterpolate function. Below is the functional code implemented in "system" folder. After running the simulations, I am unable to retrieve any data from it. The simulation runs correrctly.

/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:
     \\/     M anipulation  |
    Interpolates the volume field values to surface linearly.


    // Mandatory entries
    type            surfaceInterpolate;
    libs            ("");
    fields          (T TInterp);

    // Optional (inherited) entries
    region          patch;
    enabled         true;
    log             true;
    timeStart       0;
    timeEnd         100;
    executeControl  runTime;
    executeInterval 1;
    writeControl    runTime;
    writeInterval   1;

// ************************************************************************* //
I have added the file in the controlDict as:


   #includeFunc surfaceInterpolate1  //File name given in system folder
Where do I look for the output?

Sunag R A.
sunagra27 is offline   Reply With Quote

Old   March 14, 2023, 06:36
New Member
Join Date: Jul 2022
Posts: 11
Rep Power: 2
skaal is on a distinguished road
I just had a similar issue and will document the solution I found:

In controlDict:

        type            surfaceInterpolate;
        functionObjectLibs ( "" );
        log             yes;
        writeFields     yes;
        field           p;
        result          pf;

This will interpolate the pressure p to the surfaceScalarField pf which is then available for further processing steps.
skaal is offline   Reply With Quote


openfoam, output, postprocess, surface, surfacefields

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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50

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