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

pressure profile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 25, 2011, 13: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, 14:23
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
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

Thread Tools
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 On
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 09:51
creating a pressure profile Nial Horton FLUENT 2 February 18, 2004 06:26
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00


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