|
[Sponsors] |
March 17, 2016, 02:53 |
keyword sourceName is undefined
|
#1 |
Member
Manoj
Join Date: Jun 2013
Posts: 38
Rep Power: 12 |
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 ); } } Code:
functions { #include "volFlowRateSurface" } Regards, Manoj |
|
July 20, 2016, 08:34 |
keyword sourceName is undefined in dictionary
|
#2 |
Member
SM
Join Date: Dec 2010
Posts: 97
Rep Power: 15 |
Similar error as above for v3.0. Was working fine in 2.4.x
Any help? |
|
July 27, 2016, 13:03 |
|
#3 |
Member
Mat
Join Date: Jan 2012
Posts: 60
Rep Power: 14 |
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 |
|
|
|
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 |