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

Interesting Flow Problem - after a while the solution gets totally destroyed

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By NiklasW
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2021, 09:52
Default Interesting Flow Problem - after a while the solution gets totally destroyed
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey foam community,

I might ask you an interesting question. I attached a case (nothing special) a room with a window. The window does not play a big role right now. The top wall (ceiling) is heated to 300 K. The bottom is set to 295 K. Hence, I expect a uniform temperature layering from bottom to top and almost no flow. The only interesting point is that the room is a closed volume (no inlets/outlets). The facts are:


  • Without turbulence model the case crashes after two/three iterations
  • With turbulence model it works (guess due to the artificial diffusion)
    • However, the temperature rises - for any reason > 300 K (around 380 K) - no Idea why that happens.
    • Solution is not physical (at least the temperature does not make sense at all)
    • Schemes are upwind
    • Mesh is pure hex-mesh (no orthogonality)
Even with 10 years FOAM experience, this simple test case makes me getting crazy but I guess I just made some small mistake. An interesting point is, that p and p_rgh is initialized by 1e5 Pa but the results show me 0 Pa. Is it related to the closed volume? Probably it shouldn't. At least the p field should have 1e5 Pa as we use it for calculating the density (even though I use incompressiblePerfectGas )

Case is given for v8.
https://Holzmann-cfd.com/forum/room.tar.gz


Any ideas?
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 1, 2021, 10:43
Default
  #2
New Member
 
Join Date: May 2019
Posts: 16
Rep Power: 6
NiklasW is on a distinguished road
Have you tried to use a different equation of state?
I haven't looked deeply into your case, but at first glance I'd say incompressible perfect gas might cause some problems in a closed system, because it calculates density independent from pressure.
Tobi and Yann like this.
NiklasW is offline   Reply With Quote

Old   July 1, 2021, 11:27
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26
Yann will become famous soon enough
Hi Tobias,

I think your 0 Pa pressure is related to the pRefValue in fvSolution:

Code:
SIMPLE
{
    nNonOrthogonalCorrectors 0;
    pRefCell        0;
    pRefValue       0;

   [...]
}
Since you have a closed volume there is no pressure value defined on any patch and the solver should look for a pRefCell and pRefValue in fvSolution.

Not sure how it affects the solution though.

Yann
Tobi likes this.
Yann is offline   Reply With Quote

Old   July 1, 2021, 12:02
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hey both.
  • the incompressiblePerfectGas was the mistake (my fault) - thanks for the hint and you are totally correct. This will destroy the solution
  • the pRef data in the fvSolutions is correct too. However, after changing the EOS, these data are not used anymore.


So ... thank you!
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 1, 2021, 12:16
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Okay now we are ready to go to discuss. By using the case provided and changing the EOS to perfectGas, everything works (even though the velocity field looks weirdo - probably based on the steady-State analysis).

However, if we deactivate the turbulence model and calculate in a laminar manner, the temperature goes to 350 K. I have no idea why. That`s actually something I am not sure about.
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
Will the results of steady state solver and transient solver be same? carye OpenFOAM Running, Solving & CFD 9 December 28, 2019 05:21
Mass flow rate history over solution step- rhoSimpleFoam gian93 OpenFOAM Post-Processing 0 December 8, 2019 10:20
Two Mass flow inlet bc convergence problem nabidinhomessi Main CFD Forum 5 December 14, 2015 07:11
Newbie to compressible, viscous flow. Advice on approach to problem? bzz77 Main CFD Forum 4 December 4, 2012 07:59
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 05:44


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