udf please
Hi,
Can anybody tell me how to write a udf for pressure changing with time? It is an unsteady formulation problem. |
Re: udf please
If it's a basic function of t at an inlet you could use something like:
#include "udf.h" DEFINE_PROFILE(inlet_x1_pressure, thread, index) { face_t f; real t = RP_Get_Real("flow-time"); begin_f_loop (f,thread) { F_PROFILE(f,thread,index) = (some function of t) } |
Re: udf please
Hi,
Could you please elaborate your explanation. I could not understand. |
Re: udf please
It depends on how your inlet varies with time, does it obey an algebraic function or have you just got values at different points in time?
|
Re: udf please
Hi,
I found the problem and I could rectify it. Thanks for ur help. |
All times are GMT -4. The time now is 18:54. |