|
[Sponsors] |
April 16, 2009, 09:28 |
piecewise functions in UDFs
|
#1 |
Member
Buddy
Join Date: Mar 2009
Location: P.R.C.
Posts: 30
Rep Power: 17 |
hi there
I want to load on the boundary a changing pressure which described by a piecewise function in the UDFs. question is:how? #include "udf.h" DEFINE_PROFILE(unsteady_outlet, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) =5.0e6*sin(10.*t); } end_f_loop(f, thread) } through the codes I can see how to set a continous formula but a piecewise function......no. help,please. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unsteady and Flux UDFs for UDSs | tom | FLUENT | 0 | February 13, 2009 10:27 |
When I use the wall functions....! | maximus | Main CFD Forum | 7 | January 20, 2003 09:35 |
User-Defined Functions | Boisson | FLUENT | 2 | January 18, 2002 22:09 |
N-S equations:divergence free functions? | D. Puigjaner | Main CFD Forum | 1 | July 27, 2000 12:43 |
Experimental Repository for UDFs, Journal Files and Scheme Scripts | Jonas Larsson | FLUENT | 0 | March 5, 2000 15:36 |