CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDS BCs at wall (https://www.cfd-online.com/Forums/fluent/35082-uds-bcs-wall.html)

Giordano Bruno November 16, 2004 06:50

UDS BCs at wall
 
Hello to all FLUENT's people, I've to define the boundary conditions for an UDS at a wall by using the Specified Flux option, but I haven't found which is the macro ( ...maybe something as DEFINE_PROFILE...) that I have to use for this case ....could anyone give me some information about this argument???

Thanks in advance!!!

Giordano Bruno

Andrew Garrard November 17, 2004 09:10

Re: UDS BCs at wall
 
Yes, you have to use a DEFINE_PROFILE. When it is complied you can link it in the FLUENT GUI by changing the drop down that says constant to your UDF. There is infromation about define profile in the UDF manual.

Giordano Bruno November 17, 2004 14:48

Re: UDS BCs at wall
 
Thank you for your response... according to me the UDF manual isn't very clear about this argument.

Regards,

Giordano Bruno

Andrew Garrard November 18, 2004 05:22

Re: UDS BCs at wall
 
OK, well I am using a DEFIN_PROFILE for flux and value BC's for UDS's all the time, and they do work. There is an example in the manual for pressure profile, but this can just as easily be used for any other variable, such as temperature, velocity or, indeed, a UDS. Here is an example of how you would use it, it is almost identical to the manual:

#include "udf.h"

DEFINE_PROFILE(UDS_profile, t, i)

{

face_t f;

begin_f_loop(f, t)

{

F_PROFILE(f, t, i) = 10; // or whatever funciton you want

}

end_f_loop(f, t)

}


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