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

UDF parbolic inlet velocity profile for 3D Ractangular channel flow.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2016, 07:32
Default UDF parbolic inlet velocity profile for 3D Ractangular channel flow.
  #1
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
i am using fluent and i have used UDF for parabolic velocity profile for 2D case at inlet as

#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) = 0.4382 - y*y/(0.005*0.005)*0.4382;
}
end_f_loop(f, thread)
}


now i want to use UDF for 3D case, how can i convert this for 3D case?
please help me

thanks in advance
srv537 is offline   Reply With Quote

Old   August 10, 2016, 07:49
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,793
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
the 3D problem you wanto to study has 4 walls? In such case you must solve the elliptic equation Lap w = q on the inflow plane (w is the streamwise velocity, q depends on the pressure gradient and Re number)
FMDenaro is offline   Reply With Quote

Old   August 10, 2016, 08:02
Default
  #3
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
the 3D problem you wanto to study has 4 walls? In such case you must solve the elliptic equation Lap w = q on the inflow plane (w is the streamwise velocity, q depends on the pressure gradient and Re number)
yes four wall but i just want to specify (u) normal component of velocity at inlet surface and v=w=0.
srv537 is offline   Reply With Quote

Old   August 10, 2016, 08:05
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,793
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by srv537 View Post
yes four wall but i just want to specify (u) normal component of velocity at inlet surface and v=w=0.

I called w the streamwise component that you called u. It is the same, you must solve the 2D Poisson problem.
FMDenaro is offline   Reply With Quote

Old   August 10, 2016, 09:25
Default
  #5
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
I called w the streamwise component that you called u. It is the same, you must solve the 2D Poisson problem.
actually i want to modify this code for 3D velocity profile and compile to fluent as a inlet boundary condition.
i dont know how to do this
srv537 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Pulsatile Blood Flow Inlet Velocity Profile Sicario FLUENT 15 May 12, 2022 04:16
How do I prescribe Average Velocity /Total Inlet Flow for a simple channel problem? skuznet OpenFOAM Pre-Processing 4 February 16, 2022 09:44
UDF - Inlet Velocity Profile (Ansys Fluent) vinayak4399 Fluent UDF and Scheme Programming 3 August 25, 2020 14:15
UDF parbolic inlet velocity profile for 3D channel flow. srv537 FLUENT 0 August 6, 2016 02:21
[swak4Foam] Inlet velocity profile for turbulent pipe flow using swak4Foam zordiack OpenFOAM Community Contributions 5 February 23, 2016 01:52


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