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
|
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... |
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.
|
Re: UDS
There must be some division by zero error... Debug ur UDF line by line...
|
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. |