|
[Sponsors] |
January 20, 2022, 06:27 |
Unknown groovyBC warning
|
#1 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Hello,
I am trying to use a groovyBC for the first time to create a time varying velocity input to CFD simulation. My groovyBC input in the U file can be seen below: Code:
Inlet { type groovyBC; valueExpression "vector((1148120681*pow(time(),16)) + (-7266830068.7*pow(time(),15)) + (20865494854.4*pow(time(......... value uniform (0 0 0); } When I run the simulation though I get some errors. Despite adding Code:
libs ("libOpenFOAM.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); Code:
--> FOAM Warning : From function dlLibraryTable::open(const fileName& functionLibName) in file db/dlLibraryTable/dlLibraryTable.C at line 124 could not load libOpenFOAM.so: cannot open shared object file: No such file or directory --> FOAM Warning : From function dlLibraryTable::open(const fileName& functionLibName) in file db/dlLibraryTable/dlLibraryTable.C at line 124 could not load libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory Also, as soon as I start the solver I get the warning: Code:
--> FOAM Warning : From function groovyBCFvPatchField<Type>::groovyBCFvPatchField(const fvPatch& p,const DimensionedField<Type, volMesh>& iF,Const dictionary& dict) in file groovyBCFvPatchField.C at line 141 No value defined for U on Inlet therefore using the internal field next to the patch Thank you for your help Merlin |
|
February 4, 2022, 10:32 |
|
#2 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Does anybody know the answer to this, I would greatly appreciate help?
|
|
February 7, 2022, 11:06 |
|
#3 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
When I use groovyBC I only have these in the controlDict:
libs ( "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" "libgroovyBC.so" ); Also, in my velocity groovyBC conditions, I usually have value $internalField, like this: topAndBottom { //type noSlip; type groovyBC; value $internalField; valueExpression "vector(-1*myGrad.x/internalField(Csalt), 0, 0)"; variables "myGrad=internalField(CsaltGrad);"; } Here Csalt and CsaltGrad are extra scalar fields in this particular example. |
|
February 15, 2022, 12:30 |
|
#4 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Ok thank you, what does the internalField term do?
|
|
February 15, 2022, 15:33 |
|
#5 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 |
Actually, I think this might not matter. It looks like you are just getting warnings, and not actually errors. So is the solver actually running or not?
|
|
February 18, 2022, 10:07 |
|
#6 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Yes the solver is running to completion and the results seem ok
|
|
Tags |
groovybc, time varying boundary, velocity inlet, warning message |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
foamToTecplot360 | thomasduerr | OpenFOAM Post-Processing | 121 | June 11, 2021 11:05 |
[OpenFOAM] ParaView command in Foam-extend-4.1 | mitu_94 | ParaView | 0 | March 4, 2021 14:46 |
Caffa 3D code | Waliur Rahman | Main CFD Forum | 0 | May 29, 2018 01:53 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |