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

Define_source - evaporation: Unit

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2020, 00:55
Default Define_source - evaporation: Unit
  #1
Senior Member
 
Arun raj.S
Join Date: Jul 2011
Posts: 207
Rep Power: 16
arunraj is on a distinguished road
Dear all,

I would like to know the unit of DEFINE_SOURCE for mass flux to be given as input in ANSYS Fluent. I read somewhere is should be kg/m^3 s^1. So I have multiplied by volume. But my question is how does ANSYS Fluent consider the volume for a 2D edge which is my case interior zone of liquid-vapor. This UDF compiles without any error but I am applying this UDF only on interior liquid-vapor.

Macro Argument Types Returns: C_VOLUME(c,t) cell_t c, Thread *t
real cell volume for 2D or 3D,
real cell volume/2 pi for axisymmetric


#include "udf.h"
#include "math.h"

#define M 18.015
#define hfg 2600000.0
#define R 8314.0
#define pi 3.141592
#define pref 101325
#define Tref 373.15
#define pv 15828.0
#define Tv 343.0

DEFINE_SOURCE(mass2,c,t,dS,eqn)
{
real source, pv_eq, Tlv, vol, Acell ;
Domain *d=Get_Domain(1);
int ID=16;
Thread *t_int=Lookup_Thread(d, ID);
face_t f;
real A[ND_ND];
real area = 0.;
begin_f_loop(f,t)
{
F_AREA(A,f,t_int);
area += NV_MAG(A);
Tlv = C_T(c,t);
vol = C_VOLUME(c,t);
pv_eq = pref * exp(((M*hfg)/R) * ((1/Tref)-(1/Tlv)));
source = - 0.857142857 * (Acell/vol) * (1/pow(M/2*pi*R, 0.5)) * ((pv_eq/pow(Tlv, 0.5)) - (pv/pow(Tv, 0.5)));
dS[eqn] = - 0.857142857 * (Acell/vol) * (1/pow(M/2*pi*R, 0.5)) * (pref * exp((M*hfg)/R) * (-((1/Tref) * (0.5/pow(Tlv, 1.5))) + (1.5/pow(Tlv, 2.5))));
}
end_f_loop(f,t)
return source;
}
arunraj is offline   Reply With Quote

Old   June 15, 2020, 06:38
Default Volume in 2D
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It depends on the 2D simulation. For 2D planar, third dimension is 1 m. For 2D axisymmetric, third dimension is 2\pi radian.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm 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
Water Surface Evaporation sunggun1212 FLUENT 3 January 11, 2020 05:12
Rate of evaporation | Hertz–Knudsen equation | Chloroform Evaporation cfd_user_pune Fluent Multiphase 0 October 26, 2018 06:44
Rate of evaporation | Hertz–Knudsen equation | Chloroform Evaporation cfd_user_pune Fluent Multiphase 0 October 26, 2018 06:34
Grid I Unit Normal and Grid J Unit Normal pawansut Tecplot 4 July 31, 2017 19:14
how to caculate the mass of impacting particles per unit area and per unit time? xyq916 CFX 0 October 8, 2015 09:55


All times are GMT -4. The time now is 09:31.