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

UDS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 1, 2007, 02:39
Default UDS
  #1
Sangeeta
Guest
 
Posts: n/a
i want to write an code for solving vector potential equations. So i have written a UDS but i have an extra term other than source and diffusivity. how could i include that term. I thought that i wll include it with source term but its has a x coocrdinate with it. so how to use it along with the standard equation of UDS
  Reply With Quote

Old   March 1, 2007, 14:55
Default Re: UDS
  #2
Sujith
Guest
 
Posts: n/a
you can get the cell centroid using the macro C_CENTROID(a,c,t) and a[0] gives you the x coordinate;

u can include this in your source term udf for UDS...
  Reply With Quote

Old   March 2, 2007, 00:51
Default Re: UDS
  #3
Sangeeta
Guest
 
Posts: n/a
Thank you. But Now i its not iterating it gives an error floating point error:invalid number. I have tried all the options in FAQ also. i not able to figure out the problem.
  Reply With Quote

Old   March 2, 2007, 13:22
Default Re: UDS
  #4
Sujith
Guest
 
Posts: n/a
There must be some division by zero error... Debug ur UDF line by line...
  Reply With Quote

Old   March 6, 2007, 09:17
Default Re: UDS
  #5
Sangeeta
Guest
 
Posts: n/a
Now i had debugged my UDF and changed it also. But now after 2000 iterations, it gives again floating point error.
  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
UDS Flux Function Choice Yang Chung FLUENT 1 November 17, 2015 02:14
PEM modeling UDS diffusivity in mixture gemini FLUENT 6 August 7, 2012 07:37
fixed value in the domain for a UDS in case of multiphase flow swati_mohanty FLUENT 2 November 30, 2010 04:17
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
A good question about UDS Z FLUENT 1 March 31, 2005 15:14


All times are GMT -4. The time now is 00:24.