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

[swak4Foam] groovyBC results diferent from funkySetBoundaryField?!

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 22, 2012, 09:52
Default groovyBC results diferent from funkySetBoundaryField?!
  #1
Member
 
Carlos Xisto
Join Date: Nov 2009
Location: Covilhã, Portugal
Posts: 53
Rep Power: 16
xisto is on a distinguished road
Send a message via MSN to xisto
Hello,

I'm trying to run a case with groovyBC because my boudary condition will need to change with time and I notice that time() is available there.

However when I'm running the case (without using time, check bottom expression) the correct values are putted on the boundary but the internal field it's not changing.
Code:
    Inlet
    {
        type             groovyBC;
        value uniform (0 0 0);
        variables        "bx=2.669/sqrt(pos().x*pos().x+pos().y*pos().y)*sin(atan(pos().y/pos().x));by=-2.669/sqrt(pos().x*pos().x+pos().y*pos().y)*cos(atan(pos().y/pos().x));";  
        valueExpression "vector(bx,by,0)"; 
    }
You may say that the problem could be with my equations, but when I using funkySetBoundaryField with the same expression to create my fixedValue nonuniform BC everything works..

Perhaps I'm doing something wrong with groovy?!
xisto is offline   Reply With Quote

 


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] 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
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 08:15
[swak4Foam] groovyBC and Eqn.setReference() benk OpenFOAM Community Contributions 3 June 2, 2011 08:49


All times are GMT -4. The time now is 00:02.