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

surface integrals

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 20, 2006, 12:41
Default surface integrals
  #1
Lucy
Guest
 
Posts: n/a
I wrote simple code to calculate sum of flux and scalar0 on outlet.

#include "udf.h" DEFINE_ADJUST(adjust_new, domain) { Thread *t; face_t f; real flux, value; flux=0; value=0;

thread_loop_f(t,domain) { if ( t==Lookup_Thread(domain,5) )

{

begin_f_loop(f,t)

{

value += F_UDSI(f,t,0);

flux +=F_FLUX(f,t);

}

end_f_loop(f,t)

} } printf(flux= %f\n", flux); printf("value= %f\n", value); }

I compared results with results from Surface Integrals window on Fluent. The results should be the same. The flux is the same, but sum of scalar0 is different. Can anybody tell me why ??
  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
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 19 Today 05:10
Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 July 14, 2015 05:54
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
Mismatch between Fluent Surface Integrals Report and Surface Line/Rake Tool emlejeen FLUENT 0 March 31, 2010 11:21
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 10:41.