|
[Sponsors] |
Fluent15: received a fatal signal (Segmentation fault) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 12, 2014, 17:21 |
Fluent15: received a fatal signal (Segmentation fault)
|
#1 |
New Member
Chenguang Li
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
Hi all,
I just don't know why I meet this error once I begin to run a multiphase case with UDF. The case could run well in Fluent 13. So strange.... Please help me. Chenguang |
|
June 13, 2014, 04:32 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I also don't know why you got this error.
I tried to look at your UDF to see what can be causing the problem, but since you did not include the UDF in your question, I can only guess. So: Maybe there is a typo in line 8 of you udf? Did this help you? |
|
October 19, 2014, 20:32 |
|
#3 |
Member
Tleja
Join Date: Sep 2013
Posts: 40
Rep Power: 13 |
My case is Fluidized bed in 2D. I have to patch Zone of solid before simulation.
I also meet the same error "Error: received a fatal signal (Segmentation fault)" while i begin to run a multiphase(2 mixture phase:solid,gas) with reaction.Not including UDF file But i have already set my case in 3D. It's ok. I don't know why i can only set the same setting in 3D Fluidized bed. Please help me know Tleja |
|
August 29, 2016, 09:06 |
Segmentation fault
|
#4 |
New Member
saad
Join Date: May 2012
Posts: 6
Rep Power: 14 |
I am trying to add the source term in the momentum equation and epsilon equation. but when i am trying to run the simulation it is showing fatal error/ segmentation fault. My UDF is
# include "udf.h" # include "mem.h" # define domain_ID 1 DEFINE_ADJUST(adjust_gradient, domain) { Thread *t; cell_t c; face_t f; real temp_gradient_y, vel_gradient, di,k; domain = Get_Domain(1); thread_loop_c(t,domain) { begin_c_loop(c,t) { if (NULL != THREAD_STORAGE(t,SV_T_RG)) { temp_gradient_y = C_T_RG(c,t)[1]; C_UDMI(c,t,0)=temp_gradient_y; } else { /* first iteration OR option to store gradients not turned on */ temp_gradient_y = 0.0; } end_c_loop(c,t) } } /* Fill UDS with the variable. */ thread_loop_c (t,domain) { begin_c_loop (c,t) { C_UDSI(c,t,0) = C_U(c,t); C_UDSI(c,t,1) = C_K(c,t); C_UDSI(c,t,2) = C_D(c,t); } end_c_loop (c,t) } thread_loop_f(t,domain) { if (THREAD_STORAGE(t,SV_UDS_I(0))!=NULL) begin_f_loop (f,t) { F_UDSI(f,t,0) = F_U(f,t); F_UDSI(f,t,1) = F_K(f,t); F_UDSI(f,t,2) = F_D(f,t); } end_f_loop (f,t) } thread_loop_c (t,domain) { begin_c_loop (c,t) { vel_gradient = C_UDSI_G(c,t,0)[1]; C_UDMI(c,t,1) = vel_gradient; k = C_UDSI(c,t,1); C_UDMI(c,t,2) = k; di = C_UDSI(c,t,2); C_UDMI(c,t,3) = di; } end_c_loop (c,t) } } DEFINE_SOURCE(mom_source,c,t,dS,eqn) { real x[ND_ND]; real source; C_CENTROID(x,c,t); source= 1418000*(C_T(c,t)-1.5); dS[eqn]= 0.0; return source; } DEFINE_SOURCE(G_source,c,t,dS,eqn) { real x[ND_ND]; real souurce; C_CENTROID(x,c,t); souurce= -(C_UDMI(c,t,0)*C_UDMI(c,t,1)*C_UDMI(c,t,2)*C_UDMI( c,t,2)*64448.1)/C_UDMI(c,t,3); printf("temp_gradient:%g\n", C_UDMI(c,t,0)); printf("vel_gradient:%g\n", C_UDMI(c,t,1)); dS[eqn]= (C_UDMI(c,t,2)*C_UDMI(c,t,2)*64448.1*C_UDMI(c,t,0) *C_UDMI(c,t,1))/(C_UDMI(c,t,3)*C_UDMI(c,t,3)); return souurce; } Please help me Pakk. |
|
August 29, 2016, 13:19 |
|
#5 |
Senior Member
duri
Join Date: May 2010
Posts: 245
Rep Power: 17 |
I couldn't notice any bug or uninitialized variable in the code. Are you sure all user defined memory are allocated before running the code?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove the error:FLUENT received a fatal signal (SEGMENTATION VIOLATION). | Conan | FLUENT | 9 | December 20, 2019 13:31 |
VOF model error:Cortex received a fatal signal (SEGMENTATION VIOLATION) | Sdezmond | Fluent Multiphase | 4 | July 20, 2017 04:03 |
fluent 13.0.0 received a fatal signal (SEGMENTATION VIOLATION)) | alinik | FLUENT | 1 | January 9, 2014 11:21 |
FLUENT received fatal signal (ACCESS_VIOLATION) | osamaghani | FLUENT | 2 | March 31, 2012 17:15 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |