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

[swak4Foam] groovyBC for simulating the opening and closing of a valve

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2015, 05:28
Default groovyBC for simulating the opening and closing of a valve
  #1
New Member
 
Caro
Join Date: Jul 2014
Posts: 15
Rep Power: 11
will_ca is on a distinguished road
Hello everyone,


I'm trying trying to use groovyBC to siulate the opening and closing of a valve. The “valve” is just a patch that sometimes should behave like a wall and sometimes as an outlet.


I'm using this in the 0/p file


Code:
type groovyBC;      
value uniform 1e5;
valueExpression "1e5";    
gradientExpression "0";  
fractionExpression "cos(time())>0.5 ? 1 : 0";
and this in the U file
Code:
type groovyBC; 
value uniform (0 0 0); 
valueExpression "vector(0,0,0)"; 
gradientExpression "vector(0,0,0)"; 
fractionExpression "cos(time())>0.5 ? 1 : 0";
but it doesn't work. The behaviour at the patch doesn't make sense. It looks rather as if the valve does not close.


Can anyone tell me what I'm doing wrong? Could it be a problem that I am using a moving mesh?


Thank you,


Caro

Last edited by will_ca; February 16, 2015 at 08:53.
will_ca is offline   Reply With Quote

Old   February 17, 2015, 06:27
Default groovyBC valve
  #2
New Member
 
Caro
Join Date: Jul 2014
Posts: 15
Rep Power: 11
will_ca is on a distinguished road
Does anyone have an idea? Please
will_ca 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
dynamic mesh: UDF to simulate opening and closing door sinvastil FLUENT 1 March 16, 2021 02:18
Opening closing and opening periodically with time ranield CFX 1 October 13, 2017 02:02
Gate valve flow simulations... nikesh FloEFD, FloWorks & FloTHERM 5 January 28, 2014 01:31
Door opening and closing Rana FLUENT 5 May 3, 2010 08:09
BC for opening and closing valve? Luk FLUENT 7 May 27, 2006 15:40


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