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

accessing gradient in boundary for define_proile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 19, 2006, 02:23
Default accessing gradient in boundary for define_proile
  #1
Asghari
Guest
 
Posts: n/a
Hi all;

I want accessing to pressure reconstruction gradient or usual gradient in bondary using my define_profile. My define_profile for pressure outlet is in following: DEFINE_PROFILE(pressure_outlet, thread, index)

{

real A[ND_ND],dr0[ND_ND],es[ND_ND],d1,dr,A_by_es ;

face_t f;

begin_f_loop(f, thread) /* loops over all faces in the thread passed in the DEFINE macro argument */

{ /** identify the cell thread adjacent to the face thread **/ Thread *t0=thread->t0;

cell_t C0=F_C0(f,thread);

BOUNDARY_FACE_GEOMETRY(f,thread,A,dr,es,A_by_es,dr 0) ; if (NNULLP(T_STORAGE_R_NV(t0,SV_P_RG)) )

{

d1=dr0[0]*C_P_RG(C0,t0)[0]+dr0[1]*C_P_RG(C0,t0)[1] ;

F_PROFILE(f, thread, index) = C_P(C0,t0)+d1;

}

else

{

F_PROFILE(f, thread, index) = -500.0;

}

}

end_f_loop(f, thread)

} But pressure in outlet is -500 at all and is'nt entered to first loop in if command. How can i solve this problem ?

Thanks alot for your help.
  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
chtmultiregionFoam - Gradient at Coupling boundary FekrKon OpenFOAM 1 April 2, 2012 11:50
temperature normal gradient on a boundary Sandrine Main CFD Forum 2 June 10, 2009 16:34
normal temperature gradient on a boundary Sandrine FLUENT 0 June 10, 2009 12:29
Problem accessing Temp. Gradient . . . Satish FLUENT 16 December 16, 2003 14:44
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54


All times are GMT -4. The time now is 01:04.