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

[swak4Foam] Unknown function type groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By hoseinhd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2015, 11:17
Default Unknown function type groovyBC
  #1
New Member
 
hoseinhd's Avatar
 
hossein hadi
Join Date: Apr 2015
Posts: 15
Rep Power: 11
hoseinhd is on a distinguished road
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
)
I have used
libs (
"libgroovyBC.so"
);
in controlDict. I have no idea where the problem is.

Thanks for your help
hoseinhd
hoseinhd is offline   Reply With Quote

Old   December 25, 2015, 14:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then please attach the file "log.make.gz" to your next post. This log file will tell us if everything was built properly or not.

Best regards,
Bruno
hoseinhd likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 26, 2015, 10:11
Default
  #3
New Member
 
hoseinhd's Avatar
 
hossein hadi
Join Date: Apr 2015
Posts: 15
Rep Power: 11
hoseinhd is on a distinguished road
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
wyldckat likes this.
hoseinhd is offline   Reply With Quote

Old   October 2, 2017, 17:40
Default Problem in calculating Avg Nusselt with Swak4Foam
  #4
New Member
 
sajjad bouzari
Join Date: Feb 2013
Posts: 4
Rep Power: 13
bouzari2012 is on a distinguished road
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:
Originally Posted by wyldckat View Post
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
Then please attach the file "log.make.gz" to your next post. This log file will tell us if everything was built properly or not.

Best regards,
Bruno

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?
Attached Files
File Type: gz log.make.gz (1.3 KB, 8 views)
__________________
best regards
bouzari2012 is offline   Reply With Quote

Old   December 19, 2018, 22:20
Default
  #5
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by bouzari2012 View Post
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





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?

Hi,


I have the same issue. Could you find any solution?


Regrads,


Elham
Elham is offline   Reply With Quote

Old   December 22, 2018, 10:27
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat 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
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


All times are GMT -4. The time now is 06:20.