|
[Sponsors] | |||||
Unable to retrieve anything from surfaceInterpolate function |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 8 ![]() |
Hi,
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. Code:
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Web: www.OpenFOAM.org
\\/ M anipulation |
-------------------------------------------------------------------------------
Description
Interpolates the volume field values to surface linearly.
\*---------------------------------------------------------------------------*/
surfaceInterpolate1
{
// Mandatory entries
type surfaceInterpolate;
libs ("libfieldFunctionObjects.so");
fields (T TInterp);
// Optional (inherited) entries
region patch;
enabled true;
log true;
timeStart 0;
timeEnd 100;
executeControl runTime;
executeInterval 1;
writeControl runTime;
writeInterval 1;
}
// ************************************************************************* //
Code:
functions
{
#includeFunc surfaceInterpolate1 //File name given in system folder
}
Regards, Sunag R A. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Martin
Join Date: Jul 2022
Posts: 16
Rep Power: 5 ![]() |
I just had a similar issue and will document the solution I found:
In controlDict: Code:
functions
{
surfaceInterpolate
{
type surfaceInterpolate;
functionObjectLibs ( "libfieldFunctionObjects.so" );
log yes;
writeFields yes;
field p;
result pf;
}
}
|
|
|
|
|
|
![]() |
| Tags |
| openfoam, output, postprocess, surface, surfacefields |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |