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

Segmentation Error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 5, 2005, 12:31
Default Segmentation Error
  #1
Leo
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)

}

}

  Reply With Quote

Old   November 5, 2005, 14:56
Default Re: Segmentation Error
  #2
Alec Eiffel
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.
  Reply With Quote

Old   November 7, 2005, 04:07
Default Re: Segmentation Error
  #3
Leo
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
  Reply With Quote

Old   November 7, 2005, 09:02
Default Re: Segmentation Error
  #4
RoM
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
  Reply With Quote

Reply

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
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 21:11
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20: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


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