CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Diffusivity UDF

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

LinkBack Thread Tools Display Modes
Old   May 20, 2006, 03:41
Default Diffusivity UDF
Posts: n/a
I needed to have a UDF for "diffusivity". Fortunately, it's given already in the UDF Manual(4.3.3). I've copied it as such directly in a notepad file and saved it with an extension .c and saved it in the same directory where my .cas and .dbs files are being saved. However, interpretation displays a very long (and probably fundamental) error. My problem is 3D. And, oe more thing - Do we need to choose a scalar before defining a UDF ? Kindly help ... I am new user of UDFs.
  Reply With Quote

Old   May 20, 2006, 06:29
Default Re: Diffusivity UDF
Posts: n/a
Yes, you might need to hook the UDF's. But this is only after the compilation/interpreting has been successfully completed.
  Reply With Quote

Old   May 21, 2006, 07:52
Default Re: Diffusivity UDF
Posts: n/a
Thanx Pete. But Please answer specifically for each question - Do I need to create a U D Scalar ?

And, do I need to make my case Unsteady for this particular macro "Diffusivity" described in UDF manual 4.3.3 ?

  Reply With Quote

Old   May 21, 2006, 18:22
Default Re: Diffusivity UDF
Posts: n/a
You don't need to set any UDS. And the error of UDF come from bad .c code. Check your .c code if any worng statement?

And one more thing that the examples in UDF Manual may not work. Coz it's not the complete code, It's just a simple example to introduce each "Marco". So you need to write your own code.

  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
Help,I have some questions about UDF of mass diffusivity in fluent apolloking Fluent UDF and Scheme Programming 0 March 20, 2011 12:40
error in mass diffusivity UDF vaibhav_v Fluent UDF and Scheme Programming 1 December 31, 2010 13:13
UDF Multicomponent Diffusivity with Knudsen term Emmanuel Resch FLUENT 0 August 8, 2008 21:01
UDF of interfacial thermal diffusivity galary FLUENT 1 May 24, 2006 10:10
UDF Adjust to redefine UDS Diffusivity David harvey FLUENT 4 February 27, 2004 08:47

All times are GMT -4. The time now is 06:20.