The simplest way to shut off the flow in a pipe

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

 February 9, 2020, 12:19 The simplest way to shut off the flow in a pipe #1 New Member   Gui Miotto Join Date: Feb 2020 Posts: 4 Rep Power: 2 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.

 February 9, 2020, 13:00 #2 Senior Member   Herpes Free Engineer Join Date: Sep 2019 Posts: 298 Rep Power: 3 bro, your question is very broad, I think, for anyone would help you. __________________ Kind regards, HPE The OpenFOAM community is the biggest contributor to OpenFOAM; not person A or B. Let's report bugs or issue feature requests in GitLab-OpenFOAM. Please `design` your questions well. Such effort always pays off well for inquirers and `helpmate`s: How to create a Minimal, Reproducible Example, How to give enough info to get help.

 February 9, 2020, 13:31 #3 New Member   Gui Miotto Join Date: Feb 2020 Posts: 4 Rep Power: 2 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?

 February 10, 2020, 14:18 #4 Senior Member   Lucky Tran Join Date: Apr 2011 Location: Orlando, FL USA Posts: 3,744 Rep Power: 45 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.

February 11, 2020, 09:39
#5
New Member

Gui Miotto
Join Date: Feb 2020
Posts: 4
Rep Power: 2
Quote:
 Originally Posted by LuckyTran 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?

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Min FLUENT 6 January 31, 2017 15:28 Sipher FLUENT 1 May 4, 2015 21:05 mazhar1613 ANSYS Meshing & Geometry 1 January 12, 2012 00:18 Primadhani FLUENT 1 May 11, 2011 21:41 Saima CFX 1 January 10, 2011 17:41

All times are GMT -4. The time now is 09:27.