CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF - Error while Solution Initialization

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

LinkBack Thread Tools Display Modes
Old   November 4, 2012, 09:29
Default UDF - Error while Solution Initialization
New Member
PhanHuuQuocHung study at HoChiMinh City University of Technology
Join Date: Oct 2012
Posts: 6
Rep Power: 5
QuocHung_Phan is on a distinguished road
hello everyone,
After building and loading udf mixedbc.c when i initialize it gives the following 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: #f

i used this udf there is problem while initialization
/************************************************** *************************/
/* Implementation of the mixed boundary condition for a UDS (or multiple): */
/* q = hC ( phi - PHI_inf ) */
/************************************************** *************************/

#include "udf.h"
#include "sg.h" /* needed for the secondary gradient source macro */

/* Names of the user-defined scalar to be used */

DEFINE_PROFILE(scalarMixedBC, thread, nv)
/* constants must be specified correctly for the mixed BC */
real hC, PHI1_inf;

/* ==================== */

face_t f;
real A[ND_ND], dG[ND_ND], dr0[ND_ND], es[ND_ND], dr, A_by_es;
real Af;
real beta0, gamma;
real temp1, temp2;

Thread *t0=thread->t0;

begin_f_loop(f, thread)

/* identify the cell thread adjacent to the face thread f */
cell_t c0 = F_C0(f, thread);

BOUNDARY_FACE_GEOMETRY(f, thread, A, dr, es, A_by_es, dr0);
gamma=C_UDSI_DIFF(c0, t0, phi1);

if (NULLP(T_STORAGE_R_NV(t0, SV_UDSI_G(phi1))))
beta0=0; /* if gradient is not allocated and stored yet, bypass
the following macro (it happens when case/data files are being read */
BOUNDARY_SECONDARY_GRADIENT_SOURCE(beta0, SV_UDSI_G(phi1),dG, es, A_by_es, gamma);

/* temporary variables used in the profile expression */

F_PROFILE(f, thread, nv)
= (temp1*C_UDSI(c0, t0, phi1)- beta0 + temp2*PHI1_inf)/(temp2 + temp1);
end_f_loop(f, thread)


Can anybody help me please?
QuocHung_Phan is offline   Reply With Quote

Old   October 11, 2013, 02:59
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8
tinhtt is on a distinguished road
Hi Quoc Hung,
Access_violation usually happened when the indexes of called variables are handled not correctly.
If your problem still remains, I recommence you to refer an example my_uds_flux on page 197 of UDF Manual Guide, Ansys Fluent V14.
tinhtt is offline   Reply With Quote

Old   October 11, 2013, 03:03
New Member
Join Date: Sep 2009
Posts: 19
Rep Power: 8
tinhtt is on a distinguished road
or resolution for same error on forum
User-Defined Scalar (UDS) Source code
tinhtt is offline   Reply With Quote


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
solution initialization Jabe FLUENT 0 May 9, 2008 12:42
error during solution initialization Muhammad Usman Qureshi FLUENT 7 March 31, 2008 07:26
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF initialization Sam FLUENT 1 May 21, 2002 08:23
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 02:16

All times are GMT -4. The time now is 10:54.