• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Online CFD Course
  3. Module 1: Simulation produces error: Mass is not a numb...

Stats

  • State Verified Answer
  • Replies 10
  • Subscribers 11
  • Views 6639
  • Members are here 0
More Content

Module 1: Simulation produces error: Mass is not a number

SimonGohle
SimonGohle over 2 years ago

The problem I have with the first challenge might be a problem with my PC. When ever I start the simulation of the in the handout specified numbers, the simulation ends after some time and gives out the error message

 - S_Simulation 1 Error: ERROR: residual of Mass is Not A Number: the solver has been stopped

and the message

 - The simulation Simulation 1 has failed: some NaN have been detected during the computation.<br> ERROR: residual of Mass is Not A Number: the solver has been stopped

I don´t know if my PC´s CPU is maybe not good enough or if there might be a problem with my pre-processing in this challenge.

What worked is to set the CFL Number to 1.5 instead of 3.0, but the challenge requires running the simulation with a CFL of 3.0.

  • Sign in to reply
  • Cancel
  • SimonGohle
    +1 SimonGohle over 2 years ago in reply to SimonGohle

    I found my error. There is a tab in the mesharea exactly looking the same for the viscos layers. Instead of setting it up in at the wall I set it up in the mesh set up in the tab local. That producet the error. Now my Solution converges. Thank you very much for your help :)

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • LukasOde
    0 LukasOde over 2 years ago in reply to SimonGohle

    hi together,

    I have the same issue like you Simon, but I can’t  follow your way of fixing it. I only found the tab from Kathrins screenshot at "simulation"    --> "domain" --> "physics" but there is everything correct.

    I also checked the CFL Number part but I have the same settings like you.

    Best regards,

    Lukas

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Manuel NIB
    +1 Manuel NIB over 2 years ago in reply to LukasOde

    Hi Lukas,

    to my understaning Simon has set up viscous layers not only on the walls but also on inlet and outlet because he used the "local" tab in the mehs setup.

    Please try the following:

    • Select the mesh setup: Make sure that full hexa mesh and a cell size in domain of 0.0025m has been set.
    • Select the mesh setup: Go to the tab local: make sure that viscous layers is deactivated there. The box needs to been unticked. Otherwise the visous layers are inserted on the whole grid.
    • Select the boundary of your pipe wall: You are automatically in the tab local. Activate the viscous layers here with the setting from the hand-out: first layer thickness: 9.0e-05 m; target number of layers (fixed): 5

    Viscous layers will be a topic in class 2, but here is already some background: Below you see a cutting plane inside the pipe showing the cell intersection (done in the same way as in result analysis; select cells intersection on the cutting plane and activate the wireframe visibility).

    The upper screen shot shows a grid with visous layers only on the pipe wall. The lower picture shows a grid with viscous layers on wall, inlet and outlet. A simulation with viscous layers on inlet or outlet will diverge in most of the cases with default numerical parameters. So this is already a very good lessons learned: If your simulation diverges/crashes, check that you don't have viscous layers on inlet & outlet.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • LukasOde
    0 LukasOde over 2 years ago in reply to Manuel NIB

    Thank you for your explanations! In fact, that was my mistake too.

    Do we learn more about the diverging case tomorrow?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Manuel NIB
    0 Manuel NIB over 2 years ago in reply to LukasOde

    Hi Lukas,

    thank you for your feedback!

    In class 1 we explained already that a simulation can converge and diverge. In all other classes we will quite often address potential divergence issues as the reason for a divergence can be quite difference from on divergence to another.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information