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

pressure profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2011, 12:37
Default pressure profile
  #1
New Member
 
kid ali
Join Date: Feb 2011
Posts: 1
Rep Power: 0
alicfd is on a distinguished road
Hi everyone
I have a problem with following UDF. I want to apply pressure on BC that pressure harmonizes with gradient vector! But when I init it, I accept error!
#include "udf.h"
#define viscosity 0.0029

DEFINE_PROFILE(Pressure_Profile , t , i){
cell_t c ;
begin_c_loop(c , t ){

C_PROFILE(c , t , i ) =2*viscosity*C_U_G(c , t )[0] ;
}
end_c_loop(c , t)
}
I think its reason is that Fluent isn’t solved equations yet. My problem is steady state!!
How can I apply folllowing BC?
P=2*viscosity*(du/dx)
Thanks a lot.
Kid Ali.
alicfd is offline   Reply With Quote

Old   February 25, 2011, 13:23
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi Ali,
first, you should use compiled UDF not interpreted one.
second,to keep gradient values you should use this TUI command:
solve/set/expert
if they didn't help, you can define gradient yourself.
Amir 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
Pressure Rise Error emueller CFX 0 May 5, 2009 11:08
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
FLOW AROUND A PLATE_NEGATIVE ABSOLUTE PRESSURE???? tania FLUENT 11 March 23, 2004 08:51
creating a pressure profile Nial Horton FLUENT 2 February 18, 2004 05:26
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 13:38.