|
[Sponsors] |
December 22, 2015, 11:17 |
Unknown function type groovyBC
|
#1 |
New Member
hossein hadi
Join Date: Apr 2015
Posts: 15
Rep Power: 11 |
Dear Foamers,
I have installed swak4Foam from the main SVN repository, using the svn command: svn checkout svn://svn.code.sf.net/p/openfoamextend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ swak4Foam and I ./Allwmake it. Every function works fine, but when I use groovyBC function it will show an error: Code:
FOAM FATAL ERROR: Unknown function type groovyBC Valid functions are : 92 ( CourantNo DESModelRegions Lambda2 Peclet Q addForeignMeshes addGlobalVariable blendingFactor calculateGlobalVariables clearExpressionField coded correctThermo createSampledSet createSampledSurface dsmcFields dumpSwakExpression dumpSwakGlobalVariable dynamicFunctionObjectListProxy executeIfEnvironmentVariable executeIfExecutableFits executeIfFunctionObjectPresent executeIfObjectExists executeIfOpenFOAMVersionBiggerEqual executeIfParallelSerial executeIfPatch executeIfSetOrZone executeIfStartTime executeIfSwakExpression expressionField fieldDistribution foreignMeshesFollowTime functionObjectListProxy initPotentialFlow initSwakFunctionObject listMeshData listRegisteredObjects loadCompressibleTurbulenceModel loadIncompressibleTurbulenceModel loadPsiThermoModel loadRhoThermoModel loadSLGThermoModel manipulateField manipulatePatchField panicDump patchAverage patchExpression patchExpressionDistribution patchFieldDistribution patchFieldFlow patchIntegrate patchMassFlow patchMassFlowAverage patchProbes pressureTools probes provokeSignal readAndUpdateFields readGravitation recalcPhi recalcThermoHe removeGlobalVariable residuals scalarTransport setDeltaTByTimeline setTimeStep sets solveLaplacianPDE solveTransportPDE solverPerformanceToGlobalVariables surfaces swakCoded swakExpression swakExpressionAverageDistribution swakExpressionDistribution timeActivatedFileUpdate timeDependentFvSolutionFvSchemes trackDictionary turbulenceFields volumeAverage volumeIntegrate volumeMinMax vorticity wallShearStress writeAdditionalFields writeAndEndFieldRange writeAndEndSwakExpression writeFieldsOften writeIfFieldOutside writeIfSwakExpression writeOldTimesOnSignal yPlusLES yPlusRAS ) libs ( "libgroovyBC.so" ); in controlDict. I have no idea where the problem is. Thanks for your help hoseinhd |
|
December 25, 2015, 14:48 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings hoseinhd,
Please run the following commands inside the folder what you have the swak4Foam source code: Code:
./Allwmake > log.make 2>&1 gzip < log.make > log.make.gz Best regards, Bruno
__________________
|
|
December 26, 2015, 10:11 |
|
#3 |
New Member
hossein hadi
Join Date: Apr 2015
Posts: 15
Rep Power: 11 |
Hi Bruno,
Thanks for your sincere help. I have just solved my problem. The error was because I added groovyBC in functions of controlDict. An amateur mistake I implemented groovyBC type in 0/U file and my case is running OK now. Thanks hoseinhd |
|
October 2, 2017, 17:40 |
Problem in calculating Avg Nusselt with Swak4Foam
|
#4 | |
New Member
sajjad bouzari
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
Dear Bruno
I need to calculate average nusselt number over a cylinder in a cross flow, so I find a code and add it to the end of controlDict. The code is: NusseltNumber { type patchExpression; ignore_unimplemented_simpleFunctionObject::movePoi nts true; outputControlMode timeStep; outputInterval 1; patches ( cylinder ); verbose true; variables ( "T_inf=300;" "D=1;" ); expression "D*snGrad(T)/(T-T_inf)"; accumulations ( average ); log true; } It works fine with OpenFOAM 2.2 but now when I installed OpenFOAM 5 and I want to use it again I get these errors : --> FOAM Warning : From function bool Foam::functionObjectList::read() in file db/functionObjects/functionObjectList/functionObjectList.C at line 675 Caught FatalError --> FOAM FATAL ERROR: Unknown function type patchExpression Valid functions are : 8 ( forceCoeffs forces patchProbes probes psiReactionThermoMoleFractions rhoReactionThermoMoleFractions sets surfaces ) and -> FOAM Warning : From function bool Foam::functionObjectList::read() in file db/functionObjects/functionObjectList/functionObjectList.C at line 675 Caught FatalError --> FOAM FATAL ERROR: Unknown function type expressionField Valid functions are : I tried to used "swakExpression" instead of " patchExpression" but it doesn't work. So I guess maybe my swak4FOAM installation have problem so I do what you said here Quote:
And I attached the log file here, Can you please take a look at Log file? I dont understand that there is a problem there or not?
__________________
best regards |
||
December 19, 2018, 22:20 |
|
#5 | |
Senior Member
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16 |
Quote:
Hi, I have the same issue. Could you find any solution? Regrads, Elham |
||
December 22, 2018, 10:27 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: The log file from bouzari2012 indicates that specific swak4Foam version was not fully compiled properly because it was not compatible with OpenFOAM 5
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inlet patch problems | martyn88 | OpenFOAM Running, Solving & CFD | 6 | April 21, 2017 18:34 |
[Commercial meshers] converting Fluent mesh to openfoam standard mesh | deepesh | OpenFOAM Meshing & Mesh Conversion | 31 | March 29, 2017 05:59 |
rhoPimpleFoam hardship | petrus | OpenFOAM Running, Solving & CFD | 0 | October 7, 2016 02:41 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 1, 2003 23:32 |