|
[Sponsors] |
July 29, 2012, 09:18 |
UDF not working
|
#1 |
New Member
Daniel Ortega
Join Date: Jul 2012
Posts: 3
Rep Power: 14 |
I am using a UDF for inlet velocity boundary(vx=2*y).when I interpret my UDF it doesn't show any error.But after selecting my UDF in B.C. when I want to initialize, it shows a constant velocity value. Is there anyone who knows what the problem is?
|
|
July 30, 2012, 04:03 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Unless you show us the UDF you used, you will have to wait for a psychic with basic knowledge in UDF programming.
I can tell you that these people are quite rare |
|
July 30, 2012, 13:02 |
|
#3 |
New Member
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16 |
'Initialize' provides an initial solution over the entire domain. Through the Fluent GUI you can give only a single initial value for the entire domain. If you want the initial solution to be of the form Vx=2y, you will have to write an initialization macro (DEFINE_INIT).
However, im guessing you have written a udf for inlet B.C. (DEFINE_PROFILE), which will be used as the inlet velocity condition for obtaining the solution. The initial solution is given to the solver as a starting point for the calculation, and should not affect the final solution (unless, of course, it is way off which will lead to a divergence). |
|
July 30, 2012, 13:05 |
|
#4 |
New Member
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16 |
||
July 30, 2012, 17:37 |
|
#5 |
New Member
Daniel Ortega
Join Date: Jul 2012
Posts: 3
Rep Power: 14 |
thank you guys! yes I used (define_profile) for my inlet velocity. In fact the problem was due to the written code. I guess after this project I'll be more psychic than before
|
|
Tags |
udf, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
Simulation with UDF for species mass fraction and velocity profile | virgy | Fluent UDF and Scheme Programming | 8 | February 7, 2012 05:30 |
compiling my UDF | Seyed Farid Hosseinizadeh | FLUENT | 22 | February 14, 2006 11:19 |
DEFINE_ON_DEMAND UDF: How to declare A[ND_ND], etc | jx | FLUENT | 1 | November 6, 2003 18:23 |
DEFINE_GEOM UDF Problems | Pat | FLUENT | 0 | August 14, 2003 14:16 |