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

UDF Pressure Inlet for standing wave

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2015, 15:13
Default UDF Pressure Inlet for standing wave
  #1
New Member
 
SDK123
Join Date: Sep 2014
Posts: 2
Rep Power: 0
SDK125 is on a distinguished road
I am simulating the thermo acoustic effect using Fluent. The basic principle is that we are providing the pressure inlet. We have placed the porous media in between the two ends. The other end is closed (reflecting wall). Because of the porous media temp difference is generated across the porous media.
I have two options
1)Run the simulation for 30min total time. The standing wave will form after @ 30 min experimentally.
2) or we can directly provide the standing wave as pressure inlet.
What will be the UDF for the standing wave as inlet pressure?
SDK125 is offline   Reply With Quote

Old   September 18, 2017, 15:13
Default Pulse wave
  #2
New Member
 
mrwan
Join Date: Dec 2015
Location: egypt
Posts: 27
Rep Power: 10
mrwan is on a distinguished road
U CAN USE PULSE WAVE AS
#include "udf.h"
#define pi (22/7)
#define frq 235
DEFINE_PROFILE(PRES_AIR_INLET, thread, position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f, thread)
{
if (sin(2*pi*frq*t)>=0)
F_PROFILE(f, thread, position) = 100E+3*sin(2*pi*frq*t);
else
F_PROFILE(f, thread, position) =0;
}
end_f_loop(f, thread)
}
IT VERY EASY TO USE
mrwan is offline   Reply With Quote

Old   May 5, 2021, 19:19
Default
  #3
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Hello
I am gonna simulate a thermoacoustic heat exchanger using fluent. The geometry accounts for a 3d shell and tube heat exchanger. The exhust gases of an engine function as hot fluid in conjunction with heating tubes containing standing/or traveling waves. As I am new at this field starting the process recently, could you please help me how to carry out the simulation.
Kind regards
ssj is offline   Reply With Quote

Old   May 5, 2021, 23:48
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
what are input data of your simulation and what are you going to get?
ssj likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   June 20, 2021, 14:59
Default velocity profile
  #5
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Quote:
Originally Posted by mrwan View Post
U CAN USE PULSE WAVE AS
#include "udf.h"
#define pi (22/7)
#define frq 235
DEFINE_PROFILE(PRES_AIR_INLET, thread, position)
{
face_t f;
real t = CURRENT_TIME;
begin_f_loop(f, thread)
{
if (sin(2*pi*frq*t)>=0)
F_PROFILE(f, thread, position) = 100E+3*sin(2*pi*frq*t);
else
F_PROFILE(f, thread, position) =0;
}
end_f_loop(f, thread)
}
IT VERY EASY TO USE
Dear Mrwan,
could we also use a velocity profile instead of the oscillatory pressure as an inlet boundary condition?
best
ssj is offline   Reply With Quote

Old   June 20, 2021, 15:12
Default
  #6
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
what are input data of your simulation and what are you going to get?
Dear AlexanderZ,
Thanks for your replay, I set mas flow inlet of my mixture as inlet B.C, needing a UDF file to be set as oscillatory pressure or velocity (skeptical which one must be used) inlet B>C at thermo-acoustic zones inside the heating tubes, as you can see in the figure attached. I am wondering if you worked on thermo-acoustic cfd simulation, it would be appreciated if you help me in this regard.
bestcfdx.png
ssj is offline   Reply With Quote

Old   June 20, 2021, 15:16
Default
  #7
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Quote:
Originally Posted by ssj View Post
Dear Mrwan,
could we also use a velocity profile instead of the oscillatory pressure as an inlet boundary condition?
best
Yes, just write the equation you want in mathematical language. Put it here, I can help you to put it in program form.

By the way: this is wrong on multiple levels:
Code:
#define pi (22/7)
Never use this. In Fluent code, you can just use M_PI if you need pi.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   June 20, 2021, 17:22
Default
  #8
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
thanks for your reply dear,
I don't know which B.C type could help more to write UDF on? oscillatory velocity or pressure
ssj is offline   Reply With Quote

Old   June 20, 2021, 17:49
Default
  #9
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I can't answer the question about which BC you should be using, because I don't know the goal of your simulation.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   June 20, 2021, 18:11
Default
  #10
New Member
 
mrwan
Join Date: Dec 2015
Location: egypt
Posts: 27
Rep Power: 10
mrwan is on a distinguished road
Quote:
Originally Posted by ssj View Post
Dear Mrwan,
could we also use a velocity profile instead of the oscillatory pressure as an inlet boundary condition?
best
yes it is available
mrwan is offline   Reply With Quote

Old   July 17, 2021, 16:20
Default error
  #11
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Quote:
Originally Posted by pakk View Post
Yes, just write the equation you want in mathematical language. Put it here, I can help you to put it in program form.

By the way: this is wrong on multiple levels:
Code:
#define pi (22/7)
Never use this. In Fluent code, you can just use M_PI if you need pi.
Dear Pakk,
I faced this error while compiling the UDF:
The UDF library you are trying to load (C:\Users\SSJ\Desktop\TAHX_files\dp0\FFF\Fluent\li budf) is not compiled for 3d on the current platform (win64).
could u plz help me how to fix that?
regards
ssj is offline   Reply With Quote

Old   July 18, 2021, 03:42
Default
  #12
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
This question is so common that I have put the answer in my signature a while ago. Please read what is directly below this.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   July 22, 2021, 02:59
Default
  #13
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Dear Pakk
Thanks for your reply. U are very supportive man! Id like to ask u that coud u plz tell me should we define a conditional statement for wave B.C equation? I mean i am gonna use this UDF for a travelling wave boundary condition, so, is the equation of wave the same as u wrote in the UDF?
Kind regards
ssj is offline   Reply With Quote

Old   July 22, 2021, 05:26
Default
  #14
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
I never wrote a UDF here. I don't know which BC you want to use. Tell me the BC (the equation, not just "for standing wave") and I can tell you how to implement that.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build".
pakk is offline   Reply With Quote

Old   July 30, 2021, 10:02
Default
  #15
ssj
New Member
 
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13
ssj is on a distinguished road
Dear guys,
As i said before I am simulating a thermoacoustic travelling wave heat exchanger using fluent. I would like to know that is it necessary to enable the "acoustics mode" in Fluent in order to extract the thermoacoustic effect?
regrads
ssj is offline   Reply With Quote

Reply

Tags
udf;thermoacoustic;fluent


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 for time dependent pressure inlet sirpolar FLUENT 0 June 2, 2014 08:52
Assign static pressure at inlet Tanjina FLUENT 0 November 3, 2013 12:34
"Closing" a pressure inlet via UDF? dave88 Fluent UDF and Scheme Programming 0 August 27, 2013 19:14
help with boundary profile in pressure inlet quiqui FLUENT 21 June 18, 2013 13:55
Maintaining Static Pressure at Fluid Flow Inlet cdevalve FLUENT 3 January 14, 2012 01:11


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