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

The simplest way to shut off the flow in a pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2020, 11:19
Default The simplest way to shut off the flow in a pipe
  #1
Member
 
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6
miotto is on a distinguished road
In my model I would like to block the flow in a pipe at a specific time. What is the simplest way to do this?


I don't need the realistic behavior of a valve here. An instantaneous shut off would be enough.
miotto is offline   Reply With Quote

Old   February 9, 2020, 12:00
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
bro, your question is very broad, I think, for anyone would help you.
HPE is offline   Reply With Quote

Old   February 9, 2020, 12:31
Default
  #3
Member
 
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6
miotto is on a distinguished road
Hey, bro, sorry about that. I'm totally new to CFD and OpenFOAM.
Let me try again


Lets suppose I have a "2D" model made of just one block. This block being divided into x cells in the i direction and y cells in the j direction. Now lets suppose that the left face of left most cells is the inlet with (with p=p_in) and the right face of right most cell is the outlet (with p=p_out). All the other boundary conditions are walls. Assume p_in > p_out and we have flow. So far so good, this I can do.
But what if at a specific time t_shut, I need to block this flux in certain point of the model. Say, right in the middle (i=x/2), how can I do that? Can I use some kind of baffle? If yes, how can I make it appear just at t=t_shut?
miotto is offline   Reply With Quote

Old   February 10, 2020, 13:18
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,668
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I would change a boundary condition and not try to force a stop in the interior domain. You can just change the boundary condition type at the right outlet into a wall.


1)Run your case up to the shutoff time. You should now have a case with a time dir at the shutoff time, say 3.14159. If not, then change the appropriate settings in controlDict so that you do.
2) Now change the BC type in the 3.14159 time dir. You can use the changeDictionary utility or you can do it manually with a text editor by editing the p, U, etc. file.
3) Run the case starting now from the shutoff time to whatever time.
LuckyTran is offline   Reply With Quote

Old   February 11, 2020, 08:39
Default
  #5
Member
 
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6
miotto is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I would change a boundary condition and not try to force a stop in the interior domain. You can just change the boundary condition type at the right outlet into a wall.


1)Run your case up to the shutoff time. You should now have a case with a time dir at the shutoff time, say 3.14159. If not, then change the appropriate settings in controlDict so that you do.
2) Now change the BC type in the 3.14159 time dir. You can use the changeDictionary utility or you can do it manually with a text editor by editing the p, U, etc. file.
3) Run the case starting now from the shutoff time to whatever time.

Thank you for the instructive reply, LuckyTran.
Nevertheless, shutting off the right outlet wont work for me, because the phenomena I want to observe is indeed downstream to the valve.
Any ideas?
miotto is offline   Reply With Quote

Reply

Tags
interfoam


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
Pipe flow with obstacle - HELP Min FLUENT 6 January 31, 2017 14:28
Setting boundary conditions for simple pipe flow with flow direction changing in time Sipher FLUENT 1 May 4, 2015 20:05
[GAMBIT] meshing in GAMBIT, a flow through a pipe having complex inflow geometry mazhar1613 ANSYS Meshing & Geometry 1 January 11, 2012 23:18
[ASK] Flow in Corrugated Pipe with FLUENT Primadhani FLUENT 1 May 11, 2011 20:41
Pipe Flow Saima CFX 1 January 10, 2011 16:41


All times are GMT -4. The time now is 19:16.