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

[swak4Foam] groovyBC usage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2015, 08:41
Default groovyBC usage
  #1
New Member
 
Antonio
Join Date: Jan 2013
Posts: 11
Rep Power: 13
avigrod is on a distinguished road
I have created the following boundary condition for the phase.water based on Swak4FOAM:

inlet
Code:
    {
        type            groovyBC;
        valueExpresion "(pos().z<=0.20) ? 1 : 0";
       value 1;
            
    }
And i included
Code:
libs (
      "libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
     );
in my controlDict

however when calling interFoam, (or when decomposing), I get alpha.water = 0 in all points as well as a warning like this:
Code:
--> FOAM Warning : 
    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/Field.C at line 318
    Reading "/home/user/OpenFOAM/user-2.3.0/run/rejas_m028horizontal/0/alpha.water.boundaryField.inlet" from line 26 to line 30
    expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
where lines 26-30 are the lines I pasted previously.

Am I doing something wrong?

I am using OpenFOAM 2.3.0 and swak4FOAM 0.3.1
avigrod is offline   Reply With Quote

Old   July 30, 2015, 08:54
Default
  #2
New Member
 
Antonio
Join Date: Jan 2013
Posts: 11
Rep Power: 13
avigrod is on a distinguished road
Quote:
Originally Posted by avigrod View Post
I have created the following boundary condition for the phase.water based on Swak4FOAM:

inlet
Code:
    {
        type            groovyBC;
        valueExpresion "(pos().z<=0.20) ? 1 : 0";
       value 1;
            
    }
And i included
Code:
libs (
      "libOpenFOAM.so"
      "libsimpleSwakFunctionObjects.so"
      "libswakFunctionObjects.so"
      "libgroovyBC.so"
     );
in my controlDict

however when calling interFoam, (or when decomposing), I get alpha.water = 0 in all points as well as a warning like this:
Code:
--> FOAM Warning : 
    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/Field.C at line 318
    Reading "/home/user/OpenFOAM/user-2.3.0/run/rejas_m028horizontal/0/alpha.water.boundaryField.inlet" from line 26 to line 30
    expected keyword 'uniform' or 'nonuniform', assuming deprecated Field format from Foam version 2.0.
where lines 26-30 are the lines I pasted previously.

Am I doing something wrong?

I am using OpenFOAM 2.3.0 and swak4FOAM 0.3.1
It was working properly. By the way before I realised, I also saw how to the same in another way (with codedFixedValue). I will paste it into another page in case it is usefull for anybody
avigrod 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
[swak4Foam] groovyBC interFoam splitted inlet -- massflowrate FerdiFuchs OpenFOAM Community Contributions 1 October 1, 2014 07:51


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