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

velocity cyclic BC-groovyBC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2012, 11:51
Default velocity cyclic BC-groovyBC
  #1
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
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)";
}
zxj160 is offline   Reply With Quote

Old   February 18, 2012, 08:47
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
i think its impossible, you should write your BC, with existing BC you can not!
nimasam is offline   Reply With Quote

Old   February 18, 2012, 11:12
Default
  #3
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
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?
zxj160 is offline   Reply With Quote

Old   February 18, 2012, 12:48
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Old   February 19, 2012, 19:40
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
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)";
}
Basically the problem is that a patch defined in the mesh as cyclic will accept no other boundary type than cyclic for fields (no groovyBC, no fixedValue, no ...).
gschaider is offline   Reply With Quote

Old   July 2, 2012, 12:30
Default
  #6
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Basically the problem is that a patch defined in the mesh as cyclic will accept no other boundary type than cyclic for fields (no groovyBC, no fixedValue, no ...).
Hi gschaider,

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
zxj160 is offline   Reply With Quote

Reply

Tags
cyclic bc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


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