CFD Online Logo CFD Online URL
Home > Forums > FLUENT

surface integrals

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

LinkBack Thread Tools Display Modes
Old   November 20, 2006, 12:41
Default surface integrals
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) )




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

flux +=F_FLUX(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


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
Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 October 22, 2015 11:05
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 August 5, 2015 02:09
[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 22:09.