|
[Sponsors] |
July 30, 2018, 08:26 |
Synthetic jet 3D UDF
|
#1 |
New Member
Arun jacob
Join Date: Jul 2018
Posts: 3
Rep Power: 8 |
I am working on synthetic jet flow simulation. i want to know that how can i generate a 3d UDF for the following parameters velocity = 195m/sec, Frequency is 17.
I am also attaching the udf generated in 2d. Now i want to do the same in 3D..what are the changes that i should made to get the result. Please.. #include"udf.h" DEFINE_PROFILE(SJ_velocity,thread,position) { face_t f; begin_f_loop(f,thread) { real freq=17; real t= RP_Get_Real("flow-time"); F_PROFILE(f,thread,position) =195*sin(freq*(t)*(2.*3.141592654)); } end_f_loop(f,thread) } |
|
August 3, 2018, 16:43 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
This is for a boundary condition right? Otherwise you might need to use a cell thread and not a face thread.
Here's an example from the Fluent manual for a pressure profile. Code:
DEFINE_PROFILE(pressure_profile,t,i) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); y = x[1]; F_PROFILE(f,t,i) = 1.1e5 - y*y/(.0745*.0745)*0.1e5; } end_f_loop(f,t) } Also you shouldn't have ignored the rules which says to not post Fluent questions here, that's how posts get ignored and buried... |
|
August 4, 2018, 00:25 |
|
#3 |
New Member
Arun jacob
Join Date: Jul 2018
Posts: 3
Rep Power: 8 |
Thank you sir for your kind reply. i tried this code and divergence: AMG solver Temperature is detected
|
|
August 5, 2018, 19:59 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
Well (sarcasticly) I used it and it worked so beautifully that gold rained from the sky.
Why would you use the code as-is? It's probably completely incorrect for your problem. If only you would post what you did, maybe someone would help you... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Synthetic Jet | Gabriel Roudi | STAR-CCM+ | 7 | October 10, 2016 11:01 |
basics for unsteady simulation | ernani | FLUENT | 5 | July 29, 2016 07:18 |
problem of the drag's convergence for a circular cylinder with a synthetic jet (udf) | bia | FLUENT | 0 | February 17, 2015 12:06 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
synthetic jet velocity amplitude | adnen | Main CFD Forum | 1 | June 9, 2008 17:56 |