|
[Sponsors] |
Programming of fluctuating two-component inlet |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 14 ![]() |
Hi,
I want to specify an inlet with two (u and v) fluctuating components. I've tried to use the groovyBC utility but as far as I can tell it's limited to produce a homogeneous/uniform inlet with respect to each time step, although please correct me if I'm wrong!!! Assuming this is the case could someone advise me where to get started in terms of implementing this for myself and retrofitting the custom code to OpenFOAM? I'm using version 1.7.0. Thanks! :-) |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 21 ![]() |
I don't know what groovyBC is capable of... but I think it should be able to handle what you are asking for. If not, here's a crude guide on programming custom boundary conditions:
http://openfoamwiki.net/index.php/Ho...dary_condition Good luck! |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 14 ![]() |
Quote:
![]() Could you, or anyone else, help direct me to implement equations of this form in groovyBC? u = 10 + sin((5*y + 2)*time) v = cos((5*y+2)*time) Another thing is, can I define global variables at the head of the program, as for Fluent UDF's? For example - #define UMEAN 10 ??? @David - thanks for the guide, I hadn't come across that before and it could come in handy! |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,265
Blog Entries: 1
Rep Power: 23 ![]() |
{
type groovyBC; valueExpression "vector(10+sin(a*time()),cos(a*time()),0)"; gradientExpression "vector(0,0,0)"; fractionExpression "1"; variables "a=5*pos().y+2;"; timelines (); value uniform (0 0 0); } |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 14 ![]() |
Quote:
![]() |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 14 ![]() |
It worked great, thanks again!
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
Join Date: Jul 2010
Posts: 37
Rep Power: 14 ![]() |
Hi,
Having disappeared from the OpenFOAM world for over a year now I recently installed version 2 and discovered that groovybc is no longer supported. I had this boundary condition working fine with 1.7. Could someone quickly tell me how to transfer this exact same boundary condition over to swak4foam? Thanks. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RSM value of fluctuating component of velocity | Kushagra | CFX | 5 | April 10, 2008 15:20 |
Gravity component and inlet velocity | Vidya | FLUENT | 8 | July 31, 2006 08:28 |
HOW to GET FLUCTUATING VELOCITY COMPONENT at FLUEN | Seyfettin | FLUENT | 2 | December 1, 2005 03:51 |
Diffusion component at inlet | Balaji | FLUENT | 2 | August 8, 2005 07:37 |
how to get fluctuating component | l.g.patil | FLUENT | 0 | February 9, 2002 11:57 |