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

Sinusoidal Pressure inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2014, 10:07
Default Sinusoidal Pressure inlet
  #1
New Member
 
Rafau
Join Date: Aug 2013
Posts: 20
Rep Power: 13
rkadlof is on a distinguished road
Hey,
I want to set boundary condition - sinusoidal pressure inlet at circle shape(2d).
I think my UDF is not correct, can you take a look?


#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;
real t = CURRENT_TIME;

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, position) = 100 + 200*sin(500.* t);
}
end_f_loop(f, thread)
}
rkadlof is offline   Reply With Quote

Old   July 3, 2014, 11:03
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I don't know if it is correct, because I don't know what you exactly want. "sinusoidal pressure inlet", what does that mean? Something has a sinus-shape, but what? The pressure as function of time? The pressure as function of position?

Your code looks like the pressure is a function of time. Is that what you want?

And what makes you think that your UDF is not correct? Are the results not what you expect?
pakk is offline   Reply With Quote

Old   July 3, 2014, 11:13
Default
  #3
New Member
 
Rafau
Join Date: Aug 2013
Posts: 20
Rep Power: 13
rkadlof is on a distinguished road
thank you for fast response ;-)

I want to model point (exactly it is the small circle in huge ambient) which is point-sound source. That's why I need to apply p(t) function. Sinusoidal would be the best.
I've read some UDF tutorials, but most of them were focused on inlet at pipe like a straight line(2d). Some mistakes i have made were connected with timestep size.
(but few question to left)
1. in eq. F_PROFILE(f, thread, position) = 500 + 300 * sin(500000.* t);

500 is some const
300 is an Amplitude
500000 would be "w" - omega (angular velo)?
correct?
rkadlof is offline   Reply With Quote

Old   July 3, 2014, 11:21
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
If you use F_PROFILE(f, thread, position) = 500 + 300 * sin(500000.* t); the result is:

Average pressure is 500 Pa. (Gauge pressure, the absolute pressure depends on what you set as operating pressure.)
Minimum pressure is 500 Pa - 300 Pa = 200 Pa.
Maximum pressure is 500 Pa + 300 Pa = 800 Pa.
Every 2*pi seconds (6.28... s), there are 500000 "sine shapes".
In other words: your point has a frequency of 500000/2pi = 79.6 kHz. To resolve this, your time step needs to be in the order of microseconds.
pakk is offline   Reply With Quote

Old   July 3, 2014, 11:27
Red face
  #5
New Member
 
Rafau
Join Date: Aug 2013
Posts: 20
Rep Power: 13
rkadlof is on a distinguished road
I have realized that few minutes ago. Anyhow i really appreciate your response. That makes me sure of myself.

thank you Pakk
rkadlof is offline   Reply With Quote

Reply

Tags
sinusoidal udf


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
2D Hypersonic Inlet in FLUENT - Convergence Issues Fraisdegout FLUENT 6 December 15, 2016 03:07
"Pressure Inlet" Boundary Setup Wijaya FLUENT 15 May 18, 2016 11:08
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 18:16
Assign static pressure at inlet Tanjina FLUENT 0 November 3, 2013 12:34
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15


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