|
[Sponsors] |
[swak4Foam] groovyBC for simulating the opening and closing of a valve |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 16, 2015, 06:28 |
groovyBC for simulating the opening and closing of a valve
|
#1 |
New Member
Caro
Join Date: Jul 2014
Posts: 15
Rep Power: 12 |
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"; 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"; 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 09:53. |
|
February 17, 2015, 07:27 |
groovyBC valve
|
#2 |
New Member
Caro
Join Date: Jul 2014
Posts: 15
Rep Power: 12 |
Does anyone have an idea? Please
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dynamic mesh: UDF to simulate opening and closing door | sinvastil | FLUENT | 1 | March 16, 2021 03:18 |
Opening closing and opening periodically with time | ranield | CFX | 1 | October 13, 2017 03:02 |
Gate valve flow simulations... | nikesh | FloEFD, FloWorks & FloTHERM | 5 | January 28, 2014 02:31 |
Door opening and closing | Rana | FLUENT | 5 | May 3, 2010 09:09 |
BC for opening and closing valve? | Luk | FLUENT | 7 | May 27, 2006 16:40 |