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

Am getting very strange pressure/velocity problems at the inlet after a while

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2019, 17:53
Default Am getting very strange pressure/velocity problems at the inlet after a while
  #1
New Member
 
Andrei Cojocea
Join Date: Jul 2019
Posts: 8
Rep Power: 7
avc18 is on a distinguished road
Dear all,

I have been trying for a while now to simulate a 2D incompressible flow past a square cylinder using k-omega model and to obtain convergency. After creating the blockMesh and 0 files and system directories, I have managed to get the simulation started and it works fine for a while, but then it starts working wrong.
Attached Files
File Type: txt blockMesh.txt (8.0 KB, 1 views)
File Type: txt controlDict.txt (2.0 KB, 2 views)
File Type: txt fvScheme.txt (1.5 KB, 0 views)
File Type: txt fvSolution.txt (1.9 KB, 0 views)
File Type: txt k.txt (1.2 KB, 1 views)
avc18 is offline   Reply With Quote

Old   July 25, 2019, 17:55
Default part_2
  #2
New Member
 
Andrei Cojocea
Join Date: Jul 2019
Posts: 8
Rep Power: 7
avc18 is on a distinguished road
Here are the rest of the files from OpenFoam.

Thank you very much.
Attached Files
File Type: txt nut.txt (1.3 KB, 1 views)
File Type: txt nuTilda.txt (1.1 KB, 0 views)
File Type: txt omega.txt (1.2 KB, 1 views)
File Type: txt p.txt (1.1 KB, 9 views)
File Type: txt U.txt (1.1 KB, 7 views)
avc18 is offline   Reply With Quote

Old   July 25, 2019, 18:18
Default
  #3
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
What is goining wrong?
anon_q is offline   Reply With Quote

Old   July 25, 2019, 19:00
Default
  #4
New Member
 
Andrei Cojocea
Join Date: Jul 2019
Posts: 8
Rep Power: 7
avc18 is on a distinguished road
First of all, thank you for your reply. I will upload some screenshots with the flow development for U,p and k in order to show you exactly what i get.
avc18 is offline   Reply With Quote

Old   July 25, 2019, 19:51
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. Velocity and pressure are both being enforced on the inlet boundary, which can result in an inconsistent resolution of the equations. Usually we set the velocity at the inlet and the pressure at the outlet.
  2. Pressure is set to 1e5, but the solver simpleFoam seems to be used. You should not use total pressure, you should use the pressure value in reference to 1e5... in other words, use pressure field initially set to 0.
__________________
wyldckat is offline   Reply With Quote

Old   July 25, 2019, 20:01
Default
  #6
New Member
 
Andrei Cojocea
Join Date: Jul 2019
Posts: 8
Rep Power: 7
avc18 is on a distinguished road
Ahhhh, i didn't think about total pressure. Thank you very much, I will start the simulation again, hopefully this time works.



In addition to my previous question, is it possible to define the inlet as a single patch? Instead of doing it block by block, just define the upper and lower edger for the whole inlet.
avc18 is offline   Reply With Quote

Old   July 25, 2019, 20:45
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
Quote:
Originally Posted by avc18 View Post
In addition to my previous question, is it possible to define the inlet as a single patch? Instead of doing it block by block, just define the upper and lower edger for the whole inlet.
Either you would have to use snappyHexMesh or use topoSet+subsetMesh+createPatch.

If you want to use only blockMesh... uh... Maybe use Blender with the SwiftBlock add-on? https://openfoamwiki.net/index.php/Contrib/SwiftBlock
wyldckat is offline   Reply With Quote

Old   July 26, 2019, 19:48
Default
  #8
New Member
 
Andrei Cojocea
Join Date: Jul 2019
Posts: 8
Rep Power: 7
avc18 is on a distinguished road
Thank you for your reply.



I have tried what you said about total pressure and the simulation is still not working. I get the same problem after a number of iterations.
avc18 is offline   Reply With Quote

Old   July 27, 2019, 04:26
Default
  #9
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 11
sheaker is on a distinguished road
Hello.


Why You are using those velocity and pressure inlets and outlets?


I think Your simulation crashes when pressure wave reach inlet.



Try to use different velocity and pressure inlet BC.
https://www.openfoam.com/documentati...conditions.php


Search for Inlet and Outlet BC.


For example:
Quote:
outletInlet
This boundary condition provides a generic inflow condition, with specified outflow for the case of reverse flow
sheaker is offline   Reply With Quote

Old   July 27, 2019, 10:29
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick suggestion: This blog post has a ton of information on how to set-up these kinds of simulations: http://matveichev.blogspot.com/2014/...ex-street.html
wyldckat is offline   Reply With Quote

Reply

Tags
blockmesh, k-omega simualtions, openfoam 1.6

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
Strange density variations at cascade inlet. michel89 Fidelity CFD 1 June 9, 2015 01:46
Very strange phenomenon found at inlet itsme_kit FLUENT 2 March 10, 2014 17:48
bubbleFoam problems unstable and strange behaiviour matt.mech.eng OpenFOAM Running, Solving & CFD 3 September 5, 2012 08:41
Problems with Inlet species San24 Siemens 1 May 7, 2008 07:29
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


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