|
[Sponsors] |
April 23, 2015, 15:13 |
UDF Pressure Inlet for standing wave
|
#1 |
New Member
SDK123
Join Date: Sep 2014
Posts: 2
Rep Power: 0 |
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? |
|
September 18, 2017, 15:13 |
Pulse wave
|
#2 |
New Member
mrwan
Join Date: Dec 2015
Location: egypt
Posts: 27
Rep Power: 10 |
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 |
|
May 5, 2021, 19:19 |
|
#3 |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
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 |
|
May 5, 2021, 23:48 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
what are input data of your simulation and what are you going to get?
__________________
best regards ****************************** press LIKE if this message was helpful |
|
June 20, 2021, 14:59 |
velocity profile
|
#5 | |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
Quote:
could we also use a velocity profile instead of the oscillatory pressure as an inlet boundary condition? best |
||
June 20, 2021, 15:12 |
|
#6 | |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
Quote:
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 |
||
June 20, 2021, 15:16 |
|
#7 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
By the way: this is wrong on multiple levels: Code:
#define pi (22/7)
__________________
"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". |
||
June 20, 2021, 17:22 |
|
#8 |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
thanks for your reply dear,
I don't know which B.C type could help more to write UDF on? oscillatory velocity or pressure |
|
June 20, 2021, 17:49 |
|
#9 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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". |
|
June 20, 2021, 18:11 |
|
#10 |
New Member
mrwan
Join Date: Dec 2015
Location: egypt
Posts: 27
Rep Power: 10 |
||
July 17, 2021, 16:20 |
error
|
#11 | |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
Quote:
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 |
||
July 18, 2021, 03:42 |
|
#12 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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". |
|
July 22, 2021, 02:59 |
|
#13 |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
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 |
|
July 22, 2021, 05:26 |
|
#14 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
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". |
|
July 30, 2021, 10:02 |
|
#15 |
New Member
sscfd
Join Date: Jun 2013
Posts: 20
Rep Power: 13 |
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 |
|
Tags |
udf;thermoacoustic;fluent |
|
|
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 |