|
[Sponsors] |
Segmentation fault in Fluent UDF for volume of fraction |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 19, 2017, 13:37 |
Segmentation fault in Fluent UDF for volume of fraction
|
#1 |
New Member
Sahar Ahsaas
Join Date: Jun 2016
Posts: 2
Rep Power: 0 |
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]) } } |
|
|
|
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 |