CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Unknown groovyBC warning

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2022, 06:27
Default Unknown groovyBC warning
  #1
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
MFWilliams is on a distinguished road
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);
    }
(it is a long polynomial wrt time)


When I run the simulation though I get some errors.

Despite adding
Code:
libs ("libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
);
to the controlDict I get the warning below:
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
Could this be because I am running this simulation in /mnt/c/Users/merli/simulations/cylinderTest1 but I downloaded swak4foam in ~/foam/mfwilliams-4.0/swak4Foam?


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
Please can someone advise me as to why these errors are occuring? I am testing this BC on the solids4Foam tutorial: fixed, conformal cylinder in channel.


Thank you for your help
Merlin
MFWilliams is offline   Reply With Quote

Old   February 4, 2022, 10:32
Default
  #2
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
MFWilliams is on a distinguished road
Does anybody know the answer to this, I would greatly appreciate help?
MFWilliams is offline   Reply With Quote

Old   February 7, 2022, 11:06
Default
  #3
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
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.
wildfire230 is offline   Reply With Quote

Old   February 15, 2022, 12:30
Default
  #4
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
MFWilliams is on a distinguished road
Ok thank you, what does the internalField term do?
MFWilliams is offline   Reply With Quote

Old   February 15, 2022, 15:33
Default
  #5
Senior Member
 
Join Date: Jul 2013
Posts: 124
Rep Power: 12
wildfire230 is on a distinguished road
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?
wildfire230 is offline   Reply With Quote

Old   February 18, 2022, 10:07
Default
  #6
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
MFWilliams is on a distinguished road
Yes the solver is running to completion and the results seem ok
MFWilliams is offline   Reply With Quote

Reply

Tags
groovybc, time varying boundary, velocity inlet, warning message

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 15:25.