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

How to solve problem diverging in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2018, 04:40
Default How to solve problem diverging in OpenFOAM
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi,

I got this error below when running a hypersonic flow problem. The problem has been adpted from the wedge15Ma5 example. May I know what it means?

I've tried many interpolation schemes but only upwind works. However, it is only 1st order. I hope to use other schemes which are 2nd order. What can I do to prevent divergence?

I have lowered deltaT, maxCo etc

[3] #0 Foam::error:rintStack(Foam::Ostream&) at ??:?
[3] #1 Foam::sigFpe::sigHandler(int) at ??:?
[3] #2 ? in "/lib64/libc.so.6"
[3] #3 Foam::hePsiThermo<Foam:siThermo, Foam:ureMixture<Foam::sutherlandTransport<Foam:: species::thermo<Foam::hConstThermo<Foam:erfectGa s<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::calculate() at ??:?
[3] #4 Foam::hePsiThermo<Foam:siThermo, Foam:ureMixture<Foam::sutherlandTransport<Foam:: species::thermo<Foam::hConstThermo<Foam:erfectGa s<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::correct() at ??:?
[3] #5 ? at ??:?
[3] #6 __libc_start_main in "/lib64/libc.so.6"
[3] #7 ? at ??:?
[std1708:19779:0] Caught signal 8 (Floating point exception)
==== backtrace ====
2 0x000000000005a42c mxm_handle_error() /var/tmp/OFED_topdir/BUILD/mxm-3.5.3092/src/mxm/util/debug/debug.c:641
3 0x000000000005a59c mxm_error_signal_handler() /var/tmp/OFED_topdir/BUILD/mxm-3.5.3092/src/mxm/util/debug/debug.c:616
4 0x0000000000032510 killpg() ??:0
5 0x0000000000032495 raise() ??:0
6 0x0000000000032510 killpg() ??:0
7 0x000000000018c7da _ZN4Foam11hePsiThermoINS_9psiThermoENS_11pureMixtu reINS_19sutherlandTransportINS_7species6thermoINS_ 12hConstThermoINS_10perfectGasINS_6specieEEEEENS_2 2sensibleInternalEnergyEEEEEEEE9calculateEv() ??:0
8 0x00000000002277c5 _ZN4Foam11hePsiThermoINS_9psiThermoENS_11pureMixtu reINS_19sutherlandTransportINS_7species6thermoINS_ 12hConstThermoINS_10perfectGasINS_6specieEEEEENS_2 2sensibleInternalEnergyEEEEEEEE7correctEv() ??:0
9 0x0000000000427fe7 main() ??:0
10 0x000000000001ed1d __libc_start_main() ??:0
11 0x0000000000424059 _start() ??:0
===================
quarkz is offline   Reply With Quote

Old   April 5, 2018, 05:15
Default
  #2
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 94
Rep Power: 15
einstein_zee is on a distinguished road
Quote:
Originally Posted by quarkz View Post
Hi,

I got this error below when running a hypersonic flow problem. The problem has been adpted from the wedge15Ma5 example. May I know what it means?

I've tried many interpolation schemes but only upwind works. However, it is only 1st order. I hope to use other schemes which are 2nd order. What can I do to prevent divergence?

I have lowered deltaT, maxCo etc

[3] #0 Foam::error:rintStack(Foam::Ostream&) at ??:?
[3] #1 Foam::sigFpe::sigHandler(int) at ??:?
[3] #2 ? in "/lib64/libc.so.6"
[3] #3 Foam::hePsiThermo<Foam:siThermo, Foam:ureMixture<Foam::sutherlandTransport<Foam:: species::thermo<Foam::hConstThermo<Foam:erfectGa s<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::calculate() at ??:?
[3] #4 Foam::hePsiThermo<Foam:siThermo, Foam:ureMixture<Foam::sutherlandTransport<Foam:: species::thermo<Foam::hConstThermo<Foam:erfectGa s<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::correct() at ??:?
[3] #5 ? at ??:?
[3] #6 __libc_start_main in "/lib64/libc.so.6"
[3] #7 ? at ??:?
[std1708:19779:0] Caught signal 8 (Floating point exception)
==== backtrace ====
2 0x000000000005a42c mxm_handle_error() /var/tmp/OFED_topdir/BUILD/mxm-3.5.3092/src/mxm/util/debug/debug.c:641
3 0x000000000005a59c mxm_error_signal_handler() /var/tmp/OFED_topdir/BUILD/mxm-3.5.3092/src/mxm/util/debug/debug.c:616
4 0x0000000000032510 killpg() ??:0
5 0x0000000000032495 raise() ??:0
6 0x0000000000032510 killpg() ??:0
7 0x000000000018c7da _ZN4Foam11hePsiThermoINS_9psiThermoENS_11pureMixtu reINS_19sutherlandTransportINS_7species6thermoINS_ 12hConstThermoINS_10perfectGasINS_6specieEEEEENS_2 2sensibleInternalEnergyEEEEEEEE9calculateEv() ??:0
8 0x00000000002277c5 _ZN4Foam11hePsiThermoINS_9psiThermoENS_11pureMixtu reINS_19sutherlandTransportINS_7species6thermoINS_ 12hConstThermoINS_10perfectGasINS_6specieEEEEENS_2 2sensibleInternalEnergyEEEEEEEE7correctEv() ??:0
9 0x0000000000427fe7 main() ??:0
10 0x000000000001ed1d __libc_start_main() ??:0
11 0x0000000000424059 _start() ??:0
===================
Hi there,

Does it happen immediately after running? if so as the error states (floating point exception) can be caused by poor defined boundary/initial conditions. If it happens after some time steps you may check the errors/residuals to see what is causing this issue.

In general, if you are facing such errors in the beginning of a simulation, the best thing is to simplify the problem. You may do so by for exp. turning turbulence off, using first order Euler for ddt, turning off function objects (if there exists any) and even running in serial first instead of parallel. If the error still persists you may also use debug switches.

hope this helps...
einstein_zee is offline   Reply With Quote

Old   April 5, 2018, 09:00
Default
  #3
New Member
 
Join Date: Mar 2018
Posts: 4
Rep Power: 8
clemerlin is on a distinguished road
Hi,

I totally agree with what einstein_zee said just before, but just to add one or two things.
You can also try to put some relaxation factors if the divergence is coming from physical parameters or also reduce the relative residual tolerance of your solvers (in fvSolution file).
One other thing could be to try to refine your mesh if these advices do not work for your case.

Cheers and good luck
clemerlin is offline   Reply With Quote

Old   April 6, 2018, 21:04
Default
  #4
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Thanks for the answers clemerlin and einstein_zee!

My problem diverges after a short while. Anyway, I manage to get things working after changing the transport eqn from sutherland to constant, lowering CFL, and using Euler. I wonder if these changes will make the result less accurate?

Also, for high speed compressible flow, is it better to use 2nd order upwind family instead of linear for the divScheme and gradSchemes ?

Thanks
quarkz is offline   Reply With Quote

Old   April 7, 2018, 04:18
Default
  #5
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
Another idea is to write a result at each time step. You may see then from which region the problems arise.
__________________
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   July 9, 2018, 02:22
Default
  #6
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Quote:
Originally Posted by piu58 View Post
Another idea is to write a result at each time step. You may see then from which region the problems arise.
Hi Piu,

I tried this before. But strangely, I did not notice any large changes in U, p or T when I view in paraview. I can only see from the error msg that "e" diverges.
quarkz 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
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
Can OpenFoam solve this problem? salazardetroya OpenFOAM Running, Solving & CFD 1 July 29, 2015 23:34
Problem when installing Openfoam 2.0.x with mac giovaniharyadi OpenFOAM Installation 0 March 24, 2012 19:45
Can I use OpenFOAM to solve unsteady diffusion problem yongshenglian OpenFOAM Running, Solving & CFD 1 September 17, 2008 13:03
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 02:40


All times are GMT -4. The time now is 20:53.