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

Time varying boundary type

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rassilon

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 20, 2008, 03:56
Default Hello First post on the mes
  #1
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 89
Rep Power: 17
juho is on a distinguished road
Hello

First post on the message board. I've only begun looking into OpenFOAM a few weeks ago.

I'm trying to simulate a intake plenum of a car and I'm using rhoTurbFoam.

My problem is how to define the time dependant boundary conditions for the outlets to each cylinder.

In a test case I currently have defined them as:

===============================================

0/U:


out1
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
inlet
{
type pressureInletOutletVelocity;
phi phi;
value uniform (0 0 0);
}

0/p:

out1
{
type timeVaryingUniformFixedValue;
timeDataFileName ".../out1p.dat";
value uniform 100000;
}
inlet
{
type totalPressure;
U U;
phi phi;
rho none;
psi none;
gamma 1;
p0 uniform 100000;
value uniform 100000;
}
===============================================

The out1.dat has a period of constant inlet pressure followed by a sine curve of a lower pressure.

This setup gives something resembling the boundary conditions I want but it's not really correct. I would like to change the type of the boundary depending on time:

===============================================
T1:
===============================================

p:

out1
{
type timeVaryingUniformFixedValue;
timeDataFileName ".../out1p.dat";
value uniform 100000;
}

U:
out1
{
type zeroGradient;
}

===============================================
T2:
===============================================

p:

out1
{
type zeroGradient
}

U:
out1
{
type fixedValue;
value uniform (0 0 0);
}

===============================================

Is there an easy way to accomplish this? Or is there a better way to approach the issue all together?

I would greatly appreciate any help or guidance!

Juho
juho is offline   Reply With Quote

 


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
Time varying inlet boundary conditions gbansal OpenFOAM Running, Solving & CFD 1 August 16, 2008 22:47
time varying boundary condition cfd-student CFX 0 April 15, 2008 08:31
How to change boundary type at calculation time? Stanislav Kraev FLUENT 0 December 4, 2006 03:33
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 06:21
time varying boundary condition co2 FLUENT 2 November 11, 2003 12:36


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