|
[Sponsors] |
February 17, 2012, 11:51 |
velocity cyclic BC-groovyBC
|
#1 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Hi,
1 How to set a fixedvalue of velocity to the cyclic BC? 2 But the pressure is not cyclic, how to set a fixedgradient of pressure? --> FOAM FATAL IO ERROR: inconsistent patch and patchField types for I want to set the following fixedvalue using groovyBC. How to do that? inlet { type cyclic; type groovyBC; //type fixedValue // log-law expression uniform (0 0 0); variables "u_f=0.23;z0=0.9;z_f=pos().z-10;vel=u_f*log(z_f/z0);"; valueExpression "vector (vel,0,0)"; } outlet { type cyclic; type groovyBC; //type fixedValue // log-law expression uniform (0 0 0); variables "u_f=0.23;z0=0.9;z_f=pos().z-10;vel=u_f*log(z_f/z0);"; valueExpression "vector (vel,0,0)"; } |
|
February 18, 2012, 11:12 |
|
#3 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
But I have installed the groovyBC. You mean I should write another BC? I donot know how to do that.
1 How to set a fixedvalue of velocity to the cyclic BC (inlet and outlet)? 2 But the pressure is not cyclic, how to set a fixedgradient of pressure? |
|
February 18, 2012, 12:48 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
i think you should write new BC
however try this, may be it works 1) use funkySetFields and define your velocity function in whole domain at time 0 2) uses a fan boundary condition with one constant ( constant value is the fixed pressure gradient * pipe length) |
|
February 19, 2012, 19:40 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
July 2, 2012, 12:30 |
|
#6 | |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Quote:
Could you give me some idea of how to set fixedValue and zeroGradient for cyclic inlet and outlet patches respectively? Is it possible to achieve that? Best regards, Jian |
||
Tags |
cyclic bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to compute relative velocity from absolute? | spk | Main CFD Forum | 3 | July 9, 2010 09:42 |
Velocity in Porous medium : HELP! HELP! HELP! | Kali Sanjay | Phoenics | 0 | November 6, 2006 07:10 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |