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

PengRobinson floating point exception

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2020, 12:43
Post PengRobinson floating point exception
  #1
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 7
Dmarcohe is on a distinguished road
Hello CFDler,

i am working on a simulation with fluid CO2 through a diffusor at 60 bar and roomtemepratur. The fluid should pressure driven exit the nozzle.

I started my first simulation with the Equation of state perfectGas which worked. Now i changed the EOS to PengRobinsonGas and now i get a "floating point exception" (division through zero) after a few iterations.

In this link you can find my case with the log File:

https://drive.google.com/open?id=1wv...zqL9c6CEc9YcxU

I already tried to change the Boundarys, the numeric and my mesh without any oblique lines but nothing worked.

Any suggestions?

Greatings

Daniel
Dmarcohe is offline   Reply With Quote

Old   May 11, 2020, 05:34
Default
  #2
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14
Eifoehn4 is on a distinguished road
In most cases, when using real equations of state, the CFD user is not aware that in some areas the setup surpasses the physical limits of the EOS.
I would suggest, to modify your thermodynamic states and approach the initial condition in stages, e.g. reduce your pressure to 1 bar at 293.15 K temperature.

Regards
__________________
Check out my side project:

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

Old   May 11, 2020, 05:40
Default
  #3
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 7
Dmarcohe is on a distinguished road
Quote:
Originally Posted by Eifoehn4 View Post
In most cases, when using real equations of state, the CFD user is not aware that in some areas the setup surpasses the physical limits of the EOS.
I would suggest, to modify your thermodynamic states and approach the initial condition in stages, e.g. reduce your pressure to 1 bar at 293.15 K temperature.

Regards
Thank you. When i change my pressure settings to 2bar the simulations starts and runs. With 8 bar i get the same error but it runs longer.

So you're recommending to increase the pressure on the fly?
Dmarcohe is offline   Reply With Quote

Old   May 11, 2020, 06:58
Default
  #4
Senior Member
 
Eifoehn4's Avatar
 
-
Join Date: Jul 2012
Location: Germany
Posts: 184
Rep Power: 14
Eifoehn4 is on a distinguished road
Not exactly, i mean that you should be aware if your underlying problem may produce non-physical conditions for you geometrical setup.

Independantly of this, a ramping of the boundary or initial conditions is no bad choice.

Regards
__________________
Check out my side project:

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

Old   May 11, 2020, 07:27
Default
  #5
New Member
 
Daniel
Join Date: Nov 2019
Location: Germany
Posts: 10
Rep Power: 7
Dmarcohe is on a distinguished road
Quote:
Originally Posted by Eifoehn4 View Post
Not exactly, i mean that you should be aware if your underlying problem may produce non-physical conditions for you geometrical setup.

Independantly of this, a ramping of the boundary or initial conditions is no bad choice.

Regards
I just tried to ramp my pressure, but for that i had to change the bcs at the inlet. With the new BCs the simulations starts, but doesnt reach the first point i had defined with "table". It ended with the same Error.
Dmarcohe is offline   Reply With Quote

Reply

Tags
cfd - post, equation of state, openfoam 1806, pengrobinsongas


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
icoFoam floating point exception (8) leizhao512 OpenFOAM Running, Solving & CFD 7 November 1, 2018 12:43
A floating point exception has occurred: floating point exception [Overflow]. starlight STAR-CCM+ 4 May 4, 2016 10:08
A floating point exception - SEM Model yansheng STAR-CCM+ 1 April 4, 2016 05:57
Floating point exception from twoPhaseEulerFoam openfoammaofnepo OpenFOAM Running, Solving & CFD 1 March 19, 2016 14:56
Floating point exception (core dumped) for GAMG solver yuhou1989 OpenFOAM Running, Solving & CFD 2 March 24, 2015 20:28


All times are GMT -4. The time now is 00:41.