pressure profile
Hi everyone
I have a problem with following UDF. I want to apply pressure on BC that pressure harmonizes with gradient vector! But when I init it, I accept error! #include "udf.h" #define viscosity 0.0029 DEFINE_PROFILE(Pressure_Profile , t , i){ cell_t c ; begin_c_loop(c , t ){ C_PROFILE(c , t , i ) =2*viscosity*C_U_G(c , t )[0] ; } end_c_loop(c , t) } I think its reason is that Fluent isn’t solved equations yet. My problem is steady state!! How can I apply folllowing BC? P=2*viscosity*(du/dx) Thanks a lot. Kid Ali. |
Hi Ali,
first, you should use compiled UDF not interpreted one. second,to keep gradient values you should use this TUI command: solve/set/expert if they didn't help, you can define gradient yourself. |
All times are GMT -4. The time now is 01:52. |