CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

need help "acces violation error"

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2010, 10:23
Default need help "acces violation error"
  #1
New Member
 
Join Date: Aug 2010
Posts: 3
Rep Power: 17
hameur is on a distinguished road
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
hameur is offline   Reply With Quote

Old   August 18, 2010, 10:26
Default acces violation error
  #2
New Member
 
Join Date: Aug 2010
Posts: 3
Rep Power: 17
hameur is on a distinguished road
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] ) ;

}
hameur is offline   Reply With Quote

Old   August 18, 2010, 15:34
Default
  #3
Senior Member
 
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 20
tas38 is on a distinguished road
What are the scalar quantities Te and Th for which you are computing the gradients?
tas38 is offline   Reply With Quote

Old   August 19, 2010, 06:06
Default
  #4
New Member
 
Join Date: Aug 2010
Posts: 3
Rep Power: 17
hameur is on a distinguished road
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)
hameur is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation violation louiza FLUENT 16 June 27, 2017 16:41
Segmentation Violation Corentin FLUENT 1 February 13, 2011 02:07
Defining Multiphase by text and by gui = different result and Segmentation Violation RPJones FLUENT 0 June 9, 2009 17:24
segmentation violation wasan FLUENT 0 December 23, 2008 12:37
Access violation - Help please AlwaysLearning FLUENT 3 August 22, 2006 13:21


All times are GMT -4. The time now is 06:13.