|
[Sponsors] |
[swak4Foam] Unknown function patchAverage in swak4Foam (Control Dict) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 18, 2013, 07:21 |
Unknown function patchAverage in swak4Foam (Control Dict)
|
#1 |
New Member
Join Date: Feb 2012
Posts: 11
Rep Power: 14 |
Hello!
I just wanted to use the function patchAverage in the controlDict, but OpenFOAM tells me, that it doesn't know the type. I am already using groovyBC, so I assume that swak4Foam is compiled correctly. Than I just added the libs and the functions, but I get this error message. Hopefully somebody has an idea. Thanks a lot! Greetings Franzi Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application laplacianFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 2000; deltaT 0.2; writeControl runTime; writeInterval 20; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; libs ( "libOpenFOAM.so" "libgroovyBC.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ); functions ( temp { type patchAverage; functionObjectLibs ( "libsimpleFunctionObjects.so" ); verbose true; patches ( channel ); factor 1; fields ( T ); } ); // ************************************************************************* // Code:
--> FOAM FATAL ERROR: Unknown function type patchAverage Valid functions are : 5 ( initSwakFunctionObject patchProbes probes sets surfaces ) From function functionObject::New(const word& name, const Time&, const dictionary&) in file db/functionObjects/functionObject/functionObject.C at line 92. FOAM exiting |
|
September 18, 2013, 08:28 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
September 18, 2013, 09:11 |
|
#3 |
New Member
Join Date: Feb 2012
Posts: 11
Rep Power: 14 |
Thank you for the quick reply!! And yes the error message is longer.
I recompiled swak4foam without error message. (just to be sure) I can see in the error message that OF can't find the libraries, but I don't understand why. The complete error message is this: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.x-86ad70d97ea9 Exec : laplacianFoam Date : Sep 18 2013 Time : 13:46:20 Host : "sx600.ise.fhg.de" PID : 4357 Case : /scratch/fpfender/OpenFOAM/fkennema-2.2.x/run/NachbauQCAD_TEST nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleSwakFunctionObjects.so" --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libswakFunctionObjects.so" Create mesh for time = 0 Reading field T Reading transportProperties Reading diffusivity DT SIMPLE: no convergence criteria found. Calculations will run for 2000 steps. Calculating temperature distribution --> FOAM Warning : From function dlOpen(const fileName&, const bool) in file POSIX.C at line 1179 dlopen error : libsimpleFunctionObjects.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName&, const bool) in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99 could not load "libsimpleFunctionObjects.so" --> FOAM Warning : From function dlLibraryTable::open(const dictionary&, const word&, const TablePtr&) in file lnInclude/dlLibraryTableTemplates.C at line 67 Could not open library "libsimpleFunctionObjects.so" --> FOAM FATAL ERROR: Unknown function type patchAverage Valid functions are : 5 ( initSwakFunctionObject patchProbes probes sets surfaces ) From function functionObject::New(const word& name, const Time&, const dictionary&) in file db/functionObjects/functionObject/functionObject.C at line 92. |
|
September 18, 2013, 18:43 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
September 19, 2013, 04:55 |
|
#5 |
New Member
Join Date: Feb 2012
Posts: 11
Rep Power: 14 |
Oh yes. You are right. The Libraries are missing in the $FOAM_USER_LIBBIN !!!
When I am trying to run the removeFilesfromLocal.sh - it gives following error message - Can't open ./theFiles.sh just in case- the log file of the swak4foam compilation- it gives some mistake, but I thought it always does that and if it compiles to the end, it is fine. |
|
September 19, 2013, 05:55 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: the problem is that 2.2.x added a new method to the interface of functionObject that the released version of swak4Foam doesn't know about (because it was released before that appeared). This is fixed in the (public) development version of swak4foam
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 27, 2013, 11:30 |
Swak4Foam, libsimpleFunctionObject
|
#7 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
I have the same problem , can you please help me to solve it? Best regards, Salam |
||
November 27, 2013, 14:38 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 27, 2013, 15:29 |
|
#9 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
Thank you for your reply. I tried to run hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam it went through without problems. but when i try to up date it with (hg update port_2.0.x) it says hg update port_2.0.x abort: no repository found in '/home/salam' (.hg not found)! any ideas please? Regards, salam |
||
November 27, 2013, 18:29 |
|
#10 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 27, 2013, 18:37 |
|
#11 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
No , I haven't changed any thing, and to be honest I don't know what is need to be changed and how to change it. Is there any way that you could direct me please? Best regards, Salam |
||
November 28, 2013, 16:27 |
|
#12 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
cd openfoam-extend-swak4Foam
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
November 29, 2013, 09:02 |
|
#13 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
Thanks for replying, I have updated hg. the problem still there. I think I have installed wrong version of OpenFOAM which may not work with the following swak svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam My current version of OpenFOAM is 2.2.2 . Any ideas please? Regards, Salam |
||
November 29, 2013, 10:37 |
|
#14 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
I checked $FOAM_USER_LIBBIN but I couldn't find libsimpleSwakFunctionObjects.so , do you think this may one of the reasons? if Yes , how do I get the file. I have reinstalled every thing more than 10 times just to make sure that I don't miss any thing, but I never get libsimpleSwakFunctionObjects.so. Thank you for your help, I can never solve this problem without you help. Best regards,, Salam |
||
November 29, 2013, 18:06 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Salam: I've consolidated your latest posts into the following thread of yours: http://www.cfd-online.com/Forums/ope...swak4foam.html - I'll be answering there as soon as I can, since it's related to your questions made in the previous posts. Best regards, Bruno
__________________
|
|
November 29, 2013, 18:11 |
|
#16 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
Thank you ever so much for your help. Are you sure you can help me !! I have been spending too much time and energy on this problem,but I cannot solve it. I have been working on it for more than 10 days and still cannot solve it. I do really thank you for your help . Best regards, Salam |
||
December 1, 2013, 07:07 |
|
#17 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
I'm sorry for your time. I'd also like to put out a release. But you'll have to understand my problem: I only have a limited time to spend on this kind of community-stuff and all the time that I spend answering further questions from people who didn't properly read the first answer pushes back the next release
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|||
December 1, 2013, 14:53 |
|
#18 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
Yes you are right, you have been very helpful, I really appreciate your help. I think my problem is almost solved. Best regards, Salam |
||
Tags |
controldict, patchaverage, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 121 | June 11, 2021 11:05 |
InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
Control function in Poisson eqtion grid generation? | dinhanh | Main CFD Forum | 0 | January 8, 2017 02:53 |
[swak4Foam] Unknown Function Type "swakExpression" | CellZone | OpenFOAM Running, Solving & CFD | 1 | May 3, 2016 08:38 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |