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

Fluent.6.2.received a fatal signal (SEGMENTATION )

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2007, 12:05
Default Fluent.6.2.received a fatal signal (SEGMENTATION )
  #1
Jungfeng
Guest
 
Posts: n/a
Hi, everyone,

I am using fluent.6.2.16 to simulate a deflecting pipe using an UDF as given in FLUENT 6.3 UDF Manual (Chapter 2: P203-P204).

The UDF is compiled as below :

#include "udf.h"

DEFINE_GRID_MOTION(pipe, domian, dt, time, dtime)

{ Thread *tf = DT_THREAD(dt);

face_t f;

Node *node_p;

real NV_VEC(omega), NV_VEC(axis), NV_VEC(dx);

real NV_VEC(origin), NV_VEC(rvec);

real sign;

int n;

sign =5.0*sin(26.178*time);

/* Message ("time = %f, omega = %f\n",time, sign);*/

NV_S(omega, =, 0.0); NV_D(axis,=, 0.0, 1.0, 0.0);

NV_D(origin,=, 0.153, 0.0, 0.0);

begin_f_loop(f,tf)

{

f_node_loop(f, tf, n);

if(NODE_Z(node_p)>=10&&NODE_POS_NEED_UPDATE(node_p ))

{

NODE_POS_UPDATED(node_p);

omega[1]=sign*pow(NODE_Z(node_p)/0.23, 0.5);

NV_VV(rvec, =, NODE_COORD(node_p), -, origin);

NV_CROSS(dx, omega, rvec);

NV_S(dx, *=, dtime);

NV_V(NODE_COORD(node_p), +=, dx);

}

}

end_f_loop(f, tf);

}

Grid check: Domain Extents: x-coordinate [-2.5, 2.5 ];

y-coordinate [-2.5, 2.5];

z-coordinate [0, 100];

The UDF compile correctly! The Dynamic Mesh Zone also defined successfully But , when I use Preview (Mesh Motion)to check the deflection of pipe .The error come up: Fluent.6.2.16 received a fatal signal (SEGMENTATION VIOLATION) Please someone help me find out the mistake in this UDF!

Thanx in advance!

  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
How to remove the error:FLUENT received a fatal signal (SEGMENTATION VIOLATION). Conan FLUENT 9 December 20, 2019 13:31
FLUENT received fatal signal (ACCESS_VIOLATION) shashikant FLUENT 3 November 29, 2014 13:03
A fatal signal (segmentation violation) sutthinan Fluent UDF and Scheme Programming 6 March 16, 2011 19:35
FLUENT received fatal signal (ACCESS_VIOLATION) jwt FLUENT 2 July 1, 2010 09:35
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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