|
[Sponsors] |
November 27, 2014, 10:26 |
udf for shear velocity error
|
#1 |
New Member
sitasma
Join Date: May 2014
Posts: 8
Rep Power: 12 |
I am simulating the air flow over a 3D wind turbine of radius 45m in a wind domain using a paraboilc velocity inlet profile with intial velocity 5m/s at 4m height and exponent is 0.4.
The inlet profile is written by the following code, which is interpreted into fluent without any errors. the rotating domain with sliding mesh is at 103 meters from inlet The size of the wind domain is 400(x) x 150(y) x 150(z). T the y direction is the height. when i initialize the solution using the following udf it gives me error in the x, y and z component. What can i do to maintain the Velocity Profile along the wind domain? Plz Help #include "udf.h" DEFINE_PROFILE(inlet_x_velocity,thread,index) { real z[ND_ND]; real Y; face_t f; begin_f_loop(f,thread) { F_CENTROID(z,f,thread); Y= z[2]; F_PROFILE(f,thread,index)=5*pow(Y/4,0.3); } end_f_loop(f,thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |