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

BC conditions (suck the flow at the outlet)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cristopf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2016, 02:02
Default BC conditions (suck the flow at the outlet)
  #1
New Member
 
Christof Schmidt
Join Date: Nov 2015
Posts: 6
Rep Power: 10
cristopf is on a distinguished road
Good morning everybody,

I have a question regarding boundary conditions. I want to suck a flow from the outlet. Normally you set p=0 at the outlet and a velocity at the inlet. But that means that you push the flow into let´s say a pipe.
If you want the flow to be sucked from the outlet you actually have to switch the BC. I know that it´s not possible but is there any way that you can suck the flow?
And in addition does anyone know why it´s not possible to set p=0 at the inlet and the velocity at the outlet?

Regards
Christof
stamufa likes this.
cristopf is offline   Reply With Quote

Old   February 11, 2016, 02:57
Default
  #2
New Member
 
Join Date: Apr 2014
Posts: 24
Rep Power: 12
TobiF is on a distinguished road
Hello Christoph,

it is possible to set the BCs for the velocity at the inlet as zeroGradient and outlet as fixedValue and for the pressure inverse. (I use this BCs in some cases without problems)

It is also possible to set a negative pressuregradient from inlet to outlet to simulate suction.

You have to look that you do not overdetermine your system by setting fixedValues for U and for p
TobiF is offline   Reply With Quote

Old   February 11, 2016, 04:54
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Perhaps you can use the fixedMean boundary conditions for the velocity at the inlet with a vector pointing out of your flow domain.
https://github.com/OpenFOAM/OpenFOAM...FvPatchField.H

This avoids an non-physical jump in the velocity field at your "inlet" because it allows a flow profile on the boundary similar to the flow profile inside your flow domain.
jherb is offline   Reply With Quote

Old   August 31, 2016, 23:28
Default
  #4
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by cristopf View Post
Good morning everybody,

I have a question regarding boundary conditions. I want to suck a flow from the outlet. Normally you set p=0 at the outlet and a velocity at the inlet. But that means that you push the flow into let´s say a pipe.
If you want the flow to be sucked from the outlet you actually have to switch the BC. I know that it´s not possible but is there any way that you can suck the flow?
And in addition does anyone know why it´s not possible to set p=0 at the inlet and the velocity at the outlet?

Regards
Christof
Hi Christof,

Have you found the answer to your question?
I want to simulate an exhaust ventilation system. The air will be sucked from the outlet. Which BC should I use?

Kind Regards.
Ping
chpjz0391 is offline   Reply With Quote

Old   September 2, 2016, 16:55
Default
  #5
Member
 
Chris L
Join Date: Sep 2012
Posts: 53
Rep Power: 13
vbchris is on a distinguished road
Why does a negative velocity BC not work for this problem?

If I have a column, with an inlet at the bottom and outlet at the top. I can set suction by the following BC.

outlet: U = -1 m/s P=0
inlet: U = zeroGradient P=zeroGradient

or I can set a dP.

outlet: U = zeroGradient m/s P=0
inlet: U = zeroGradient P=2 kPa

Can you clarify what the problem is.

Chris
vbchris is offline   Reply With Quote

Old   October 5, 2016, 04:21
Default
  #6
Member
 
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10
chpjz0391 is on a distinguished road
Quote:
Originally Posted by vbchris View Post
Why does a negative velocity BC not work for this problem?

If I have a column, with an inlet at the bottom and outlet at the top. I can set suction by the following BC.

outlet: U = -1 m/s P=0
inlet: U = zeroGradient P=zeroGradient

or I can set a dP.

outlet: U = zeroGradient m/s P=0
inlet: U = zeroGradient P=2 kPa

Can you clarify what the problem is.

Chris
Hi Chris,

This should be work, you can set the pressure difference at inlet or outlet. And set velocity BC as pressureinletoutletveloctiy. It should be work.

Kind regards,

Ping
chpjz0391 is offline   Reply With Quote

Old   October 5, 2016, 10:56
Default codedFixedValue BC
  #7
New Member
 
Sachin
Join Date: Sep 2016
Location: Poitiers,France
Posts: 17
Rep Power: 9
smodh is on a distinguished road
I am using codedFixedValue bc for implementing ΔV=0 ;where V=x2+y2+z2
my boundarycondition at 0/phi is:
inlet
{
type codedFixedValue;
value uniform 0;
redirectType velocitySquareInlet;

code
#{
const fvPatch& boundaryPatch = patch();
const vectorField& Cf = boundaryPatch.Cf();

scalarField& field = *this;

forAll(Cf, faceI)
{
(
(Cf[faceI].x()=0) &&
(Cf[faceI].y()=0) &&
(Cf[faceI].z()=0)
)
{
field[faceI] = ((Cf[faceI].x()*Cf[faceI].x())
+(Cf[faceI].y()*Cf[faceI].y())
+(Cf[faceI].z()*Cf[faceI].z()));
}
}
#};


and I will have following error at terminal
Using dynamicCode for patch inlet on field phi at line 25 in "/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet"
Creating new library in "dynamicCode/velocitySquareInlet/platforms/linux64GccDPInt32Opt/lib/libvelocitySquareInlet_f5eecc7ba736b15b9d60f3aa108 fc0cf20d513de.so"
Invoking "wmake -s libso /home/sachin/OpenFOAM/Conduction/charge-20/dynamicCode/velocitySquareInlet"
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file fixedValueFvPatchFieldTemplate.C
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet: In member function ‘virtual void Foam::velocitySquareInletFixedValueFvPatchScalarFi eld::updateCoeffs()’:
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet:39:35: error: assignment of read-only location ‘(&(& Cf)->Foam::Field<Foam::Vector<double> >::<anonymous>.Foam::List<Foam::Vector<double> >::<anonymous>.Foam::UList<T>:perator[]<Foam::Vector<double> >(faceI))->Foam::Vector<Cmpt>::x<double>()’
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet:40:35: error: assignment of read-only location ‘(&(& Cf)->Foam::Field<Foam::Vector<double> >::<anonymous>.Foam::List<Foam::Vector<double> >::<anonymous>.Foam::UList<T>:perator[]<Foam::Vector<double> >(faceI))->Foam::Vector<Cmpt>::y<double>()’
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet:41:35: error: assignment of read-only location ‘(&(& Cf)->Foam::Field<Foam::Vector<double> >::<anonymous>.Foam::List<Foam::Vector<double> >::<anonymous>.Foam::UList<T>:perator[]<Foam::Vector<double> >(faceI))->Foam::Vector<Cmpt>::z<double>()’
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet:43:17: error: expected ‘;’ before ‘{’ token
/home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet:34:26: warning: unused variable ‘field’ [-Wunused-variable]
/opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o' failed
make: *** [Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o] Error 1


--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/velocitySquareInlet/platforms/linux64GccDPInt32Opt/lib/libvelocitySquareInlet_f5eecc7ba736b15b9d60f3aa108 fc0cf20d513de.so"


file: /home/sachin/OpenFOAM/Conduction/charge-20/0/phi.boundaryField.inlet from line 25 to line 30.

From function void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
in file db/dynamicLibrary/codedBase/codedBase.C at line 206.

FOAM exiting




Does anyone know the solution?
Thanks in advance!!!!!
smodh 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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Temperature at a velocity/mass flow outlet saisanthoshm88 CFX 1 July 8, 2014 18:35
Outlet BC for disturbed Poiseuille flow murx CFX 10 February 22, 2012 13:55
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45


All times are GMT -4. The time now is 18:24.