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

Problem with BC: Setting a pressure for Inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2016, 04:42
Default Problem with BC: Setting a pressure for Inlet
  #1
Member
 
Charles K.
Join Date: Feb 2016
Location: Germany
Posts: 37
Rep Power: 10
McCharles is on a distinguished road
Hello Foamers,

I succesfully calculated a case with rhoSimplecFoam with the following BC:

INLET patch :
- for U : flowRateInletVelocity (massFlowRate)
- for p : zeroGradient
- for T : fixedValue

OUTLET patch :
- for U : pressureInletOutletVelocity
- for p : fixedValue
- for T : zeroGradient

The results are looking good but as OpenFoam calculates the pressure at the Inlet, there is a small difference with my experimental results at this location.

Now I want to try it the other way around by setting the pressure at the Inlet and defining a mass Flow at the Outlet. Unfortunately, with this setup, the calculation blows up after 1 iteration. These were the settings:

INLET Patch:
- for U : pressureInletVelocity
- for p : fixedValue
- for T : zeroGradient

Outlet Patch :
- for U : flowRateInletVelocity
- for p : outletInlet (There is a recirculation in this Area of the Domain)
- for T : inletOutlet

I would be very thankful if someone could give me a hint on how to fix my problem. What is wrong with my BC? I'm wondering if it is actually possible to set up a case by defining an Inlet pressure.

Cheers,

Charles
McCharles is offline   Reply With Quote

Old   July 1, 2016, 06:54
Default
  #2
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
Two thoughts:
Is it important for you to define the mass flow rate at the outlet? Try it at the inlet.
In most cases, you use a totalPressure BC at the inlet. Would this be an option?
TobM is offline   Reply With Quote

Old   July 1, 2016, 07:49
Default
  #3
Member
 
Charles K.
Join Date: Feb 2016
Location: Germany
Posts: 37
Rep Power: 10
McCharles is on a distinguished road
Quote:
Originally Posted by TobM View Post
Two thoughts:
Is it important for you to define the mass flow rate at the outlet? Try it at the inlet.
In most cases, you use a totalPressure BC at the inlet. Would this be an option?
Hi TobM and thanks for your suggestion,

Concerning the Mass Flow, I have to define it somewhere and if I set the pressure at the Inlet, I can't also define the massFlow there as OpenFoam always needs a certain degree of freedom. That's why I defined the mass flow at the outlet.

Using totalPressure is a good ideal, I will try it out.
McCharles is offline   Reply With Quote

Old   July 1, 2016, 08:37
Default
  #4
Member
 
Join Date: Sep 2014
Location: Germany
Posts: 88
Rep Power: 11
TobM is on a distinguished road
MassFlowRate, totalpressure and totalTemperature at inlet are common BCs. Of course, when you do that, you have to define for the outlet zeroGradient, zeroGradient or fixedValue (for p) and zeroGradient for T, for example.
But it always depends on your physics.
TobM is offline   Reply With Quote

Reply

Tags
boundary condition, flowrateinletvelocity, pressureinletvelocity


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
Setting up the pressure variation due to tornado in a duct(UDF)+animation guillaume1990 FLUENT 0 March 3, 2014 11:59
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Problem with meshing and hight pressure setting mameri CFX 0 April 13, 2006 05:07
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 11:31.