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

boundary conditions, pipe geometry.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 1, 2014, 02:30
Default boundary conditions, pipe geometry.
  #1
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
Hi all,
I've a flow in a straight pipe and I'm trying to simulate it with simpleFoam solver.
With these BC there is no problem:
U:
Code:
boundaryField
{
  wall
  {
    type fixedValue;
    value uniform (0 0 0);
  }
  inflow
  {
    type fixedValue;
    value uniform (0.707 0 0);
  }
  outflow
  {
    type zeroGradient;
  }
p:
Code:
boundaryField
{
  inflow
  {
    type zeroGradient;
  }
  outflow
  {
    type fixedValue;
    value uniform 0;
  }
  wall
  {
    type zeroGradient;
  }
I'd like to impose a pressure difference across inflow and outflow as BC but with these BC the problem is not well posed:

U:
Code:
boundaryField
{
  wall
  {
    type fixedValue;
    value uniform (0 0 0);
  }
  inflow
  {
    type zeroGradient;
  }
  outflow
  {
    type zeroGradient;
  }
p:
Code:
boundaryField
{
  inflow
  {
    type fixedValue;
    value uniform 3;
  }
  outflow
  {
    type fixedValue;
    value uniform 0;
  }
  wall
  {
    type zeroGradient;
  }
what are the right BC in order to make a well posed problem?
Thank you
ilpaso is offline   Reply With Quote

Old   April 1, 2014, 03:27
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

try using this

Code:
  inflow
  {
    type pressureInletUniformVelocity;
    value uniform (0 0 0);
  }
as velocity inlet BC. Though you should be careful cause as pressure difference grows velocity inside the pipe also grows and you can leave zone of laminar flow.
hua1015 likes this.
alexeym is offline   Reply With Quote

Old   April 1, 2014, 04:15
Default
  #3
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
Thank you,
it works better with an higher pressure difference (delta_pRho = 5) and it doesn't converge with a lower pressure difference(delta_pRho = 1) . Why?

pipe diameter= 3mm
pipe length = 50mm
nu = 3.2e-6
ilpaso is offline   Reply With Quote

Old   April 1, 2014, 04:22
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
As I don't know what modifications you've made to the case files you've posted yesterday I can't say anything meaningful except: with the case files you've posted yesterday and this BC

Code:
  inflow
  {
    type pressureInletUniformVelocity;
    value uniform (0 0 0);
  }
for inlet velocity, case converged in 63 iterations for delta_pRho = 1, and in 167 iterations for delta_pRho = 5.
alexeym is offline   Reply With Quote

Old   April 1, 2014, 05:09
Default
  #5
Member
 
Davide Pasini
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ilpaso is on a distinguished road
with this 0/p
Code:
boundaryField
{
  inflow
  {
    type fixedValue;
    value uniform 1;
  }
  outflow
  {
    type fixedValue;
    value uniform 0;
  }
  wall
  {
    type zeroGradient;
  }
case converged in 55 iterations

but with this 0/p:

Code:
boundaryField
{
  inflow
  {
    type fixedValue;
    value uniform 5;
  }
  outflow
  {
    type fixedValue;
    value uniform 4;
  }
  wall
  {
    type zeroGradient;
  }
it doesn't converge. The difference is only the pressure at outflow. The pressure drop is the same.
ilpaso is offline   Reply With Quote

Old   April 1, 2014, 05:34
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Well,

Increase relaxation for velocity:

Code:
relaxationFactors
{
    fields
    {
        p               0.6;
    }
    equations
    {
        U               0.4;
    }
}
With these settings case converged in 168 iteration, guess it can be improved by playing with relaxation factors. With old relaxation factors in the very beginning of the simulation velocity goes up to 21 m/s and it finally leads to non-converging solution.
alexeym 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
Boundary conditions of laminar flow in pipe alireza.glz OpenFOAM 4 May 27, 2019 05:03
Species Transport: Boundary Conditions at Geometry Interface Zaphod'sSecondHead FLUENT 0 August 15, 2013 08:36
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
New topic on same subject - Flow around race car Tudor Miron CFX 15 April 2, 2004 06:18


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