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

transient mass transfer in multiphase flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2015, 11:39
Smile transient mass transfer in multiphase flow
  #1
Senior Member
 
James
Join Date: May 2013
Posts: 116
Rep Power: 13
Tensian is on a distinguished road
Hi everyone.

I need to create my first UDF for definign mass transfer between two phases (water and a solid phase using granular flow).

I would like to specify a transient mass transfer(similar for example of imposing a sinusoidal velocity profile at one inlet). So, for simplicity, let us suppose I have the following mass transfer dependence with time:

/************************************************** ********************/
/* unsteady.c */
/* UDF for specifying a transient velocity profile boundary condition */
/************************************************** ********************/

#include "udf.h"

DEFINE_MASS_TRANSFER(mt, c, mixture_thread, from_phase_index, from_species_index, to_phase_index, to_species_index)
{
real R;

Thread *water = THREAD_SUB_THREAD(mixture_thread, from_phase_index);
Thread *solid = THREAD_SUB_THREAD(mixture_thread, to_phase_index);

face_t f;


real t = RP_Get_Real("flow-time");
/* real t = CURRENT_TIME;*/


R = 20. + 5.0*sin(10.*t);
printf("mass transfer is %f \n",R);
printf("Flow time is %f \n",t);


return (R);
}

I put prints to check the value of flow time in each time step and the mass transfer as well. This is not woriking, it always print "mass transfer is 0" and "Flow time is 0" a lot of times in the console (I guess one for each cell...)

Could anybody give me any hint to define my mass transfer for Phase Interactions in a transient multiphase computation?

THanks in advance!
Tensian is offline   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
mass flow inlet and pressure outlet with target mass flow rate Zigainer FLUENT 13 October 26, 2018 06:58
Transient Mass flow inlet boundary condition nikhil FLUENT 1 April 16, 2014 10:58
Transient Mass flow boundary condition kennymac72 FLUENT 0 September 25, 2013 12:30
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 11:44


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