Velocity as a function of height - Boundary condition.
Hi all,
I am modelling a flow through a wind tunnel and I need to set my inlet velocity as a function of height of the wind tunnel. (Velocity increases as height increases). Is there any way to do it. P.S: I am using Openfoam 4.0 and I think the groovyBC doesn't work. |
There are a number of ways to do this. I believe that I've previously compiled swak4Foam for OF4. If you don't want to use groovy bc, then a fixedProfile boundary condition will work -- you can define a functional form or read velocities (as a function of height) from a csv. Information on how to do this can be found here : https://github.com/OpenFOAM/OpenFOAM...FvPatchField.H.
Caelan |
Hi clapointe, Thanks for the info. I also found another way to do this. I got the cell location from writecellcentres command and then I calculated the velocity for each point and fed into the inlet as nonuniform list.
thanks once again for your quick reply. |
Hamza
Hello Senthilathiban,
Did you manually calculated the velocity and then manually add it in the 0.U file? I am also having the same problem. |
Quote:
More infor at https://www.youtube.com/watch?v=rfNYVqU1py4&t= |
All times are GMT -4. The time now is 08:20. |