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

[swak4Foam] Using groovyBC in OF 2.3.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2016, 02:02
Default Using groovyBC in OF 2.3.1
  #1
New Member
 
Andeo
Join Date: Jun 2010
Location: Pune, India
Posts: 12
Rep Power: 15
Anirudh_Deodhar is on a distinguished road
Hi

I have a domain with multiple inlets and outlets. I need to calculate the average temperature at an outlet and patch that as inlet temperature of another inlet (at every time step). I tried using groovy BC for that. but it seems groovy BC doesnt work with OF v2.3.1.

I have added following to my controlDict -
----------------------------------------------
libs ("libOpenFOAM.so" "libgroovyBC.so"
"libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so"
"libswakTopoSources.so" ) ;

functions
(
Temp_IN
{
//type patchAverage;
type surfaces;
verbose false;
fields (T);
patches
(
OUTLET1
);
after 298;
}
-------------------------------------------


And then made following change to T -
----------------------------------------------
INLET1
{
type groovyBC;
valueExpression "InTemp";
variables "InTemp{OUTLET1}=average(T)+ 25.00000 ;";
value uniform 298;

}

------------------------------------------------


I am getting an error like this -
--------------------------------------------
--> FOAM FATAL IO ERROR:
Unknown patchField type groovyBC for patch type wall
------------------------------------------------------------------

Does groovyBC work with OF v 2.3.1? Or is there anything else that I have to use for my problem? Do I need to install any additional package to make this groovyBC work?

Thanks in advance!
Anirudh_Deodhar is offline   Reply With Quote

Old   February 8, 2016, 08:19
Default
  #2
Member
 
Join Date: May 2015
Posts: 34
Rep Power: 10
mnikku is on a distinguished road
Quote:
Originally Posted by Anirudh_Deodhar View Post
Hi
Do I need to install any additional package to make this groovyBC work?
Have you compiled just the groovyBC (I guess that is also possible) or are you using it from swak4foam? Atleast with swak4foam I have managed to use it with 2.3.1.
mnikku 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
[swak4Foam] groovyBC for oscillatory flow liybzd OpenFOAM Community Contributions 5 November 12, 2018 07:53
[swak4Foam] reactingMultiPhaseEulerFoam problems with groovyBC zanilu70 OpenFOAM Community Contributions 4 December 13, 2016 06:46
[swak4Foam] Change in alpha and U with groovyBC in twoPhaseEulerFoam dani2702 OpenFOAM Community Contributions 0 November 17, 2016 03:30
[swak4Foam] groovyBC issue - k and epsilon sagnikmazumdar OpenFOAM Community Contributions 24 March 1, 2015 07:16
OpenFOAM Foundation releases OpenFOAMŪ 2.3.1 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 4 February 8, 2015 05:19


All times are GMT -4. The time now is 14:35.