# Pressure drop in openfoam

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

 June 6, 2013, 13:01 Pressure drop in openfoam #1 New Member   Join Date: Feb 2013 Posts: 6 Rep Power: 4 Good evening, i am new here and this is my first post. I would like to simulate a pressure drop in a flow but i dont really know how to do it I've tried to do that with a fan like in the tutorial TJunctionFan. So combine tjunction and pitzDaily, but i do not really understand what the patches the baffles abd so on is...( i still red a lot on the openfoam website an on the web, but nothing is clearly explained) So i tried another solution, i tried to do my own solver with my own geometry but its remains very complicate... How can i work efficiently with openfoam, what are the first things to know before starting with my simulation thank you Leden...

 June 6, 2013, 17:53 #2 Senior Member   Lieven Join Date: Dec 2011 Location: Mol, Belgium Posts: 295 Rep Power: 13 Hi Ledeniso, Welcome to the forum! First of all, can you give a little bit more information about your case? A few things that immediately cross my mind: * incompressible/compressible * laminar/turbulent * isothermal? * Why would you need your 'own solver'? * What do you mean exactly by 'work efficiently with OF'? I can give you a lot of advice, but the best place to start is here: http://ae.metu.edu.tr/tuncer/bookmarks/cfdnottodo.pdf Cheers, Lieven

 June 6, 2013, 18:18 #3 New Member   Join Date: Feb 2013 Posts: 6 Rep Power: 4 thanks to you Lieven, my case consist to simulate a flow throught a porous wall in the middle of the flow. my first idea was to simulate a flow in a pipe with a pressure drop where the porous wall has to be. In order to reach that goal, ilooked for tutorials which match at the best to my case, but all the tutorial are so various and complicate to understand and so on... To simulate a pressure drop in a flow i choose the case TJunctionFan ( with the fan to decrese my pressure, to simulate the flow, i choose the pitzDaily case flow. So the goal was to combine Tjunction with pitzDaily, but it's doesn"t work at all, i have tried a lot of solution without succes. That's why i through perhaps it's better to create my own solver with all the boundary condition i need, but it seems to be mission impossible How can i lose problem in Openfoam, do i do this with the tutorials given while the installation? the flow is laminar and incompressible. Thanks again for your answers and sorry for my english. Leden...

 June 7, 2013, 09:35 #4 Senior Member   Lieven Join Date: Dec 2011 Location: Mol, Belgium Posts: 295 Rep Power: 13 Hi Leden, Why don't you start from the porousSimpleFoam solver? Regarding the tutorials, don't expect to be able to learn to work with openfoam and all it's applications/tools/tricks/... in a few weeks. That's just not possible for any normal human being. First go through the tutorials explained in the manual, afterwards switch to the one closest to the case you want to simulate. My apologies, but I don't understand the sentence "How can i lose problem in Openfoam, do i do this with the tutorials given while the installation?" Cheers, Lieven

 June 10, 2013, 02:23 Hi lieven #5 New Member   Join Date: Feb 2013 Posts: 6 Rep Power: 4 I'm going to start learn about the porousSimpleFoam solver this week, and i will try like you advised it to me, to modify it in order to have something that matchs with my case. with the sentence, i mean are the tutorials the only way to lose problems in OpenFOAM or does it exist anys else tutorial to learn more about OpenFOAM? I am thanking you so much for your anszer, and i will inform you of my advance. Leden...

 June 10, 2013, 11:59 #6 Senior Member   Lieven Join Date: Dec 2011 Location: Mol, Belgium Posts: 295 Rep Power: 13 Hi Ledeniso, I think the tutorials are the best place to start. If you search the web or this forum a bit, you can find some additional ones. Depending on how far you need to go, you can also search for 'programming tutorials'. And this forum is definitely also a huge source of input for new OpenFOAM users (and also for the more experienced ones ;-)). Of course, there are also the OpenFOAM training sessions organized by ESI but I have no experience with those. Cheers, Lieven

 July 16, 2013, 02:52 #7 New Member   Mohammad Join Date: Jul 2013 Posts: 10 Rep Power: 4 Hi dear Foamers, I would be grateful if you could help me in my problem. I am new to OF, so forgive me for my simple questions which may seem absolutely trivial to you. I want to model a 2D channel in which the driving force is pressure gradient. Sounds simple, but I do not know how to do it. I want to use cyclic BC for both U and P. I studied about cyclic and fan BC and other stuff. I could solve the problem with cyclic BC for both U and P while the upper wall is moving (like cavity problem), and I used icoFoam. But I do not know how to do it for pressure gradient case? what solver shall I use? I know in the forum people said that channelFoam is a good one, but you know that in OF2.2.1 it is removed. shall I use pimpleFoam? or simpleFoam? or icofoam? please notice that my flow is laminar. How may I apply the pressure gradient? How may I apply the cyclic BC? Thank so much for your time. Mohammad

 July 17, 2013, 07:38 #8 Senior Member   Lieven Join Date: Dec 2011 Location: Mol, Belgium Posts: 295 Rep Power: 13 Hi Mohammad, You can use the fvOptions of OpenFOAM 2.2.x named pressureGradientExplicitSource. This replaces the functionallity of the channelFoam solver (hence it is removed from OF 2.2). As far as I understand, you can use this in combination with any of your preferred solvers. If your flow is laminar, icoFoam or pisoFoam will do the trick. Applying the cyclic BC is really simple, just set the boundary conditions of the corresponding patches to 'cyclic' for all of the variables. Hope this clarifies this, if I forgot the mention something, just ask again :-). Cheers, Lieven

 Tags help for a newbie

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post panda60 OpenFOAM 10 February 5, 2015 11:53 llidito OpenFOAM 0 April 25, 2013 14:47 sinaupdate FLUENT 2 June 17, 2012 16:52 tommie OpenFOAM Running, Solving & CFD 0 September 12, 2008 04:37 Resnick Main CFD Forum 0 November 20, 2007 15:50

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