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

Periodic Boundary Conditions and Species Tranport

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2015, 12:21
Default Periodic Boundary Conditions and Species Tranport
  #1
New Member
 
Tim Van Geel
Join Date: Nov 2015
Posts: 2
Rep Power: 0
TimotheusFlavii is on a distinguished road
Hi!

I have to simulate flow through a packed bed in which a reaction is catalyzed by catalysts on the spheres of the packed bed. The person who assigned this case wants that the inlet and the outlet are made periodic for the velocity profile, pressure and temperature, and he has defined a mass flow rate for me.
I know periodic boundary conditions and species transport are not compatible, and I therefore think a UDF is needed. I don't know however how to write this UDF while still defining a mass flow rate. Could someone help me?
TimotheusFlavii is offline   Reply With Quote

Old   November 9, 2015, 17:32
Default
  #2
New Member
 
Tim Van Geel
Join Date: Nov 2015
Posts: 2
Rep Power: 0
TimotheusFlavii is on a distinguished road
I currently have written this UDF, but I don't know how I should specify the mass flow rate:

#include "udf.h"

DEFINE_PROFILE(x_velocity_inlet, thread, index)
{
real x[ND_ND];
face_t f;
real Uvel[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=16;
domain=Get_Domain(1);
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
{
Uvel[1]=F_U(f, tf);
}
end_f_loop(f, tf)

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = (Uvel[1]);
}
end_f_loop(f,thread)
}

DEFINE_PROFILE(y_velocity_inlet, thread, index)
{
real x[ND_ND];
face_t f;
real Vvel[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=16;
domain=Get_Domain(1);
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
{
Vvel[1]=F_V(f, tf);
}
end_f_loop(f, tf)

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = (Vvel[1]);
}
end_f_loop(f,thread)
}

DEFINE_PROFILE(z_velocity_inlet, thread, index)
{
real x[ND_ND];
face_t f;
real Wvel[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=16;
domain=Get_Domain(1);
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
{
Wvel[1]=F_W(f, tf);
}
end_f_loop(f, tf)

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = (Wvel[1]);
}
end_f_loop(f,thread)
}

DEFINE_PROFILE(pressure_inlet, thread, index)
{
real x[ND_ND];
face_t f;
real Pres[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=16;
domain=Get_Domain(1);
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
{
Pres[1]=F_P(f, tf);
}
end_f_loop(f, tf)

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = (Pres[1]);
}
end_f_loop(f,thread)
}

DEFINE_PROFILE(temperature_inlet, thread, index)
{
real x[ND_ND];
face_t f;
real Temp[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=16;
domain=Get_Domain(1);
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
{
Temp[1]=F_T(f, tf);
}
end_f_loop(f, tf)

begin_f_loop(f, thread)
{
F_PROFILE(f, thread, index) = (Temp[1]);
}
end_f_loop(f,thread)
}
TimotheusFlavii is offline   Reply With Quote

Old   January 15, 2016, 13:57
Default
  #3
New Member
 
moon
Join Date: Feb 2012
Posts: 26
Rep Power: 14
moun139 is on a distinguished road
I think there is a problem with V velocity !!
moun139 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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Combustion: species mass fraction's boundary conditions wenxu OpenFOAM Running, Solving & CFD 2 November 20, 2014 06:55
Species Transport: Boundary Conditions at Geometry Interface Zaphod'sSecondHead FLUENT 0 August 15, 2013 08:36
inlet boundary conditions species transport richard FLUENT 2 August 20, 2008 07:25
periodic boundary conditions for species Muhammad Shakaib CFX 1 June 15, 2006 01:50


All times are GMT -4. The time now is 19:52.