CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Transient Velocity Inlet (2d synthetic jet) UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By akulagr
  • 1 Post By OpenFOAM-2016

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2016, 10:32
Default Transient Velocity Inlet (2d synthetic jet) UDF
  #1
New Member
 
Join Date: Oct 2015
Posts: 3
Rep Power: 11
akulagr is on a distinguished road
Hello all

my case is consisted of a flow over a hump with a synthetic jet in the interior of the hump. essentially the jet is required to blow and suck air with a frequency of 138.5 Hz at an approximate velocity out of the slot of the jet of 26.6 m/s
prescribed as : u=o
v= speed*cos(2*pi*f)
I'm fairly new in setting up User defined functions for boundary conditions, from digging around this forum and the literature the UDF for this particular case seems to be simple enough to formulate, but im getting some divergence after certain number of iterations. i wanted to double check whether im implementing the UDF correctly for the desired purpose.
im using a pressure outlet boundary condition to hook the UDF

/************************************************** ********************/
/* unsteady.c */
/* UDF for specifying a transient velocity profile boundary condition */
/************************************************** ********************/

#include "udf.h"

DEFINE_PROFILE(SJ_velocity, thread, position)
{
face_t f;

begin_f_loop(f, thread)
{
real freq=138.5;
real t = RP_Get_Real("flow-time");
F_PROFILE(f, thread, position) = 26.6*cos(freq*(t)*(2.*3.141592654));
}
end_f_loop(f, thread)


I was wondering if someone could point me in the right direction on implementing this function for this particular case

much appreciated

David
OpenFOAM-2016 likes this.
akulagr is offline   Reply With Quote

Old   July 31, 2016, 09:38
Default
  #2
New Member
 
Join Date: Oct 2015
Posts: 3
Rep Power: 11
akulagr is on a distinguished road
please guys any help will be greatly appreciated
akulagr is offline   Reply With Quote

Old   August 13, 2016, 12:12
Default
  #3
New Member
 
Mike
Join Date: Jul 2016
Posts: 6
Rep Power: 10
OpenFOAM-2016 is on a distinguished road
OK. I guess here's the problem. From 0 to pi/2 the velocity is positive so there is no problem and the problem is being solved. but after this point you got negative velocity at the inlet so that's where the divergence occurs because the flow is getting out the domain and the outlet boundary condition cannot stand this condition. OK try this: set an average velocity at a value that is larger than the amplitude of the oscillation. So the velocity of the inlet port will never get negative. Then see how's the results.
zayryn likes this.
OpenFOAM-2016 is offline   Reply With Quote

Old   July 30, 2018, 04:04
Default 3D synthetic jet
  #4
New Member
 
Arun jacob
Join Date: Jul 2018
Posts: 3
Rep Power: 8
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.
#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)

}

Last edited by Arun Jacob; July 30, 2018 at 04:13. Reason: some part missing
Arun Jacob is offline   Reply With Quote

Old   October 18, 2018, 02:31
Default 3d synthetic jet
  #5
New Member
 
Vilas
Join Date: Oct 2018
Location: Pune maharashtra,india
Posts: 13
Rep Power: 8
tadevilas is on a distinguished road
Sir.
I have also same problem can you help me.
tadevilas is offline   Reply With Quote

Reply

Tags
transient 2d, udf, user defined b.c.


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
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 07:45
UDF: Change boundary condition. Velocity inlet to pressure inlet at time "t" jpina FLUENT 10 April 11, 2015 15:19
problem of the drag's convergence for a circular cylinder with a synthetic jet (udf) bia FLUENT 0 February 17, 2015 12:06
How to set transient velocity inlet bc LijieNPIC OpenFOAM 1 September 4, 2011 12:43
Fluent6.0 UDF inlet velocity BC David FLUENT 5 September 7, 2002 03:07


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