CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Velocity as a function of height - Boundary condition. (https://www.cfd-online.com/Forums/openfoam-pre-processing/205587-velocity-function-height-boundary-condition.html)

senthilathiban August 21, 2018 08:37

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.

clapointe August 21, 2018 12:29

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

senthilathiban August 22, 2018 09:46

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.

hmusaddiq March 25, 2019 08:34

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.

senthilathiban March 25, 2019 11:01

Quote:

Originally Posted by hmusaddiq (Post 728775)
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.

Yes I calculated manually. But later I found another boundary condition fixedProfile

More infor at https://www.youtube.com/watch?v=rfNYVqU1py4&t=


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