Fill out the form to download

Required field
Required field
Not a valid email address
Required field
Required field
  • Set up your own cloud-native simulation in minutes.

  • Documentation

    Error: Floating Point Exception

    Error

    Solver error: The simulation has encountered a floating point exception. Please contact our support for assistance.

    Error

    The meshing algorithm failed with a floating point exception. Please contact our support for assistance

    What happened?

    The simulation stopped as the solver encountered a floating-point exception error. This happens due to a division by zero during the calculation.

    What could be the possible reason?

    • For Compressible and Convective Heat Transfer (with Compressible toggled on) analysis type, this happens when no pressure boundary condition and reference pressure values were specified. This can also happen when zero values were used for pressure in the simulation setup.
    • For other analysis types, the floating-point exception error occurs when other flow variables such as turbulence quantities were zero in the Initial conditions or Custom boundary conditions.
    • Time step length that is too large.

    What can I do now?

    • For Compressible and Convection Heat Transfer analysis type, Pressure should be non-zero in the Boundary Conditions and Initial Conditions. A non-zero Pressure reference value should also be specified under Numerics.
    Non-zero values in pressure boundary conditions in a compressible convective heat transfer simulation to solve floating point exception error
    Figure 1: Non-zero value for pressure boundary condition
    Non-zero values in pressure reference value under numerics in a compressible convective heat transfer simulation to solve floating point exception error
    Figure 2: Non-zero value in pressure reference value
    • For Incompressible, Passive scalar transport, and Convective heat transfer with Boussinesq approximation (incompressible flow assumption) enabled, the Gauge pressure may have a zero value. But, make sure the turbulence and other variables have non-zero values specified.
    zero gauge pressure in pressure boundary conditions for passive scalar transport simulations to solve floating point exception error
    Figure 3: Zero gauge pressure
    non-zero turbulent kinetic energy for passive scalar transport simulations to solve floating point exception error
    Figure 4: Non-zero turbulent kinetic energy setup under Initial conditions
    • For Multiphase and Dynamic analysis, you can limit the length of the timestep under Simulation control. The timestep length influences the stability of the simulation, in CFD this is defined with the Courant number.
    Maximum time step length configuration under Simulation control to resolve floating point exception error
    Figure 5: Maximum time step length configuration under Simulation control in multiphase simulations
    Maximum time step length configuration in dynamic analysis
    Figure 6: Maximum time step length in Dynamic analysis
    • Another solution is to use upwind convection schemes because this scheme can ensure convergence in certain cases. For steady-state simulations, the bounded Gauss upwind scheme is more appropriate since it ensures boundedness. Higher-order schemes should be avoided because they are more prone to divergence.
    numerics settings simscale upwind and bounded
    Figure 7: Numerics settings window showing Upwind and Bounded schemes

    Important Information

    If none of the above suggestions solved your problem, then please post the issue on our forum or contact us.

    Tags:

    Last updated: September 9th, 2022

    Contents