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

UDF parabolic velocity profile issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2020, 02:20
Default UDF parabolic velocity profile issue
  #1
New Member
 
Koo How Boon
Join Date: Mar 2020
Posts: 13
Rep Power: 6
Kenzhia3310 is on a distinguished road
I have an issue about parabolic velocity profile in my .c file.
I want to create a parabolic inlet with 0.3m/s max speed and pipe diameter is 8mm.
And I found this code from the others, is this applicable for my case?

THE CODE SHOWN AS BELOW:
#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y, h;
face_t f;

h = 0.004; /* inlet height in m */

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
y = 2.*(x[1]-0.5*h)/h; /* non-dimensional y coordinate */
F_PROFILE(f, thread, position) = 0.3*(1.0-y*y);
}
end_f_loop(f, thread)
}
Kenzhia3310 is offline   Reply With Quote

Old   April 7, 2020, 08:31
Default Code
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Yes, this would work.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 7, 2020, 11:29
Default
  #3
New Member
 
Koo How Boon
Join Date: Mar 2020
Posts: 13
Rep Power: 6
Kenzhia3310 is on a distinguished road
I have applied the parabolic velocity into my biogas-air premixed combustion.
However, I didn't get my expected result.
Here is my settings for the system(Stoichiometric mixtures)
1.Air fuel inlet velocity: 0.3 m/s parabolic velocity
Coflow inlet velocity: 0.05m/s
2. 40% CO2 and 60% CH4 for fuel; 21% O2 and 79% N2 for air
3. Mole fraction (air fuel inlet): CH4= 0.0894, O2 = 0.1788, N2 = 0.6722, CO2 = 0.0596

Is there any problem for my settings here to get the flame?
Kenzhia3310 is offline   Reply With Quote

Old   April 7, 2020, 12:20
Default Reactions
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Parabolic velocity profile has got nothing to do with flame. Even if you use flat profile, it may or may not result in flame. Combustion depends on correct setup of combustion model, initialization, material properties, and thermal boundary conditions.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply


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 Parabolic 2D Velocity Profile Issue chrislyn FLUENT 2 December 11, 2018 13:11
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 07:45
UDF for 3d inlet parabolic velocity profile ? shahzeb irfan Fluent UDF and Scheme Programming 10 March 28, 2016 16:00
Ansys FLUENT UDF - Velocity profile (of known values) across edge / surface emmkell Fluent UDF and Scheme Programming 2 October 21, 2011 14:12
Logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 20:09


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