UDF not working
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?
|
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 ;) |
'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). |
Quote:
|
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 :rolleyes:
|
All times are GMT -4. The time now is 06:27. |