CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

writing udf

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 23, 2011, 01:51
Default writing udf
New Member
Join Date: Mar 2011
Posts: 10
Rep Power: 8
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, 13:13
Senior Member
Amir's Avatar
Join Date: May 2009
Location: Montreal, QC
Posts: 739
Blog Entries: 1
Rep Power: 16
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


Thread Tools
Display Modes

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 On
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 08:38
Seek help in writing UDF Jack Martinez FLUENT 9 June 14, 2007 10:24
New to writing UDF Sandilya FLUENT 0 May 31, 2007 12:03
Writing UDF for Robbins Bounday Condition KKLAU FLUENT 1 April 6, 2004 23:58
Macros for writing UDF for porosity umesh FLUENT 1 June 13, 2003 04:20

All times are GMT -4. The time now is 09:50.