|
[Sponsors] |
November 20, 2006, 12:41 |
surface integrals
|
#1 |
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 ?? |
|
|
|
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 |