CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   F_UDMI (https://www.cfd-online.com/Forums/fluent/32508-f_udmi.html)

Andrew Garrard November 13, 2003 09:17

F_UDMI
 
Help. I don't know what I am doing wrong. I set up the most basic 10 X 10 2d grid with input/output and two walls. I put in a basic uds with a value on one wall and a flux on the other. I am setting the flux using a function, and this works well. When I set a value of UDMI and try and do an XY plot the value comes out at 0.0000 and not -100 as I would expect. Can anyone help? I do not know what the problem is.

#include "udf.h"

real flux(f)

{

return (-100);

}

DEFINE_PROFILE(wall_flux, thread, i)

{

face_t f;

begin_f_loop(f, thread)

{

F_UDMI(f, thread, 0) = flux(f);

F_PROFILE(f, thread, i) = (flux(f));

}

end_f_loop(f, thread)

}

ccc November 14, 2003 12:45

Re: F_UDMI
 
hi, andrewgarrard,

I think the values of varialbes used in xy plot are ones stored in cells, not ones on facs. You merely set the values on faces with F_UDMI and do nothing with C_UDMI. I am not sure of my prediction. Can you tell the result?


Andrew Garrard November 24, 2003 05:24

Re: F_UDMI
 
I have been experimenting with C_UDMI as well. this macro seems to behave as expecteted. What I would like to be able to do is to apply values to my umdi at the face, rather than the cell adjcent to the face. The example at the bottom of page 5.4 suggests that this should be possiable. Your suggestion that that F_UDM doesn't appear on the xy plot is interesting. It is also not appearing on a countour plot. If that it is the case that the face values do not appear on cotour or XY plots then how is one meant to post process them?

Any help on this matter would be appreciated

Andrew Garrard November 24, 2003 06:14

Re: F_UDMI
 
As an addendum, I did try make a UDF for applying the UMD to the adjcent cell and that works as expected, with the value at the face being the one set for the cell. This will do what I want it to but I am of the opinion that it is not a concise piece of code, but if it is the only way it will work.


All times are GMT -4. The time now is 15:31.