CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Synthetic jet 3D UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2018, 07:26
Default Synthetic jet 3D UDF
  #1
New Member
 
Arun jacob
Join Date: Jul 2018
Posts: 3
Rep Power: 7
Arun Jacob is on a distinguished road
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)

}
Arun Jacob is offline   Reply With Quote

Old   August 3, 2018, 15:43
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,679
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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)
  }
You only need to use x[0] for the x-coordinate and x[2] for the z-coordinate.

Also you shouldn't have ignored the rules which says to not post Fluent questions here, that's how posts get ignored and buried...
LuckyTran is offline   Reply With Quote

Old   August 3, 2018, 23:25
Default
  #3
New Member
 
Arun jacob
Join Date: Jul 2018
Posts: 3
Rep Power: 7
Arun Jacob is on a distinguished road
Thank you sir for your kind reply. i tried this code and divergence: AMG solver Temperature is detected
Arun Jacob is offline   Reply With Quote

Old   August 5, 2018, 18:59
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,679
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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...
LuckyTran is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Synthetic Jet Gabriel Roudi STAR-CCM+ 7 October 10, 2016 10:01
basics for unsteady simulation ernani FLUENT 5 July 29, 2016 06:18
problem of the drag's convergence for a circular cylinder with a synthetic jet (udf) bia FLUENT 0 February 17, 2015 11:06
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
synthetic jet velocity amplitude adnen Main CFD Forum 1 June 9, 2008 16:56


All times are GMT -4. The time now is 10:10.