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

Help on accessing volume fraction in mixture model

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 20, 2009, 14:14
Default Help on accessing volume fraction in mixture model
  #1
New Member
 
Aditya Chunekar
Join Date: Mar 2009
Posts: 18
Rep Power: 17
achuneka is on a distinguished road
I am writing a UDF that involves volume fraction for Unsteady RANS simulation with cavitation model turned on.

I define a user defined memory variable and use the following snippet of code to access it.

DEFINE_EXECUTE_AT_END(udf_name)
{
........ /* All the definitions */

d=Get_Domain(3); /* Vapor Phase domain

thread_loop_c(t,d)
{
begin_c_loop(c,t)
{
C_UDMI(c,t,1)=C_VOF(c,t);
}
}
end_c_loop(c,t)
}
}
(This is just to show how I access C_VOF.. I perform some other operations on it)

I get the value of C_UDMI(c,t,1) as 0 everywhere when the volume fraction of phase 2 varies from 0 to 0.4.

Can someone please help me on the same. Thanks
achuneka is offline   Reply With Quote

 


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
udf: volume fraction gradient in eulerian model jwwang FLUENT 22 April 15, 2015 06:27
Weighted average volume fraction Yasser FLUENT 5 April 11, 2015 08:25
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Volume Fraction in VOF model Saima Main CFD Forum 2 April 12, 2009 19:22
UDF for the mixture model khar nab FLUENT 0 July 31, 2008 06:29


All times are GMT -4. The time now is 14:00.