aurora-multiphysics / hippo

hippo is an integration of OpenFOAM and MOOSE to enable thermohydraulic simulations
GNU General Public License v3.0
3 stars 0 forks source link

Resolve/document SIGFPE errors #19

Open hsaunders1904 opened 3 weeks ago

hsaunders1904 commented 3 weeks ago

Description

When running a Hippo app, you generally do not need a Variable or Kernel to solve, Hippo is just running OpenFOAM and copying the boundary temperatures into an AuxVariable. Apparently, MOOSE will still calculate the residual of the (non-aux) variables, even if there aren't any, resulting in a division by 0 and a SIGFPE signal.

In the cases I've tested, MOOSE will ignore these and carry on, which is fine. However, OpenFOAM (at least my version), will trap the SIGFPE and abort by default.

There are two solutions/workarounds I've found:

  1. Add a dummy variable to your MOOSE input file. As I've done in some tests.
  2. Run unset FOAM_SIGFPE && unset FOAM_SETNAN before running the app.

Outputs