CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDS (https://www.cfd-online.com/Forums/fluent/43945-uds.html)

Sangeeta March 1, 2007 01:39

UDS
 
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

Sujith March 1, 2007 13:55

Re: UDS
 
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...

Sangeeta March 1, 2007 23:51

Re: UDS
 
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.

Sujith March 2, 2007 12:22

Re: UDS
 
There must be some division by zero error... Debug ur UDF line by line...

Sangeeta March 6, 2007 08:17

Re: UDS
 
Now i had debugged my UDF and changed it also. But now after 2000 iterations, it gives again floating point error.


All times are GMT -4. The time now is 08:58.