|
[Sponsors] |
August 18, 2010, 09:23 |
need help "acces violation error"
|
#1 |
New Member
Join Date: Aug 2010
Posts: 3
Rep Power: 15 |
Hello,
my code work fine, but when i add this macro of diffusivity, i get this message error, if you have any suggestion or similar error, contact me. thank you very much /*-------------------------------------------------------------------------*/ /* Diffusion coefficient for electrons */ /*-------------------------------------------------------------------------*/ DEFINE_DIFFUSIVITY(udf_electrondiffusivity, c, t, i) { real tempe = C_UDSI_G(c,t,Te); return (tempe(c,t,Te)[0] + tempe(c,t,Te)[1] ); } /*-------------------------------------------------------------------------*/ /* Diffusion coefficient for Heavy species */ /*-------------------------------------------------------------------------*/ DEFINE_DIFFUSIVITY(udf_heavdiffusivity, c, t, i) { real temph = C_UDSI_G(c,t,Th); return (temph[0] + temph(c,t,Th)[1] ) ; } ================================================== ============================ Stack backtrace generated for process id 31653 on signal 1 : /home/softwares/ansys_inc/v121/fluent/fluent12.1.2/lnamd64/2ddp/fluent.12.1.2[0x11a31dd] /home/softwares/ansys_inc/v121/fluent/fluent12.1.2/lnamd64/2ddp/fluent.12.1.2[0x11a36e3] /lib64/libpthread.so.0[0x31b1a0e4c0] libudf/lnamd64/2ddp/libudf.so(udf_heavdiffusivity+0xe)[0x2b1c5fc4cfb5] Check the file fluenterror.log for details. Please include this information with any bug report you file on this issue! ================================================== ============================ Error: fluent.12.1.2 received a fatal signal (SEGMENTATION VIOLATION). Error Object: #f |
|
August 18, 2010, 09:26 |
acces violation error
|
#2 |
New Member
Join Date: Aug 2010
Posts: 3
Rep Power: 15 |
excuse me the macro is :
DEFINE_DIFFUSIVITY(udf_electrondiffusivity, c, t, i) { return (C_UDSI_G(c,t,Te)[0] + C_UDSI_G(c,t,Te)[1] ); } /*-------------------------------------------------------------------------*/ /* Diffusion coefficient for Heavy species */ /*-------------------------------------------------------------------------*/ DEFINE_DIFFUSIVITY(udf_heavdiffusivity, c, t, i) { return (C_UDSI_G[0] + C_UDSI_G(c,t,Th)[1] ) ; } |
|
August 18, 2010, 14:34 |
|
#3 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 219
Rep Power: 18 |
What are the scalar quantities Te and Th for which you are computing the gradients?
|
|
August 19, 2010, 05:06 |
|
#4 |
New Member
Join Date: Aug 2010
Posts: 3
Rep Power: 15 |
i try to add two energy equations in my code, one for electron (with Te: electron temperature) and second for heavy species (Th: heavy temperature)
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation violation | louiza | FLUENT | 16 | June 27, 2017 15:41 |
Segmentation Violation | Corentin | FLUENT | 1 | February 13, 2011 01:07 |
Defining Multiphase by text and by gui = different result and Segmentation Violation | RPJones | FLUENT | 0 | June 9, 2009 16:24 |
segmentation violation | wasan | FLUENT | 0 | December 23, 2008 11:37 |
Access violation - Help please | AlwaysLearning | FLUENT | 3 | August 22, 2006 12:21 |