CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

FVM code diverge when the gravity is included

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2018, 22:09
Default FVM code diverge when the gravity is included
  #1
New Member
 
Gonski
Join Date: Jun 2018
Posts: 3
Rep Power: 7
k.gonski is on a distinguished road
Hi All,

I have an in-house code which is based on FVM for incompressible flows. I used it to solve liquid flow in a vertical pipe. The code was working if the gravity was omitted or not considered. The inclusion of the gravity led to the divergence of the code.

I tested the code based on the codes from Ferziger and Peric's book. The same problem occurred.

I would appreciate that you could suggest how to solve this problem.

Regards,
Gonski
k.gonski is offline   Reply With Quote

Old   June 13, 2018, 03:06
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by k.gonski View Post
Hi All,

I have an in-house code which is based on FVM for incompressible flows. I used it to solve liquid flow in a vertical pipe. The code was working if the gravity was omitted or not considered. The inclusion of the gravity led to the divergence of the code.

I tested the code based on the codes from Ferziger and Peric's book. The same problem occurred.

I would appreciate that you could suggest how to solve this problem.

Regards,
Gonski



Assuming you are using the Bousinnesq model, I can think about a numerical instability, a source term change the constraint on the time step. Have you tried to use a smaller dt?
FMDenaro is offline   Reply With Quote

Old   June 14, 2018, 09:53
Default
  #3
New Member
 
Gonski
Join Date: Jun 2018
Posts: 3
Rep Power: 7
k.gonski is on a distinguished road
I am not using Bousinnesq. My specific case needs the explicit consideration of gravity. Also, I solved a steady problem.
k.gonski is offline   Reply With Quote

Old   June 19, 2018, 02:09
Default
  #4
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 13
Eifoehn4 is on a distinguished road
It would be helpful, if you can give us some more details about the implementation.
__________________
Check out my side project:

A multiphysics discontinuous Galerkin framework: Youtube, Gitlab.
Eifoehn4 is offline   Reply With Quote

Old   June 21, 2018, 22:03
Default
  #5
New Member
 
Gonski
Join Date: Jun 2018
Posts: 3
Rep Power: 7
k.gonski is on a distinguished road
Quote:
Originally Posted by Eifoehn4 View Post
It would be helpful, if you can give us some more details about the implementation.
My implementation is as below:

the gravity (density*acceleration) was added as the source term into the momentum equations. There are no other treatments. For gas flow, the solution is ok. But for liquid flow, the code blew up rapidly.
Attached Images
File Type: jpg tt.jpg (20.9 KB, 15 views)
k.gonski 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
Strange oscillations in my hydrodynamics code selig5576 Main CFD Forum 1 August 31, 2016 22:51
[Other] Comparing OpenFOAM to another code: advice on dealing with meshes? SFr OpenFOAM Meshing & Mesh Conversion 1 June 11, 2016 12:02
State of the art in CFD technology Juan Carlos GARCIA SALAS Main CFD Forum 39 November 1, 1999 14:34
public CFD Code development Heinz Wilkening Main CFD Forum 38 March 5, 1999 11:44
What kind of Cmmercial CFD code you feel well? Lans Main CFD Forum 13 October 27, 1998 10:20


All times are GMT -4. The time now is 09:47.