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

Simulation with closing valves

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By gschaider
  • 1 Post By simpomann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2012, 13:15
Default Simulation with closing valves
  #1
Member
 
Simon Arne
Join Date: May 2012
Posts: 42
Rep Power: 14
simpomann is on a distinguished road
Hey,

I want to set up a 2 phase simulation (water running into a tank w. interFoam) with 2 difficulties and so far I have no idea how could they be realized.

1) I want to track pressure and alpha (amount of phase 1 and 2) in the outlet (a hole next to the inlet) and in case that a certain pressure value is exceeded, I want to quit the simulation or if possible: I want to stop the liquid pouring through the inlet.
I found this link useful: http://www.cfd-online.com/Forums/ope...ven-range.html , but how can I limit this condition to apply only to values of the outlet? (Does the surface of a patch have values in the point fields e.g. pressure?)
Or should I try the sampling utility? Can anyone tell me how could I access the data written by the sampleDict during the solver loop? I must admit that I also lack skills in C programming.

2) I also need a valve to close a pipe when it comes in touch with the liquid. How can this be done? I guess I need to track the alpha-Value in the beginning of the pipe, but how is it possible? For tracking I could define a plane cutting through the pipe and use the sampling utility, but how can I close the valve? The valve itself does not need to be modelled geometrically, so no dynamic mesh necessary, but how can I tell openFoam to quit moving air through the pipe?
Is there the possibility to "cut" the pipe with a boundary that can be switched to zero?

I hope you guys can help me out with advice and ideas.
Best thanks in advance!
simpomann is offline   Reply With Quote

Old   September 3, 2012, 15:22
Default
  #2
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 simpomann View Post
Hey,

I want to set up a 2 phase simulation (water running into a tank w. interFoam) with 2 difficulties and so far I have no idea how could they be realized.

1) I want to track pressure and alpha (amount of phase 1 and 2) in the outlet (a hole next to the inlet) and in case that a certain pressure value is exceeded, I want to quit the simulation or if possible: I want to stop the liquid pouring through the inlet.
I found this link useful: http://www.cfd-online.com/Forums/ope...ven-range.html , but how can I limit this condition to apply only to values of the outlet? (Does the surface of a patch have values in the point fields e.g. pressure?)
Or should I try the sampling utility? Can anyone tell me how could I access the data written by the sampleDict during the solver loop? I must admit that I also lack skills in C programming.

2) I also need a valve to close a pipe when it comes in touch with the liquid. How can this be done? I guess I need to track the alpha-Value in the beginning of the pipe, but how is it possible? For tracking I could define a plane cutting through the pipe and use the sampling utility, but how can I close the valve? The valve itself does not need to be modelled geometrically, so no dynamic mesh necessary, but how can I tell openFoam to quit moving air through the pipe?
Is there the possibility to "cut" the pipe with a boundary that can be switched to zero?

I hope you guys can help me out with advice and ideas.
Best thanks in advance!
If you don't want to do any C++-programming yourself then I'd recommend swak4Foam (http://openfoamwiki.net/index.php/Contrib/swak4Foam). Especially point 2 is quite similar to an example from the presentation from the 6th Workshop (starting at slide 145) where an inlet is switched according to the alpha at some probe locations (adapting this to a sampledSurface should be quite easy with the information given in the presentation). For point 1: there is currently no clean way to stop the simulation but shutting the inlet works quite similar
saatt likes this.
gschaider is offline   Reply With Quote

Old   September 4, 2012, 05:18
Default
  #3
Member
 
Simon Arne
Join Date: May 2012
Posts: 42
Rep Power: 14
simpomann is on a distinguished road
tHi,

Thanks for the reply! Sounds exactly like what I am looking for.
Can you give me the name of the chapter or the author?
I downloaded this DVD for workshop nr 6 and now I have all the presentations in single files. I skimmed through it but I can't find it di

Edit: Found it, thanks a lot!
jeffyje likes this.

Last edited by simpomann; September 4, 2012 at 06:02.
simpomann is offline   Reply With Quote

Old   March 3, 2017, 14:13
Default
  #4
New Member
 
Jeffy Joseph
Join Date: Jan 2017
Posts: 1
Rep Power: 0
jeffyje is on a distinguished road
Quote:
Originally Posted by simpomann View Post
tHi,

Thanks for the reply! Sounds exactly like what I am looking for.
Can you give me the name of the chapter or the author?
I downloaded this DVD for workshop nr 6 and now I have all the presentations in single files. I skimmed through it but I can't find it di

Edit: Found it, thanks a lot!
Hello, I'm also trying to find the same. I got the ISO file that you mentioned, but where can I find the presentation?
jeffyje 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
Why my simulation not agree with the wind tunnel experiment zhaowei CFX 4 July 11, 2015 04:36
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 11:44
GUI crash and simulation engine still running RPJones FLOW-3D 2 November 9, 2010 09:18
velocity profile export from a simulation onto another sudhirlv STAR-CCM+ 1 September 12, 2010 19:57
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 14:02


All times are GMT -4. The time now is 22:55.