|
[Sponsors] |
unable to run macro C_CHILD(c,t,i) in fluent. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 26, 2018, 14:29 |
unable to run macro C_CHILD(c,t,i) in fluent.
|
#1 |
New Member
Piyush
Join Date: Apr 2015
Location: Kolkata
Posts: 12
Rep Power: 11 |
Hi all,
I have written following udf for accessing neighbours of a cell in fluent. The macro I am using i.e C_CHILD(c,t,i) is defined in "mem.h". I am also allocating variables associated with this in this header file. Still Access violation error is coming. Can someone suggest way to make it run ?? Thanks & Regards, Piyush Pant #include "udf.h" DEFINE_ADJUST(cell_child, d) { Thread *t; cell_t c; int n; FILE *fp; Alloc_Storage_Vars(d,SV_CHILD,SV_CHILD_THREAD,SV_N ULL); thread_loop_c(t,d) { // if(NNULLP(THREAD_STORAGE(t,SV_CHILD))) // Message(" SV_CHILD variable not allocated \n"); // else // Message(" SV_CHILD variable allocated \n"); begin_c_loop(c,t) { c_child_loop(c,t,n) { fp = fopen("data1.txt", "a"); fprintf(fp," c, n = %u %d %u \n ", c, n, C_CHILD_INDEX(c,t,n) ); fclose(fp); } } end_c_loop(c,t) } Free_Storage_Vars(d,SV_CHILD,SV_CHILD_THREAD,SV_NU LL); } |
|
Tags |
access violation error, fluent - udf, neighbouring cells, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looking for a smart interface matlab fluent | chary | FLUENT | 24 | June 18, 2021 10:07 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 23:56 |
Problem in using parallel process in fluent 14 | Tleja | FLUENT | 3 | September 13, 2013 11:54 |
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, | cfdproject | OpenFOAM Meshing & Mesh Conversion | 0 | April 14, 2009 16:45 |
resume and run fluent for another timestep via a c | greg | FLUENT | 2 | June 30, 2005 06:01 |