|
[Sponsors] |
March 1, 2007, 01:39 |
UDS
|
#1 |
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
|
|
March 1, 2007, 13:55 |
Re: UDS
|
#2 |
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... |
|
March 1, 2007, 23:51 |
Re: UDS
|
#3 |
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.
|
|
March 2, 2007, 12:22 |
Re: UDS
|
#4 |
Guest
Posts: n/a
|
There must be some division by zero error... Debug ur UDF line by line...
|
|
March 6, 2007, 08:17 |
Re: UDS
|
#5 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDS Flux Function Choice | Yang Chung | FLUENT | 1 | November 17, 2015 01: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 03:17 |
Doubts UDS Flux, UDS Unsteady for VOF model | kel85uk | FLUENT | 0 | March 17, 2010 08:53 |
A good question about UDS | Z | FLUENT | 1 | March 31, 2005 15:14 |