CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Openfoam - setFields - Creates velocity that does not move and decays in place

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2015, 03:49
Default Openfoam - setFields - Creates velocity that does not move and decays in place
  #1
Member
 
Michu
Join Date: Jun 2015
Location: PA, USA
Posts: 32
Rep Power: 0
michu is on a distinguished road
Hello All,

Just a quick question. I am trying to run a program, with the function pisoFoam, as shown in the pictures below. I have a block with an inlet and outlet on the left and right respectively. Top, bottom, and middle walls are fixedWalls. I have no problems in my meshes according to checkMesh and no error message occurs though-out. My problem is when I use setFields to set a velocity area, as time passes, the velocity never leaves that area and the velocity slows down, but only in that initial area. I would like to write that the velocity will start at the left and then move to the right through the entire environment. From the first three pictures. It is clear it doesn't move and stays in the left.


Trying to figure what the problem is, I ran the program with setFields and with the inlet having a velocity at the entrance. In this scenario, the velocity does move all the way from the left to the right.

Can someone direct me to a reason why when I use setFields, the velocity never leaves the initial starting point? And how to fix this?

Any help is greatly appreciated!

Thank you,
~Michu


ANSWER BELOW:

Answer: Check Boundary Conditions in the 0 folder. I find that if the outlet and inlet conditions (for pisoFoam its k, epsilon, p, u, nut, nutilda) are the same it allows the flow to continue.

For example; normally the U folder has the inlet set at fixedValue at uniform (x y z) and outlet set to zeroGradient. Therefore, set the inlet to zeroGradient. If you do this for all six variables listed above (for the pisoFoam case) it will allow flow to continue from left to right. (aka: Set the inlet conditions to the outlet conditions.)
Attached Images
File Type: png Start.PNG (13.4 KB, 101 views)
File Type: png HalfWay.PNG (14.0 KB, 73 views)
File Type: png End.PNG (14.3 KB, 61 views)

Last edited by michu; July 28, 2015 at 15:40.
michu is offline   Reply With Quote

Reply

Tags
openfoam, parafoam, pisofoam, setfields, velocity


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



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