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

velocity BC in groovyBC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 03:15
Default velocity BC in groovyBC
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
Hi all

I want to create this BC:



on "inner part" of this polar cavity:



I have written this code:

Code:
type     groovyBC;
   variables   (
          "teta=atan( pos().y/pos().x );  r=pow((pow(pos().x,2)                        
           +pow(pos().y,2)),0.5);"
                    );
valueExpression    
    "vector(-sin(teta),cos(teta),0)*256/pow(3.14,4)*pow((3.14/4+teta),  
     2)*pow((3.14/4-teta),2)";  
value uniform (0 0 0);

Does it do what I went?

Thanks
alimea is offline   Reply With Quote

Reply

Tags
boundary condition, groovybc


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] Problem with fully developed velocity profile groovyBC in 2D axi-sym mesh harshad88 OpenFOAM Community Contributions 7 July 24, 2014 14:28
[swak4Foam] groovyBC error: velocity profile (2D) >> what's wrong? vitorspadeto OpenFOAM Community Contributions 4 June 19, 2014 15:31
Velocity in Porous medium : HELP! HELP! HELP! Kali Sanjay Phoenics 0 November 6, 2006 06:10
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


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