|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
|
Hello,
I need a sinusoidal time varying UDF for my problem , I am kind of new to fluent , please direct me , any time varying BC tutorial is helpful but couldnt find any on google Thankyou Tejasvi |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
|
Hi,
if you are new in UDF, it will be better to use other ways like defining a profile. refer to: <defining transient boundary conditions> in user guide (7.1.9 in FLUENT 6.3.26) |
|
|
|
|
|
|
|
|
#3 |
|
New Member
|
thanks for the reply, I will try that out , meanwhile I have written an UDF , does this look reasonable
#include "udf.h" DEFINE_PROFILE(transient_velocity, thread, position) { float t, velocity; face_t f; t = RP_Get_Real("flow-time"); velocity = Sin(40*3.14*t); begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = velocity; } end_f_loop(f, thread) |
|
|
|
|
|
|
|
|
#4 | |
|
Senior Member
|
it needs some changes:
Quote:
|
||
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Transient simulation not converging | skabilan | OpenFOAM Running, Solving & CFD | 14 | December 17, 2019 00:12 |
| How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
| how did I see next time step of velocity cotour ? | Andy Chen | FLUENT | 2 | June 30, 2009 13:48 |
| please help-time varying inlet velocity | saurabh | Phoenics | 1 | June 9, 2009 07:17 |
| DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |