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

mass imbance calculation in fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2007, 14:27
Default mass imbance calculation in fluent
  #1
Asghari
Guest
 
Posts: n/a
Hi all;

How to compute mass imbalance in fluent?

Has anybody access to a udf for calculation of mass imbalance and send it for me ?

Thanks in advance;

  Reply With Quote

Old   January 10, 2007, 03:08
Default Re: mass imbalance calculation in fluent
  #2
Asghari
Guest
 
Posts: n/a
Does following udf calculate mass imbalance in each cell?

thread_loop_c (t,domain)

{

begin_c_loop(c,t)

{

int i=1;

C_UDMI(c,t,4)=0.0;

c_face_loop(c,t,i)

{

f=C_FACE(c,t,i);

tf=C_FACE_THREAD(c,t,i);

if(BOUNDARY_FACE_THREAD_P(tf)) {

face_flux=F_FLUX(f,tf) ;

} else{

if(F_C0(f,tf)==c) {

face_flux =F_FLUX(f,tf); /*method is first order upwind*/

}

else {

face_flux =-F_FLUX(f,tf);

} } }

C_UDMI(c,t,4)=C_UDMI(c,t,4)+face_flux ;

}

}

end_c_loop(c,t) }

Thank's in advance
  Reply With Quote

Reply


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
Automatically start new calculation after the one before is completed? (FLUENT 12.1) mars21t FLUENT 4 March 27, 2011 10:52
Help,I have some questions about UDF of mass diffusivity in fluent apolloking Fluent UDF and Scheme Programming 0 March 20, 2011 12:40
fluent definitions for mass fractions perdita FLUENT 0 December 6, 2010 06:00
is it possible to solve mass transfer problems in FLUENT travikiran FLUENT 2 August 11, 2010 05:46
Setting Mass and Energy sources in fluent Amr FLUENT 6 February 23, 2006 07:36


All times are GMT -4. The time now is 01:17.