Cantera  2.1.2
Classes | Namespaces | Variables
solveProb.h File Reference

Header file for implicit nonlinear solver with the option of a pseudotransient (see Numerical Utilities within Cantera and class solveProb). More...

#include "cantera/base/Array.h"
#include "ResidEval.h"
Include dependency graph for solveProb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  solveProb
 Method to solve a pseudo steady state of a nonlinear problem. More...
 

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Variables

const int SOLVEPROB_INITIALIZE = 1
 Solution Methods. More...
 
const int SOLVEPROB_RESIDUAL = 2
 
const int SOLVEPROB_JACOBIAN = 3
 
const int SOLVEPROB_TRANSIENT = 4
 

Detailed Description

Header file for implicit nonlinear solver with the option of a pseudotransient (see Numerical Utilities within Cantera and class solveProb).

Definition in file solveProb.h.

Variable Documentation

const int SOLVEPROB_INITIALIZE = 1

Solution Methods.

Flag to specify the solution method

1: SOLVEPROB_INITIALIZE = This assumes that the initial guess supplied to the routine is far from the correct one. Substantial work plus transient time-stepping is to be expected to find a solution. 2: SOLVEPROB_RESIDUAL = Need to solve the surface problem in order to calculate the surface fluxes of gas-phase species. (Can expect a moderate change in the solution vector -> try to solve the system by direct methods with no damping first -> then, try time-stepping if the first method fails) A "time_scale" supplied here is used in the algorithm to determine when to shut off time-stepping. 3: SOLVEPROB_JACOBIAN = Calculation of the surface problem is due to the need for a numerical jacobian for the gas-problem. The solution is expected to be very close to the initial guess, and accuracy is needed. 4: SOLVEPROB_TRANSIENT = The transient calculation is performed here for an amount of time specified by "time_scale". It is not guaranteed to be time-accurate - just stable and fairly fast. The solution after del_t time is returned, whether it's converged to a steady state or not.

Definition at line 52 of file solveProb.h.

Referenced by solveProb::print_header(), and solveProb::solve().