# internal field question - PitzDaily Case

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

 January 26, 2011, 11:37 internal field question - PitzDaily Case #1 Member   Ammar Tareen Join Date: Jan 2011 Location: Boston University Posts: 61 Rep Power: 15 Hello Foamers, I am new to openFOAM, but I have to learn a lot really fast. I was trying to understand everything by going through the example cases; I have a question about the internal field of the velocity file in the 0 sub-directory of Pitz Daily case. The velocity internal field is non-uniform and contains a list of many many velocity vectors. My question is, How are all those velocity vectors generated? As a starting case, I want to pass air through a very simple geometry, like for instance a rectangular block with a nozzle at the outlet: I know how to generate the mesh and define the inlet and outlet and wall patches. But I basically don't know how to set the fields properly and I don't want uniform air flow through out. I want the flow to be non-uniform so that it's slightly closer to reality. How can I do this? Where do I start? More easily stated, I want to flow air at an inlet and observe the resulting pattern/streamlines in the rest of the geometry. Any help would be greatly appreciated. Sorry if the question is confusing or silly. Thank you.

January 26, 2011, 15:19
#2
Senior Member

Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
Quote:
 Originally Posted by atareen64 Hello Foamers, I am new to openFOAM, but I have to learn a lot really fast. I was trying to understand everything by going through the example cases; I have a question about the internal field of the velocity file in the 0 sub-directory of Pitz Daily case. The velocity internal field is non-uniform and contains a list of many many velocity vectors. My question is, How are all those velocity vectors generated? As a starting case, I want to pass air through a very simple geometry, like for instance a rectangular block with a nozzle at the outlet: I know how to generate the mesh and define the inlet and outlet and wall patches. But I basically don't know how to set the fields properly and I don't want uniform air flow through out. I want the flow to be non-uniform so that it's slightly closer to reality. How can I do this? Where do I start? More easily stated, I want to flow air at an inlet and observe the resulting pattern/streamlines in the rest of the geometry. Any help would be greatly appreciated. Sorry if the question is confusing or silly. Thank you.
you might want to use potentialFoam to initialize your flow field for your simlpefoam solver. There are a few additions to the fvSolutions and fvSchemes files...and nOrthogonalCorrectors. Overall its pretty simple and gives a good initial guess for simplefoam. hope this helps.

Dan

 January 26, 2011, 15:26 #3 Member   Ammar Tareen Join Date: Jan 2011 Location: Boston University Posts: 61 Rep Power: 15 Thanks Dan!