Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Simulations & Solvers
  4. Convergence issues in Magneto-quasistatic solver (for TMS applications)

Convergence issues in Magneto-quasistatic solver (for TMS applications)

Scheduled Pinned Locked Moved Simulations & Solvers
low-frequencygmrespreconditionerdivergencesimulation
1 Posts 1 Posters 575 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SylvainS Offline
    SylvainS Offline
    Sylvain
    ZMT
    wrote on last edited by
    #1

    It sometimes happens that MQS simulations fail to converge, especially in some transcranial magnetic stimulation applications. The error message looks like:

    Solver returns: 'diverged (indefinite matrix)'.
    ERROR: Linear system solver could not determine the solution.

    In several cases, the issue comes from the numerical method which is used by default. This method was selected for its efficiency, but in this particular example it can lead to this kind of convergence error. To make the simulation converge, one has to use a different method (actually a different preconditioner) than the default.

    In Sim4Life v3.4.3 and greater, there is a Solver Option called Additional Solver Options, which allows the user to change the solver settings. In this example, we want to use the GMRES preconditioner.

    In this field, type: "-ksp_type gmres" (without the double quotes).

    0_1527664570453_b17730d1-088c-4dde-a04e-a42372660a65-image.png

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Search