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

Some Problems about the Boundary Conditions in OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2017, 10:50
Default
  #41
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
Quote:
Originally Posted by piu58 View Post
> total pressure = 6 Bar

I think you mean the pressure difference between inlet and outlet.

You may set this difference and calculate the velocity or set the velocity and calculate the pressure difference.

If you have measured values and the results of your calculation differ, you have a good example to learn how OF needs to be set and which degree of accuracy can be reached with fluid simulations.

Please keep in mind: When simulating incompressible, OF takes the kinematic pressure.
thank you so much. Please can you tell me why time step continuity error increases very rapidly. Because of that solver terminates as floating point error.
Bharath Bhushan is offline   Reply With Quote

Old   April 16, 2017, 14:34
Default
  #42
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
If you need more help we need your model (all files).
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   April 17, 2017, 12:47
Default
  #43
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
https://drive.google.com/drive/folde...00?usp=sharing


https://drive.google.com/drive/folde...00?usp=sharing


thank you for that Mr. Uwe Pilz
Please take a look at the link of google drive where you can get the files I used. The parameters I know are

inlet velocity - 1.46 m/s
inlet static pressure - 6 Bar
fluid - water

and I used the dynamic viscosity of water at room temperature. According to the experiment the outlet velocity should be 20 m/s. I am solving for steady state using kOmega, but kEpsilon is also ok for me.

with that settings I am getting 35 m/s and negative pressure. Don't know why. Please tell me what is the problem.


Cheers
Bharadwaj
Bharath Bhushan is offline   Reply With Quote

Old   April 17, 2017, 13:44
Default
  #44
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
As far as I can see it at a quick view your boundary conditions are contradicting:

You give both pressures AND an inlet velocity. That cannot work. If you give both pressures, the simulation calculates the resulting velocity. If you give a velocity and a reference point for pressure the simulation calculates the pressure difference between inlet and outlet. You cannot have both.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   April 17, 2017, 13:51
Default
  #45
New Member
 
Bharadwaj Bhushan
Join Date: Mar 2017
Posts: 19
Rep Power: 9
Bharath Bhushan is on a distinguished road
Quote:
Originally Posted by piu58 View Post
As far as I can see it at a quick view your boundary conditions are contradicting:

You give both pressures AND an inlet velocity. That cannot work. If you give both pressures, the simulation calculates the resulting velocity. If you give a velocity and a reference point for pressure the simulation calculates the pressure difference between inlet and outlet. You cannot have both.


Oh OK OK. thank you for the quick reply. But I tried by giving just velocity, still not getting the velocity of around 20 m/s. Can you set the BC's of all and run the file once, so that it will give correct results. Because I am stuck there.
Bharath Bhushan is offline   Reply With Quote

Old   April 18, 2017, 01:04
Default
  #46
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
If nobody else answers you have to wait for some days. I am jsut go for a short holiday.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   April 22, 2017, 11:00
Default
  #47
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
I looked at your b.c. You used the combination of
Code:
totalPressure
condition on pressure and
Code:
pressureInletOutletVelocity
on velocity, which is thought for situations where pressure and velocity are unknown (mostly used for fluid / gaseous areas).
If you use
Code:
zeroGradient
for U at inlet

and
Code:
fixedValue
/ some value but not zero
for the pressure inlet

your simulation runs.

You get some value of U which corrsponds to the pressure difference.

As I mentioned before you my set a value of U at the inlet instead and give a reference print for the pressure, you get the pressure difference which corrsponds to the velocity selected.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   October 10, 2017, 08:33
Default
  #48
Member
 
Join Date: Feb 2016
Posts: 41
Rep Power: 10
LeeRuns is on a distinguished road
Quote:
Originally Posted by piu58 View Post
As far as I can see it at a quick view your boundary conditions are contradicting:

You give both pressures AND an inlet velocity. That cannot work. If you give both pressures, the simulation calculates the resulting velocity. If you give a velocity and a reference point for pressure the simulation calculates the pressure difference between inlet and outlet. You cannot have both.
Can I give both inlet pressure and inlet velocity? But no outlet conditions? DOF seems like it would be zero.
LeeRuns 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
Implementation of boundary conditions for FVM Tom Main CFD Forum 7 August 26, 2014 05:58
symmetry boundary conditions in cfx lost.identity CFX 41 May 22, 2013 07:21
LES of channel with cylic boundary mapping boundary conditions Thomas Baumann Siemens 0 August 24, 2009 09:53
compressible boundary conditions vivian Main CFD Forum 8 April 24, 2006 06:23
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 01:54


All times are GMT -4. The time now is 15:38.