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

can't access face variables ...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2007, 23:32
Default can't access face variables ...
  #1
bart weisser
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>
  Reply With Quote

Old   September 28, 2007, 07:52
Default Re: can't access face variables ...
  #2
max
Guest
 
Posts: n/a
What about using F_U instead of C_U?

Max
  Reply With Quote

Old   September 28, 2007, 15:09
Default Re: can't access face variables ...
  #3
bart weisser
Guest
 
Posts: n/a
Shoot ... I meant to write <tt>F_U</tt> (not <tt>C_U</tt>). BW.
  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
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


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