|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
Can anybody tell me how to write a udf for pressure changing with time? It is an unsteady formulation problem. |
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
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) } |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
Hi,
Could you please elaborate your explanation. I could not understand. |
|
|
||
|
|
|
#4 |
|
Guest
Posts: n/a
|
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?
|
|
|
||
|
|
|
#5 |
|
Guest
Posts: n/a
|
Hi,
I found the problem and I could rectify it. Thanks for ur help. |
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
| UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
| How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
| UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
| UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |