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

keyword sourceName is undefined

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 02:53
Default keyword sourceName is undefined
  #1
Member
 
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 12
manoj_nav is on a distinguished road
Hi All,

I tried using functionObject to calculate flow-rate through a sufrace. But I am getting following error ,

keyword sourceName is undefined in dictionary "/home/manoj/trial/vent/system/controlDict.functions.new_plane"

Code:
functions
{


    new_plane
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled         true;
        outputControl   outputTime;
        log             true;
        valueOutput     true;
        source          sampledSurface;

        sampledSurfaceDict
        {
         type        sampledTriSurfaceMesh;
         surface     opening.stl;
         source      cells;  // What to sample: cells (nearest cell)
                                    // insideCells (only triangles inside cell)
                                    // boundaryFaces (nearest boundary face)
         interpolate true;
        }

        operation       areaAverage;

        fields
        (
            U
        );
    }
}
I get the same error, when I use packaged function objects

Code:
functions
{
  #include "volFlowRateSurface"

}
Please help.

Regards,

Manoj
manoj_nav is offline   Reply With Quote

Old   July 20, 2016, 08:34
Default keyword sourceName is undefined in dictionary
  #2
Member
 
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15
canopus is on a distinguished road
Similar error as above for v3.0. Was working fine in 2.4.x
Any help?
canopus is offline   Reply With Quote

Old   July 27, 2016, 13:03
Default
  #3
Member
 
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14
Mat_fr is on a distinguished road
Hi,
I had the same error when passing from version 2.3 to 2.4.
You just have to add the line
sourceName MySourceName
in your functions in system/controlDict.
There are some examples in the tutorials.
Best,
Mat
Mat_fr is offline   Reply With Quote

Reply


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
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 00:14.