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

surface integrals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 12:05
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
Mismatch between Fluent Surface Integrals Report and Surface Line/Rake Tool emlejeen FLUENT 0 March 31, 2010 12:21
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


All times are GMT -4. The time now is 19:50.