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

writing udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2011, 02:51
Default writing udf
  #1
New Member
 
massoumeh
Join Date: Mar 2011
Posts: 10
Rep Power: 15
rostamimass is on a distinguished road
dear all
i am writing a source-udf. in that formula there is some derivative terms depending on time. i dont know how should i write them or which macro should use, for example there is d/dt(du/dy+dv/dx) in formula for source term. thanks
rostamimass is offline   Reply With Quote

Old   April 23, 2011, 14:13
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 23
Amir is on a distinguished road
Hi masumeh,
you know that this kind of UDF executes every iteration so, it's enough that you use global parameter and put the desired variable in, then in new time step use the parameter value for last time step and then put new one to it. (note that you should renew the global parameter every time step not every iteration)
Amir is offline   Reply With Quote

Reply


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
Writing UDF (DEFINE_PROFIL) for two surfaces Geisel Fluent UDF and Scheme Programming 5 June 21, 2010 09:38
Seek help in writing UDF Jack Martinez FLUENT 9 June 14, 2007 11:24
New to writing UDF Sandilya FLUENT 0 May 31, 2007 13:03
Writing UDF for Robbins Bounday Condition KKLAU FLUENT 1 April 7, 2004 00:58
Macros for writing UDF for porosity umesh FLUENT 1 June 13, 2003 05:20


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