"nlsolver" block¶
The nonlinear solver is configured in the JSON block "nlsolver".
json
{
"nlsolver": {
"type": "newton",
"maxiters": 50,
"abs-tolerance": 5.0e-7,
"rel-tolerance": 5.0e-10,
"s-tolerance": 0.0
}
}
Options¶
"type": optional string. If omitted, AsFem falls back to its default nonlinear solver."maxiters": optional integer. Default is25."abs-tolerance": optional floating-point value. Default is7.0e-7."rel-tolerance": optional floating-point value. Default is1.0e-9."s-tolerance": optional floating-point value. Default is0.0.
The old solver= option is no longer part of "nlsolver". Linear solver settings now belong to the separate "linearsolver" block.
Supported nonlinear solver types¶
text
asfem
newton
newton-ls
newton-al
newton-tr
newton-secant
newton-cg
newton-gmres
richardson
ncg
bfgs
In the current parser, any type string containing bfgs is treated as the BFGS solver.