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

F_UDMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2003, 09:17
Default F_UDMI
  #1
Andrew Garrard
Guest
 
Posts: n/a
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)

}
  Reply With Quote

Old   November 14, 2003, 12:45
Default Re: F_UDMI
  #2
ccc
Guest
 
Posts: n/a
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?

  Reply With Quote

Old   November 24, 2003, 05:24
Default Re: F_UDMI
  #3
Andrew Garrard
Guest
 
Posts: n/a
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
  Reply With Quote

Old   November 24, 2003, 06:14
Default Re: F_UDMI
  #4
Andrew Garrard
Guest
 
Posts: n/a
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.
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 18:21.