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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By rassilon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2008, 04: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

Old   February 21, 2008, 03:17
Default At first glance, it would seem
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
At first glance, it would seem that you need to write a time-varying mixed boundary condition and use the mixing parameter to switch between the value and the gradient.

The example input file might look like this:

// time fraction refValue refGradient

// using 10m/s
( 0.1 1 10 0)
...
// using zero-gradient
( 0.2 0 10 0)


/mark
olesen is offline   Reply With Quote

Old   February 21, 2008, 10:21
Default Thank you! I'll start looki
  #3
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 89
Rep Power: 17
juho is on a distinguished road
Thank you!

I'll start looking into writing a timeVaryingMixed boundary condition. Let's see how it goes...

Juho
juho is offline   Reply With Quote

Old   December 8, 2008, 05:03
Default Hi, Juho I'm also intereste
  #4
Member
 
florian
Join Date: Mar 2009
Location: Mannheim - Vincennes - Valenciennes, Deutchland - France
Posts: 34
Rep Power: 17
floooo is on a distinguished road
Hi, Juho

I'm also interested on timeVaryingMixed boundary condition.
Have you successfully done it ??

Florian
floooo is offline   Reply With Quote

Old   February 17, 2010, 01:41
Default
  #5
Member
 
Join Date: Mar 2009
Location: Sydney, New South Wales, Australia
Posts: 42
Rep Power: 17
rassilon is on a distinguished road
Quote:
Originally Posted by floooo View Post
Hi, Juho

I'm also interested on timeVaryingMixed boundary condition.
Have you successfully done it ??

Florian

Hi Juho, Floooo,

Did you get anywhere with your Boundary Condition problems?

I too am looking at developing a time based BC that changes from an inlet to a wall at a specified time during the run.

I am looking at using an IF, THEN, ELSE statement within the condition code to try and get it working, however so far I have had no luck.

If you have had any success with your problems, then I would love to hear about it!


R
the_ichthyologist likes this.
rassilon is offline   Reply With Quote

Old   May 26, 2019, 20:04
Default
  #6
New Member
 
Nadun Palmada
Join Date: Apr 2017
Posts: 15
Rep Power: 8
Nadun19 is on a distinguished road
Hi rassilon

Did you manage to figure out how to achieve this?

Thanks
Nadun
Nadun19 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 23:47
time varying boundary condition cfd-student CFX 0 April 15, 2008 09:31
How to change boundary type at calculation time? Stanislav Kraev FLUENT 0 December 4, 2006 04:33
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 07:21
time varying boundary condition co2 FLUENT 2 November 11, 2003 13:36


All times are GMT -4. The time now is 06:58.