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

Segmentation fault in Fluent UDF for volume of fraction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2017, 13:37
Default Segmentation fault in Fluent UDF for volume of fraction
  #1
New Member
 
Sahar Ahsaas
Join Date: Jun 2016
Posts: 2
Rep Power: 0
Siddiqui is on a distinguished road
I am trying to modify the volume of fraction (VOF) and save it in memory so that I can use this modified VOF as the coefficents in granular viscosity equation through UDF in ANSYS FLUENT.
Coefficent=a*b; a is constant and b is VOF.
I identified that my Define Adjust macro part has problem; but I am not able
to rectify the problem. I need kind help to resolve it; please help.
Below is the UDF

#include "udf.h"
#include "sg_mphase.h"
DEFINE_ADJUST(coefficents,d)
{
cell_t cell,c0;
Thread **pt; /*array pointer to phase level threads*/
Thread *cell_thread,*t0;
Domain *mixture_domain;
mp_thread_loop_c(cell_thread, mixture_domain, pt) /*looping phase cell thread*/
{
begin_c_loop(cell,pt[1])
{
C_UDMI(c0,t0,0) = C_VOF(cell,pt[1])*5; /*coefficent in User difined Memory for secondary phase*/
}
end_c_loop(cell,pt[1])
}
}
Siddiqui is offline   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
I know WHERE but not WHY- segmentation fault in an interpreted UDF achint Fluent UDF and Scheme Programming 0 July 28, 2015 22:53
receive fluent received a fatal signal (Segmentation fault). chenkaiqe FLUENT 2 March 10, 2015 09:21
segmentation fault when installing OF-2.1.1 on a cluster Rebecca513 OpenFOAM Installation 9 July 31, 2012 16:06
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22
Fluent parallel: segmentation fault? hp FLUENT 2 September 6, 2001 15:18


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