gaspype.set_solver#

gaspype.set_solver(solver)#

Select a solver for chemical equilibrium.

Solvers:
  • system of equations (default): Finds the root for a system of equations covering a minimal set of equilibrium equations and elemental balance. The minimal set of equilibrium equations is derived by SVD using the null_space implementation of scipy.

  • gibs minimization: Minimizes the total Gibbs Enthalpy while keeping the elemental composition constant using the SLSQP implementation of scipy

Parameters:

solver (Literal['gibs minimization', 'system of equations']) – Name of the solver

Return type:

None