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

Smearing of Mass Transfer(condensation)using UDS over interface.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By RAJ KIRAN

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2016, 11:19
Default Smearing of Mass Transfer(condensation)using UDS over interface.
  #1
Member
 
Rajukiran Antham
Join Date: Dec 2012
Location: Sweden
Posts: 41
Rep Power: 13
RAJ KIRAN is on a distinguished road
Hej,

I am working on phase change problem (condensation). I wrote UDF's for calculation of source terms. I want to smear mass transfer near the interface using a Diffusion equation and then pass the smeared values as source terms to the equations. I am solving the diffusion equation using UDS and passing mass transfer as source term to UDS.
Below is the diffusion equation which I am solving,

D*del2(phi)= S
here,
D is diffusion coefficient, phi is scalar variable and S is source term,

I am passing source term using Define_source UDF,

DEFINE_SOURCE(UDS_src,c,t,dS,eqn) /*smearing source udf*/
{
real UDS_source;
UDS_source = 0.0;
UDS_source = C_UDMI(c,t,1)-C_UDSI_M1(c,t,0) ;
dS[eqn] = 0.0;
return (UDS_source);
}

In the above UDF C_UDMI(c,t,1) is the mass transfer term which is calculated in a different UDF. Diffusion coefficient D is passed using below UDF.

#include "udf.h"
DEFINE_DIFFUSIVITY(mean_age_diff,c,t,i)
{
return 0.0000001;
}

What I was expecting was a smeared mass transfer over few cells close to the interface , since mass transfer is calculated only at the interface. but I am not getting the expected result. I am not sure where I am going wrong. I would really appreciate if someone can point out where I am going wrong.

regards,
Rajukiran.

PS: I am also attaching pic of scalar value of phi and interface where source terms are added.
Attached Images
File Type: png interface_source terms.png (10.5 KB, 37 views)
File Type: png UDS scalar.png (11.7 KB, 35 views)
artem929292 likes this.
RAJ KIRAN is offline   Reply With Quote

Old   May 24, 2016, 08:19
Default
  #2
Member
 
Rajukiran Antham
Join Date: Dec 2012
Location: Sweden
Posts: 41
Rep Power: 13
RAJ KIRAN is on a distinguished road
Hej,

I tried a simple case, where I tried solving a steady diffusion equation using UDS. I switched off inlet Diffusion, Flux and unsteady function in the UDS. I used Neumann boundary conditions over the domain. I gave a constant source term through UDF only at the interface. I was expecting that the given source term to smear over the interface. But I got something similar to previous case. I would really appreciate if someone can answer this.

Thanks in advance

Regards,
Rajkiran
RAJ KIRAN 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
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 20:47
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
Modeling the fan with a mass flow interface saisanthoshm88 CFX 6 August 1, 2014 06:11
Modelling valves/orifices using interface models DarrenC CFX 5 June 3, 2014 06:14
why my momentum and mass not convergence wwwuxing CFX 3 May 18, 2012 07:49


All times are GMT -4. The time now is 07:51.