CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2012, 09:18
Default UDF not working
  #1
New Member
 
Daniel Ortega
Join Date: Jul 2012
Posts: 3
Rep Power: 14
daniel_ortega79 is on a distinguished road
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?
daniel_ortega79 is offline   Reply With Quote

Old   July 30, 2012, 04:03
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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
flotus1 is offline   Reply With Quote

Old   July 30, 2012, 13:02
Default
  #3
akm
New Member
 
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16
akm is on a distinguished road
'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).
akm is offline   Reply With Quote

Old   July 30, 2012, 13:05
Post
  #4
akm
New Member
 
Join Date: Jan 2010
Location: Netherlands
Posts: 28
Rep Power: 16
akm is on a distinguished road
Quote:
Originally Posted by flotus1 View Post
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
@Alex.. yes, people like me are rare hahaa
akm is offline   Reply With Quote

Old   July 30, 2012, 17:37
Default
  #5
New Member
 
Daniel Ortega
Join Date: Jul 2012
Posts: 3
Rep Power: 14
daniel_ortega79 is on a distinguished road
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
daniel_ortega79 is offline   Reply With Quote

Reply

Tags
udf, udf and programming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:18.