Solve

Python code allows changing the solver configuration by ConfigSolver object as shown below:

ConfigSolver.LargeDeflections = True
ConfigSolver.ConvergenceDisp = True
ConfigSolver.FrictionForceTolerance = Double(0.02,"Newton")

Also the solver output can be modified with SolverOutput command:

SolverOutput.NodeResults.Results_CSTATUS = False
SolverOutput.NodeResults.Results_CSHEARF = False

As seen in mesh commands, Python code can execute the solver:

solve()

The ‘solve’ command can produce errors and not stop execution. It returns an error code, with 0 as a successful result:

if (solve() == 0):
	LogInfo("Solved OK!")
else:
	LogError("Not solved!")