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

Assigning different velocities to different phases at inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2012, 11:40
Default Assigning different velocities to different phases at inlet
  #1
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14
Sagun is on a distinguished road
Hello everyone,

I am doing a multiphase simulation in which there are two fluids at the inlet. If I want to assign different velocities to the two at the inlet, what should I do? Should I initialize the velocity values at the inlet in the setFields file like this:

defaultFieldValues
(
volScalarFieldValue alpha1 0
volVectorFieldValue U (0 0 0)
);

regions
(
boxToCell
{
box (0 0 0) (20 0.1 1.5);
fieldValues
(
volScalarFieldValue alpha1 1
volVectorFieldValue U (1 0 0)
);
}
);


If yes, then what boundary condition should I specify at the inlet in the 0/U file?

Thanks,
Sagun
Sagun is offline   Reply With Quote

Old   October 16, 2012, 11:53
Default
  #2
Senior Member
 
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17
kev4573 is on a distinguished road
If you are using a single patch for both phases, take a look at GroovyBC, or possibly the codeStreams functionality in OpenFOAM.
kev4573 is offline   Reply With Quote

Old   October 17, 2012, 08:59
Default
  #3
Member
 
Sagun Tripathi
Join Date: Aug 2012
Location: Amherst, USA
Posts: 78
Rep Power: 14
Sagun is on a distinguished road
Thanks. Got it to work using funkySetFields.
Sagun 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
Inlet Wall to Inlet Patch kurne OpenFOAM 4 January 23, 2013 07:23
Problems with Inlet species San24 Siemens 1 May 7, 2008 07:29
transitional inlet boundary condition kamp CFX 1 June 21, 2006 12:08
Diffusion component at inlet Balaji FLUENT 2 August 8, 2005 08:37
length scales at inlet for internal flows Anne-Marie Giroux Main CFD Forum 3 July 5, 1999 22:28


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