CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How to implement free surface bc indirectly (https://www.cfd-online.com/Forums/fluent/39825-how-implement-free-surface-bc-indirectly.html)

Vishal February 25, 2006 05:19

How to implement free surface bc indirectly
 
Hi all, can somebody please tell me how to implement free surface boundary condition indirectly, using UDF (like DEFINE_PROFILE) in FLUENT? We can specify this bc directly by giving zero values to X and Y component of shear stress. But I want to know how to do this using UDF! Thanks & Regards Vishal

KP February 25, 2006 21:22

Re: How to implement free surface bc indirectly
 
Dear Vishal, I am not so sure but there exists a UDF in FLUENT UDFS list where you can compile and play safe. It is few lines of code and requires careful reading as it is well commented. Personally I hae no ideas nor I have used but it may help you. Let me know if that helps. also you can look in vivek ranades book there als he discusses few mwthods to implement free BC in FLUENT. Good Luck ! KP

Vishal February 26, 2006 23:32

Re: How to implement free surface bc indirectly
 
Hi KP, Thanks for the help. I found out how to specify the shear stress using UDF. Program is as follows, /* Free surface boundary condition using UDF */ #include "udf.h" DEFINE_PROFILE(freesur_profile, t, i) {

face_t f;

begin_f_loop(f,t)

{

F_PROFILE(f,t,i) =0;

}

end_f_loop(f,t) } Thank you, once again. Vishal



All times are GMT -4. The time now is 06:19.