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

functionObject type = faceSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2016, 11:58
Default functionObject type = faceSource
  #1
New Member
 
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10
leske is on a distinguished road
Hello, I' m trying tu run my case with this functionObject that i copied here: /opt/openfoam240/src/postProcessing/functionObjects/field/fieldAverage

When i run interFoam, i get this output error:

--> FOAM FATAL IO ERROR:
keyword sourceName is undefined in dictionary "/home/gabriele/OpenFOAM/gabriele-2.4.0/run/prova/system/controlDict.functions.faceObj1"

file: /home/gabriele/OpenFOAM/gabriele-2.4.0/run/prova/system/controlDict.functions.faceObj1 from line 55 to line 87.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 442.


Below the script that i put in controlDict:

functions
{
faceObj1
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");

enabled true;
outputControl outputTime;

// Output to log&file (true) or to file only
log true;

// Output field values as well
valueOutput true;

// Type of source: patch/faceZone/sampledSurface
source sampledSurface;

// if sampledSurface: dictionary with a sampledSurface
// Note: will not sample surface fields.
sampledSurfaceDict
{
// Sampling on constantPlane
sourceName piano1;
type plane; // always triangulated
basePoint (0.41 0 0);
normalVector (-1 0 0);
}

// Operation: areaAverage/sum/weightedAverage ...
operation areaAverage;

fields
(
p
);
}
}

Someone has an idea from where is the problem?

Thank you
leske is offline   Reply With Quote

Old   February 11, 2016, 12:02
Default
  #2
New Member
 
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10
leske is on a distinguished road
Sorry, in the script there isn't the line:

sourceName piano1;

anyway openFoam still gives me the same error both with and without this line
leske is offline   Reply With Quote

Old   November 8, 2018, 07:54
Default OpenFoam
  #3
New Member
 
Manaf Muhammed
Join Date: Oct 2018
Posts: 20
Rep Power: 7
manafaero is on a distinguished road
Dear friend can you find out the problem. I am also facing the same.please help.
manafaero@gmail.com
manafaero is offline   Reply With Quote

Old   May 30, 2019, 06:54
Default
  #4
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Old thread (and this could be a version issue.)
But for anyone seeking answers to get patch data in OF6 I just added a comment here: The syntax has changed a bit, that's all.
deepbandivadekar 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
Simulation of Radial Fan with simpleFoam MRF nash OpenFOAM Running, Solving & CFD 2 November 5, 2015 10:12
interFoam/kOmegaSST tank filling with printStackError/Mules simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 17:06
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16
pipe flow with heat transfer Fabian OpenFOAM 2 December 12, 2009 04:53


All times are GMT -4. The time now is 18:24.