|
[Sponsors] |
October 11, 2019, 16:24 |
Problem with cell macros
|
#1 |
Member
Abhinand
Join Date: Jun 2016
Posts: 75
Rep Power: 10 |
Hello CFD ppl,
I came across an issue with cell macros. I have a density based solver setting and here is my UDF DEFINE_ADJUST(myadj,d) { int notime1; cell_t ci,cr; real CCI[2],CCR[2]; Thread *i_thread1; Thread *r_thread1; face_t f; real gradv; notime1 = 0; gradv = 0; i_thread1 = Lookup_Thread(d,ID_iplane); r_thread1 = Lookup_Thread(d,ID_rplane); ci = F_C1(f,i_thread1); begin_c_loop(ci,i_thread1) { if (notime1==30) { printf("\nCELL DATA\n"); C_CENTROID(CCI,ci,i_thread1); printf("Inlet x-coor %f y-coor %f\n",CCI[0],CCI[1]); printf("Inlet x-vel %f\n",C_U(ci,i_thread1)); printf("Inlet y-vel %f\n",C_V(ci,i_thread1)); printf("Inlet temp %f\n",C_T(ci,i_thread1)); printf("Inlet pressure %f\n",C_P(ci,i_thread1)); printf("Inlet TKE %f\n",C_K(ci,i_thread1)); printf("Inlet Diss %f\n",C_D(ci,i_thread1)); gradv = C_V_G(ci,i_thread1) [1]; printf("Inlet vgrad %f\n",gradv); } notime1++; } } When i add cell macros like C_V_G(c,t) or C_R(d,t) for density, the fluent process stops and it exits. When I remove these statements the udf works just fine. I also tried /solve/set/experts and yes to dont delete gradients I dont know what is causing this issue. Please help me understand this problem. Any help is greatly appreciated. Thanks |
|
Tags |
cell macros, fluent - udf, fluent stopped, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Neighboring cells in tetrahedral mesh | vishwesh | OpenFOAM Programming & Development | 9 | November 10, 2017 08:06 |
Problem with cell aspect ratio in the wake | nw_ds | Main CFD Forum | 0 | May 29, 2015 20:16 |
Problem calcualting the mass flow entering each cell | javiercran | FLUENT | 0 | May 31, 2012 16:24 |
Negative cell volume problem in-cylinder | ziani.lotfi | FLUENT | 0 | April 11, 2012 08:54 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |