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

How can I used cyclic BC in icoFoam?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2009, 17:56
Default How can I used cyclic BC in icoFoam?
  #1
sai
New Member
 
Join Date: Oct 2009
Posts: 1
Rep Power: 0
sai is on a distinguished road
Hi, I'm trying to simulate a laminar flow trough a pipe with icoFoam using cyclic BC on the inlet and outlet of the tube. I want to impose the pressure gradient between the faces but I can't. It seems like the cyclic condition doesn't accept another condition.
I would like to find an way to impose the pressure gradient and mantain the cyclic condition between the inlet and outlet of the tube.

Thanks
sai is offline   Reply With Quote

Old   October 17, 2009, 05:58
Default
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi,

I dont think icoFoam allows the use of cyclics. You can use instead channelFoam and switch LESModel to laminar in LESProperties.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   October 17, 2009, 17:25
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
icoFoam allows cyclic BC's to be used, but it has not mechanism to impose a fixed pressure gradient.

To do that you need to add your constant pressure gradient at the momentum equation. channelFoam imposes a fixed flow rate.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 12, 2009, 10:14
Default hi i'd like some more information on what you suggested
  #4
New Member
 
Vasu
Join Date: Oct 2009
Posts: 17
Rep Power: 16
milleniumrider is on a distinguished road
Hi Alberto,

Can you elaborate a little on what you said. Constant pressure gradient, in icoFoam?

I'm sorry if this is an extremely basic question, I've just started CFD and am still grappling my way through.

Any help or explanation would be much appreciated.

Thanks,
Vasu
milleniumrider is offline   Reply With Quote

Old   November 12, 2009, 21:54
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by milleniumrider View Post
Hi Alberto,

Can you elaborate a little on what you said. Constant pressure gradient, in icoFoam?

I'm sorry if this is an extremely basic question, I've just started CFD and am still grappling my way through.

Any help or explanation would be much appreciated.

Thanks,
Vasu
Hi Vasu,

I meant that if you use cyclic boundary conditions in a pipe with icoFOAM, assuming you give an initial non-zero velocity to the flow, you will notice, if you use the code as is, that the fluid slows down in time due to the effect of the wall.

If you want to compute a flow with a constant mean mass flow rate or a constant pressure gradient between inlet and outlet you need to change the code.

If you want to impose a constant pressure gradient, all you have to do is adding it to the momentum equation. If you want to impose a constant mass flow rate, you need to do something similar to what is done in channelFoam.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   November 13, 2009, 06:33
Default
  #6
New Member
 
Vasu
Join Date: Oct 2009
Posts: 17
Rep Power: 16
milleniumrider is on a distinguished road
[QUOTE=alberto;236071]Hi Vasu,

I meant that if you use cyclic boundary conditions in a pipe with icoFOAM, assuming you give an initial non-zero velocity to the flow, you will notice, if you use the code as is, that the fluid slows down in time due to the effect of the wall.

Yep thankfully thats what happens.

If you want to compute a flow with a constant mean mass flow rate or a constant pressure gradient between inlet and outlet you need to change the code.

If you want to impose a constant pressure gradient, all you have to do is adding it to the momentum equation. If you want to impose a constant mass flow rate, you need to do something similar to what is done in channelFoam.


Ok I think I understand. I've been comparing it with the channelFoam case to try to understand better. I'll give it a shot and see how it goes.
Thanks for the help!
Cheers,
Vasu
milleniumrider is offline   Reply With Quote

Old   July 4, 2013, 06:46
Default
  #7
cmh
New Member
 
Chiranth Hegde
Join Date: Jun 2013
Posts: 5
Rep Power: 12
cmh is on a distinguished road
Quote:
Originally Posted by alberto View Post
Hi Vasu,

I meant that if you use cyclic boundary conditions in a pipe with icoFOAM, assuming you give an initial non-zero velocity to the flow, you will notice, if you use the code as is, that the fluid slows down in time due to the effect of the wall.

If you want to compute a flow with a constant mean mass flow rate or a constant pressure gradient between inlet and outlet you need to change the code.

If you want to impose a constant pressure gradient, all you have to do is adding it to the momentum equation. If you want to impose a constant mass flow rate, you need to do something similar to what is done in channelFoam.

Best,

HI Alberto,

Newbie alert.

Anyhow how do I modify the code in Icofoam such that i can provide the pressure gradient at the inlet and the outlet to calculate the velocity?

Regards
cmh is offline   Reply With Quote

Old   January 17, 2018, 19:56
Default Cyclic BC and Ubar with IcoFoam
  #8
New Member
 
Join Date: Dec 2017
Posts: 1
Rep Power: 0
Alawiz is on a distinguished road
Hello

I know this is very old thread but it is exactly the same problem I have.

I have added the Ubar line in transportProperties just the same as done in channel395 tutorial and also copied the fvOptions file into my constant folder. However, I am still getting the wrong simulation. Velocity is still decreasing with time and I am getting very low and unreasonable values for it.

Any idea about what have I missed probably?

Thanks
Alawiz is offline   Reply With Quote

Old   January 18, 2018, 14:29
Default
  #9
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Ubar in transportProperties is not needed. You set it in the fvOption instead.
tiam is offline   Reply With Quote

Reply

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
[Commercial meshers] Face ordering problem for nonrectangular cyclic boundary conditions cfdmarkus OpenFOAM Meshing & Mesh Conversion 3 August 17, 2011 16:07
Pressure instability with rhoSimpleFoam daniel_mills OpenFOAM Running, Solving & CFD 44 February 17, 2011 18:08
Cyclic inletoutlet with icoFoam sripplinger OpenFOAM Running, Solving & CFD 5 November 8, 2008 05:48
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52
cyclic conditions Laurent FERRY Siemens 0 January 6, 2006 16:11


All times are GMT -4. The time now is 02:35.