[boundary condition] logarithmic velocity profile
Hello, I have a problem that involves boundary condition in fluent. My boundary condition is a logarithmic velocity profile, that enters in the domain, and I don’t know how to do this in fluent. With velocity inlet I can create a regular velocity profile, but I can’t create a logarithmic velocity profile in boundary condition. So I wonder if anyone can tell me how I define a logarithmic velocity profile in boundary condition with fluent.
Thanks and sorry for my bad English
define a profile file and call the profile in the bc file or for more flexibility use a udf for spatial variation definition using log relationship. see udf guide and define profile macro for example.
Hello, thanks for the answer. I tried to make an udf file, like you suggested, that defines the logarithmic profile, but when I interpreted or compiled the file, fluent report an error and can’t read the file. I wonder if the udf file I make is wrong. My udf is this file:
DEFINE_PROFILE(inlet_x_velocity, thread, position)
y = x;
F_PROFILE(f, thread, position) = 3.*log(y/((10.)^(-2.)))/log(10./((10.)^(-2.)));
My domain is 3d and my simulation consists in analyze the wind in a terrain. So I ask anyone if can tell me what is wrong with my udf file.
I would appreciate any suggestions.
|All times are GMT -4. The time now is 22:08.|