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

udf: volume fraction gradient in eulerian model

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2004, 20:36
Default Re: udf: volume fraction gradient in eulerian mode
  #21
ap
Guest
 
Posts: n/a
Thank you,

ap
  Reply With Quote

Old   September 14, 2010, 15:33
Default udf for temperature jump b.c.
  #22
New Member
 
sima
Join Date: Apr 2010
Posts: 4
Rep Power: 7
sima is on a distinguished road
Hi ap,
I want to apply temperature jump boundary condition to a wall.
I have written udf but when I want to iterate, the following error
appears:

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: ()

In addition to THREAD_STORAGE I have written a define_init udf, in order to have an initial value for temperature gradients.
Please check my udf and say what is wrong.

Regards,
sima

#include "udf.h"
#define TMAC 1.0
#define udrlxcoeff 0.02
#define mfp 6.8e-8
#define gamma 1.4
#define pr 0.7
DEFINE_INIT(my_init_func,d)
{
cell_t cell;
Thread *c_thread;
thread_loop_c(c_thread,d)
{
begin_c_loop_all(cell,c_thread)
{
C_T_G(cell,c_thread)[1]=0.00001;
}
end_c_loop_all(cell,c_thread)
}
}
DEFINE_PROFILE(temperature_jump_d,f_thread,index)
{
face_t face;
cell_t cell;
Thread *c_thread,*t0;
real dtemp;
begin_f_loop(face,f_thread)
{
cell=F_C0(face,f_thread);
c_thread=THREAD_T0(f_thread);
if(NULL!=THREAD_STORAGE(t0,SV_T_G))
dtemp=((2-TMAC)/TMAC)*mfp*(2*gamma/((gamma+1)*pr))*(C_T_G(cell,c_thread)[1])+350.0;
dtemp=(1-udrlxcoeff)*(F_T(face,f_thread))+udrlxcoeff*dtemp;
F_PROFILE(face,f_thread,index) =dtemp;
}
end_f_loop(face,f_thread)
}
sima is offline   Reply With Quote

Old   April 15, 2015, 06:27
Default
  #23
New Member
 
Join Date: Feb 2015
Posts: 5
Rep Power: 2
soumendu.dasgupta is on a distinguished road
Hi all.

I am new to fluent. Please tell me where to how and where to patch the udf for variation in solid volume fraction in Fluent 15.0.

P.S: My udf's are already compiled and loaded.
Please reply at soumendu.dasgupta@gmail.com

Thanks
soumendu.dasgupta is offline   Reply With Quote

Reply

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
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
The gradient of void fraction in UDF summer FLUENT 2 May 20, 2011 03:34
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. ksiegs2 Fluent UDF and Scheme Programming 0 February 27, 2011 13:55
Help on accessing volume fraction in mixture model achuneka FLUENT 8 September 4, 2009 06:22
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


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