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

How to define outlet convective BC for the cyclic BC

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By april0100

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2012, 12:30
Default How to define outlet convective BC for the cyclic BC
  #1
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
I define the inlet and outlet as cyclic BC. But now I want to set the outlet as convective BC for the passive scalar. Is it possible to achieve that?
zxj160 is offline   Reply With Quote

Old   July 11, 2012, 10:45
Default
  #2
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Or how to define other types of BC for cyclic patches? such as zeroGradient?

Does any one have the experience of creating this kind of customer cyclic derived BC?
zxj160 is offline   Reply With Quote

Old   July 11, 2012, 11:19
Default
  #3
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
Or how to define other types of BC for cyclic patches? such as zeroGradient?

Does any one have the experience of creating this kind of customer cyclic derived BC?
The way I got around this easily was to use directMapped for momentum (setting it to an average velocity or flowrate) and that allows you to use fixed and zeroGradient boundary conditions for your passive scalar.

Dan
chegdan is offline   Reply With Quote

Old   July 11, 2012, 11:35
Default
  #4
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 chegdan View Post
The way I got around this easily was to use directMapped for momentum (setting it to an average velocity or flowrate) and that allows you to use fixed and zeroGradient boundary conditions for your passive scalar.

Dan
Dear Dan,

Thanks. Do you mean that I set inlet and outlet as normal 'patch' type and use directMapped to map the cyclic velocity? Then I can set uniform value and zeroGradient for passive scalar?

If yes, I have tried this and also mapped pressure. But the output of pressure is so different (all the other conditions are same)?

for cyclic case:
p
(
0.000572052
0.000389558
6.02371e-05
-0.000262527
-0.000663079
-0.00121091
-0.00193648
-0.00261434
.......

for directMapped case:
p
(
126.072
126.067
126.061
126.055
126.052
126.049
.......

I can not identify the problem.
zxj160 is offline   Reply With Quote

Old   July 11, 2012, 12:02
Default
  #5
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
Dear Dan,

Thanks. Do you mean that I set inlet and outlet as normal 'patch' type and use directMapped to map the cyclic velocity? Then I can set uniform value and zeroGradient for passive scalar?

If yes, I have tried this and also mapped pressure. But the output of pressure is so different (all the other conditions are same)?

for cyclic case:
p
(
0.000572052
0.000389558
6.02371e-05
-0.000262527
-0.000663079
-0.00121091
-0.00193648
-0.00261434
.......

for directMapped case:
p
(
126.072
126.067
126.061
126.055
126.052
126.049
.......

I can not identify the problem.
Is your pressure drop through the domain the same? I always never use directMapped for pressure. The values will be different than the cyclic case since its pressure driven in the directMapped case.
chegdan is offline   Reply With Quote

Old   July 11, 2012, 12:12
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 chegdan View Post
Is your pressure drop through the domain the same? I always never use directMapped for pressure. The values will be different than the cyclic case since its pressure driven in the directMapped case.
Yes, the pressure drop is same and only the BCs for pressure are different. But the pressure is also cyclic. If we do not use cyclic, then what type of BC can we define for pressure.

Best regards,
Jian
zxj160 is offline   Reply With Quote

Old   July 11, 2012, 12:20
Default
  #7
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
Yes, the pressure drop is same and only the BCs for pressure are different. But the pressure is also cyclic. If we do not use cyclic, then what type of BC can we define for pressure.

Best regards,
Jian
0 on the outlet and zeroGradient on the inlet.

See tutorials/incompressible/pisoFoam/les/pitzDailyDirectMapped for inspiration
chegdan is offline   Reply With Quote

Old   July 11, 2012, 12:29
Default
  #8
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 chegdan View Post
0 on the outlet and zeroGradient on the inlet.

See tutorials/incompressible/pisoFoam/les/pitzDailyDirectMapped for inspiration
Many thanks. I will try it later. By the way, is there any tutorials introducing pressure (p) in the OpenFOAM? Because I cannot understand the meaning of pressure clearly?
zxj160 is offline   Reply With Quote

Old   July 21, 2012, 17:27
Default
  #9
New Member
 
April
Join Date: Jul 2011
Location: Ann Arbor, MI
Posts: 7
Rep Power: 15
april0100 is on a distinguished road
Pressure is typically normalized by density in OpenFOAM, hence the units [m^2/s^2].
ScarFace likes this.
april0100 is offline   Reply With Quote

Old   October 9, 2012, 12:28
Default
  #10
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
This is true only for incompressible flow, but for the compressible flow the dimension of pressure is
dimensions [1 -1 -2 0 0 0 0];
check the 0 folder of incompressible & compressible cases in Tutorial
cfdonline2mohsen 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
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
VOF Outlet boundary condition in cfd - ace JM Main CFD Forum 0 December 15, 2006 09:07
How do I define the outlet b.c. for LES? jay Main CFD Forum 7 March 5, 2004 12:19
Impinging Jet. Outlet Boundary Condition Vincent Main CFD Forum 0 December 16, 2003 11:49


All times are GMT -4. The time now is 20:07.