CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

about UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2002, 23:44
Default about UDF
  #1
Frank
Guest
 
Posts: n/a
Hi, every body; I am a fresh user of writing UDF. I have some questions I am confused now. I appreciate all relpy.

The problem i want to solve is to add a source term in the mass balance equation. The source term is the following:

source=dq/dt dq/dt=k(q*-q)

q* is the function of concentration

1. Do I need to use user defined scalar?

2. In the source term subroutine, is it necessary to define ds?Sometimes, ds is too complex, can i not write it?

3. This is a multicomponet problem. I do not understand what the meaning of int i in some solution variables.Is it can be written 1 or 2 to represent differnet species?

By the way, I would like to read more documents about udf. But I have only Fluent5 udf user guide, 2000. Could you provid more documents online?

Thank you very much

Frank
  Reply With Quote

Old   March 18, 2002, 04:28
Default Re: about UDF
  #2
Greg Perkins
Guest
 
Posts: n/a
Hi,

first upgrade to Fluent 6 and get the udf manual that comes with this version. This is the best documentation for udfs.

There is a udf manual for v5 too. \

(These are located on the documentation CDs which you should have - but which many system admins like to ignore!!!! Who needs docs???? - unfortunately this logic doesn't work with CFD programs which are very complex)

To answer your questions 1. no, unless q itself needs a pde to solve 2. you can often ignore ds, but stability is improved if you use it. note that ds should either be zero or negative. Positive values need to be linearised out - see Patankar 3. i refers to the ith species - counting from zero (or some other index eg. uds scalar in other macros)

Hope it helps

Greg
  Reply With Quote

Old   March 18, 2002, 05:38
Default Re: about UDF
  #3
Frank
Guest
 
Posts: n/a
Greg,Thank you very much!!! I will ask you other question later.

Thank you again

Frank
  Reply With Quote

Reply

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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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