Inlet pressure
I simulated over expanded nozzle at 1 bar ambient , steady state with mass flow rate inlet condition. super sonic gauge presure i used 70 bar
now i wanted to change inlet pressure with respect to time . i give in put using #include "udf.h" DEFINE_PROFILE(unsteady_pressure, thread, position) { float t, pressure; face_t f; begin_f_loop(f, thread) { t = RP_Get_Real("flow-time"); pressure = 200000+300*t; F_PROFILE(f, thread, position) = pressure; } end_f_loop(f, thread) } and solved for 10 milli second and saved file.. when i look at result no change in pressure , remains 70 bar I did change the pressure inlet from constant to ydf pressure someone can help Regards Ali |
maybe it could be helpful
#include "udf.h" DEFINE_PROFILE(unsteady_pressure, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) =200000+300*t; } end_f_loop(f, thread) } |
If I understand you right, you are using a mass-flow inlet BC. In this case supersonic/initial gauge pressure is only used for initializing the solution and your udf will not have any effect for the rest of the computation.
cherrs |
means i should give mass flow inlet using udf?
can you help how? also if i have particles in flow how to give it using udf also? plz help Regards ali |
All times are GMT -4. The time now is 00:06. |