|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
The following UDF will result in a segmentation fault. All it does is to go through all the faces and obtain a velocity component. The solution domain has been initialized prior to its execution. Interpreted UDF was used. Is there anything else I should be aware of?
<tt> #include "udf.h"#include "mem.h" DEFINE_ON_DEMAND(test){ Domain *d;Thread *t;face_t f;double u; d = Get_Domain (1); thread_loop_f (t, d) {begin_f_loop (f, t) { u = C_U (f, t); } end_f_loop (f, t);} /*thread_loop_f */} /* udf */ </tt> |
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
What about using F_U instead of C_U?
Max |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
Shoot ... I meant to write <tt>F_U</tt> (not <tt>C_U</tt>). BW.
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Import netgen mesh to OpenFOAM | hsieh | Open Source Meshers: Gmsh, Netgen, CGNS, ... | 32 | September 13, 2011 05:50 |
| BlockMeshmergePatchPairs | hjasak | OpenFOAM Native Meshers: blockMesh | 11 | August 15, 2008 07:36 |
| fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
| Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Native Meshers: blockMesh | 10 | April 2, 2007 14:00 |
| Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 2 | July 15, 2005 04:15 |