|
[Sponsors] |
Bonduary condition- define_profile for temperature |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 11, 2006, 17:43 |
Bonduary condition- define_profile for temperature
|
#1 |
Guest
Posts: n/a
|
Hi, I would like imposed on the boduary variation profil temperature. E.g. temperatue variation is to be specified as: T(y)=20*[1-(y/20)^2]. This is my Udf: #include "udf.h" DEFINE_PROFILE(temperature,t,i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); y = x[1]; F_PROFILE(f,t,i) = 20.*(1.-(y*y/20.*20)); } end_f_loop(f,t) }
Where is mistake!? This bonduary condition I imposed to type: wall in overlap thermal, thermal condition: temperature. Please help me!!! Thanks lot. Tomik |
|
January 12, 2006, 02:43 |
Re: Bonduary condition- define_profile for tempera
|
#2 |
Guest
Posts: n/a
|
F_PROFILE(f,t,i) = 20.*(1.-(y*y/20./20.))
Also note that your udf will not return temperature values above 20 K, really cold in my opinion. RoM |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFL Condition | Matt Umbel | Main CFD Forum | 19 | June 30, 2020 09:20 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
vorticity boundary condition | bearcharge | Main CFD Forum | 0 | May 14, 2010 12:32 |
Airfoil boundary condition | Frank | Main CFD Forum | 1 | April 21, 2008 19:36 |
Slip boundary condition what is inside | normunds | OpenFOAM Running, Solving & CFD | 2 | June 4, 2007 07:45 |