|
[Sponsors] |
April 7, 2006, 05:02 |
udf please
|
#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. |
|
April 7, 2006, 06:49 |
Re: udf please
|
#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) } |
|
April 7, 2006, 06:57 |
Re: udf please
|
#3 |
Guest
Posts: n/a
|
Hi,
Could you please elaborate your explanation. I could not understand. |
|
April 7, 2006, 08:25 |
Re: udf please
|
#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?
|
|
April 7, 2006, 23:48 |
Re: udf please
|
#5 |
Guest
Posts: n/a
|
Hi,
I found the problem and I could rectify it. Thanks for ur help. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |