CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Error while running UDF - Fluent

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 17, 2011, 05:58
Default Error while running UDF - Fluent
  #1
New Member
 
r
Join Date: Mar 2011
Posts: 6
Rep Power: 6
roca is on a distinguished road
Hello!

I get the following error message while I run the simulation with an UDF

Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()

I have no problems in compiling and interpreting this UDF. I have found that the problem is linked to following part of the code below.

Thread *tc = THREAD_SUPER_THREAD(thread); /*obtain mixture thread */
Thread **pt = THREAD_SUB_THREADS(tc); /* pointer to sub_threads */
Thread *tp = pt[P_PHASE]; /* primary phase thread */

solute_mass_frac=C_YI(cell,tp,0);

When I run the simulation with the UDF and I specify solute_mass_frac=0.5 (for example 0.5) the simulation runs without errors. So, this has to be linked to C_YI(cell,tp,0). Or probably to the way ''tp'' is set.

Does anybody could tell me what I am doing wrong?

thank you in advance
roca is offline   Reply With Quote

Old   March 6, 2013, 06:33
Default
  #2
New Member
 
Andrej POHAR
Join Date: Nov 2012
Posts: 2
Rep Power: 0
apohar is on a distinguished road
I have exactly the same problem, I narrowed it down to solute_mass_frac = C_YI(cell,tp,0);

Did you manage to solve it? Thanks in advance.
apohar is offline   Reply With Quote

Old   March 7, 2013, 03:30
Default
  #3
New Member
 
Andrej POHAR
Join Date: Nov 2012
Posts: 2
Rep Power: 0
apohar is on a distinguished road
I found the answer in the manual, C_YI isn't defined so you have to use Pdf_Yi(cell,tp,0)
apohar is offline   Reply With Quote

Reply

Tags
c_yi, error, mass fraction, udf

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of running parallel Fluent on linux cluster ivanbuz FLUENT 11 March 10, 2010 16:13
Compiling UDF in Fluent 12 jsm FLUENT 1 July 22, 2009 07:40
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
need some basic help with fluent udf aarti sekaran FLUENT 8 February 12, 2008 01:57
Parallel Fluent +UDF Jack Martinez FLUENT 0 June 28, 2007 11:19


All times are GMT -4. The time now is 11:21.