|
[Sponsors] |
November 5, 2005, 11:31 |
Segmentation Error
|
#1 |
Guest
Posts: n/a
|
Hello,
Would like someone to advice me on a problem I encountered. I interpreted the following ON_DEMAND UDF (to store temp grad in y direction) and no error message was shown. When I activated under the "Execute on demand" panel, a segmentation error message appeared. I've check everythin and nothing seems to be wrong. I have allocated a memory for my udm (i.e. udm-0). Can anyone advice me? Is Get_Domain(1) necessary if I am simulating a single phase flow? Thank you. ===== #include "udf.h" DEFINE_ON_DEMAND(define_grad) { Domain *d; cell_t c; Thread *t; d = Get_Domain(1); thread_loop_c (t,d) { begin_c_loop (c,t) { C_UDMI(c,t,0) = C_T_G(c,t)[1]; } end_c_loop (c,t) } } |
|
November 5, 2005, 13:56 |
Re: Segmentation Error
|
#2 |
Guest
Posts: n/a
|
try doing one iteration before loading the UDF in the "Execute on demand" panel. I think its because FLUENT hasnt allocated the temperature gradients until an iteration has been completed.
|
|
November 7, 2005, 03:07 |
Re: Segmentation Error
|
#3 |
Guest
Posts: n/a
|
Hello,
Thanks a lot, Alec. I've tried your method, but apparently the error message still appeared. I'm using FLUENT under a UNIX environment. Could this error be related to the environment I'm using FLUENT in? Thank you |
|
November 7, 2005, 08:02 |
Re: Segmentation Error
|
#4 |
Guest
Posts: n/a
|
You could try the text command solve/set/expert and then answering yes to the question "Keep temporary solver memory from being freed?". Do some iterations and then run the udf. If the problem still persist try to store NV_MAG(C_T_G(c,t)), maybe its aproblem with the index.
Good Luck RoM |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 18:54 |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 20:11 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |