Hi, i am mech undergrad student, currently i am doing my thesis for CFD simulation of wind flow in urban area by using FLUENT. I am trying to apply logarithmic velocity profiles for my inlet boundary condition. My question is that from the formula of logarithmic wind profile, the velocity will become negative when it less than certain height due to the ln function. Do i need to use power law profiles to describe the velocity profile under certain height? Thanks. Best regards.
Why are you applying a logarithmic inlet condition? It doesn't make much sense to me. If you are trying to get the inlet condition to be as close as the actual velocity profile, then don't worry about. Expand your domain to include some space outside of your physical domain. Send in a uniform constant flow and let it do what i wants.
I trying so save my computational time by create my own udf for the boundary condition and based on those journals i read. Beside that, my moderator criticized my velocity profiles and ask me to rectify the problem as he said my velocity above my study area are not logic. For actual urban area, the building height is relatively low compare to the atmosphere boundary layer.
Well, having said that, you could just kind of substitute height for height above the surface, e.g. Rather than [tex] u(i,j,k) = log(z(i,j,k))[/tex] Have something like: [tex] u(i,j,k) = log( z(i,j,k) - z(i,j,1) )[/tex] Do remember that boundary conditions are quite a problem in most computational codes, and many many problems can arise from them. Having said that, be very careful when analyzing results such that you ensure you're getting what you think you should. I image there could be problems with reflections depending on the actual boundary condition implementation.