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

Problem about DPM_UDF(how to remove or stop tracking one partile by UDF?)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2016, 20:48
Default Problem about DPM_UDF(how to remove or stop tracking one partile by UDF?)
  #1
New Member
 
Join Date: Nov 2016
Posts: 1
Rep Power: 0
2592183371 is on a distinguished road
Help!
Here is my question:
I want to achieve the following function by UDF.
About 1000 particle were tracked in transient and the flow field is also in transient. If some condition about particle is reliazed, the particle was removed and the tracking for this particle was stopped.
However, I found that the steam_index is member of struct of "p(pointer to tracked particle)" in DPM_types.h and some discussion showed that p->steam_index can achieve this function.
But if I use this like follows:

# include "udf.h"
# include "dpm.h"
DEFINE_DPM_SCALAR_UPDATE(index,c,t,in,p)
{

if(.....)
{p->stream_index=-1;}

}


The UDF can be compiled and loaded but the following information appeared
Error: received a fatal signal(SEGMENTATION VIOLATION)


How to resolve this problem??

Thanks!!

Last edited by 2592183371; November 7, 2016 at 22:00.
2592183371 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
Vaporization pressure UDF property problem? lehoanganh07 Fluent UDF and Scheme Programming 1 September 13, 2014 10:59
UDF Problem about Grid Motion !!! Zhengyu Gao Fluent UDF and Scheme Programming 0 December 6, 2013 19:45
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 00:43


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