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

Difference between C_U and F_U

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 20, 2017, 23:07
Unhappy Difference between C_U and F_U
  #1
New Member
 
HINTERLAND
Join Date: Aug 2017
Posts: 3
Rep Power: 2
hinterland1 is on a distinguished road
Hi everyone,

I'm currently setting a boundary condition for the shear stress on the walls, hence all faces i'm dealing with are interfaces.

My model is just a stationary 3-d cylindrical pipe with a velocity inlet and 0-pa outlet.

Why do I get different values for F_U and C_U? Aren't they supposed to be the fluid velocities of the same part/cell?

Code:
begin_f_loop(f,thread){
	v[0]=F_U(f, thread);
	v[1]=F_V(f, thread);
	v[2]=F_W(f, thread);
	cv[0]=C_U(F_C0(f,thread), THREAD_T0(thread));
	cv[1]=C_V(F_C0(f,thread), THREAD_T0(thread));
	cv[2]=C_W(F_C0(f,thread), THREAD_T0(thread));
}
hinterland1 is offline   Reply With Quote

Old   September 21, 2017, 03:39
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 783
Blog Entries: 17
Rep Power: 21
sbaffini will become famous soon enough
F_X variables are those on the boundary, defined at the centroid of the cell's face residing on the boundary. C_X variables are defined in the cell centers. If they were equal you wouldn't get any stress at all.
sbaffini 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



All times are GMT -4. The time now is 20:52.