|
[Sponsors] |
June 6, 2015, 17:41 |
UDF velocity profile
|
#1 |
New Member
will
Join Date: Jun 2015
Posts: 2
Rep Power: 0 |
Hi, I'm simulating a case in FLUENT with a domain of 5x5x1 km³, for micositing of wind turbines.
I'm trying to enter a velocity UDF defined as logarithmic profile in two surfaces, which is described below. My problem is that the profile it results is basically a constant speed profile for the two surfaces I'm entering the UDF. I did a quick research for other threads that could help, but I can't solve my problem. Any help would be appreciated, thanks! #include "udf.h" DEFINE_PROFILE(velocidade_log,t,i){ real x[ND_ND]; real z,Uf=0.43,k=0.4,zo=0.13; face_t f; begin_f_loop(f,t){ F_CENTROID(x,f,t); z=x[1]; F_PROFILE(f,t,i)=(Uf/k)*log(z/zo); } end_f_loop(f,thread); } |
|
June 6, 2015, 17:50 |
|
#2 |
New Member
will
Join Date: Jun 2015
Posts: 2
Rep Power: 0 |
Oh nevermind, I found the problem. This one below works if anyone is interested
#include "udf.h" DEFINE_PROFILE(velocidade_log,t,i){ real x[ND_ND]; real z,Uf=0.43,k=0.4,zo=0.13; face_t f; begin_f_loop(f,t){ F_CENTROID(x,f,t); z=x[2]; if(z<0) z=z*(-1); F_PROFILE(f,t,i)=(Uf/k)*log(z/zo); } end_f_loop(f,thread); } |
|
January 10, 2016, 03:13 |
Environmental Monitoring. CFD-technology. UDF-function
|
#3 | ||||
New Member
adel kuptsoff
Join Date: Feb 2012
Posts: 9
Rep Power: 15 |
Kuptsov A.I. "Environmental Monitoring. CFD-technology. UDF-function ". - The scientific journal "Vestnik teknologicheskogo universiteta", №20 - 2015, p. 203-207;
UDF unstable atmospheric stratification Quote:
Quote:
Quote:
Kuptsov A.I., Akberov R.R., Islamkhuzin D.Y., Gimranov F.M. Numerical modeling of the atmospheric boundary layer with the account of its stratification // Fundamental research. – 2014. – No.9. – P.1452-1460. Quote:
|
|||||
Tags |
fluent - udf, logarithmic, velocity |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3-d velocity profile udf | Aylabam | Fluent UDF and Scheme Programming | 0 | October 14, 2013 13:39 |
Velocity profile UDF | egge24 | Fluent UDF and Scheme Programming | 2 | May 10, 2012 13:03 |
Logarithmic velocity profile | cfdworker | Fluent UDF and Scheme Programming | 0 | April 23, 2009 19:09 |
How to specify the Velocity profile (eqn) by UDF | Anant | FLUENT | 1 | February 27, 2008 14:54 |
Multi step transient UDF velocity profile problem | William177 | FLUENT | 1 | February 3, 2008 06:47 |