|
Hopsan
|
A numerical solver utility for equation systems using LU-decomposition. More...
Public Member Functions | |
| EquationSystemSolver (Component *pParentComponent, int n) | |
| Constructor for equation system solver utility. | |
| EquationSystemSolver (Component *pParentComponent, int n, Matrix *pJacobian, Vec *pEquations, Vec *pVariables) | |
| Constructor for equation system solver utility with additional arguments. | |
| void | solve (Matrix &jacobian, Vec &equations, Vec &variables, int iteration) |
| Solves a system of equations. | |
| void | solve (Matrix &jacobian, Vec &equations, Vec &variables) |
| Solves a system of equations with just one iteration (slightly faster) | |
| void | solve () |
| Solves a system of equations. Requires pre-defined pointers to jacobian, equations and state variables. | |
A numerical solver utility for equation systems using LU-decomposition.
Solves 



| EquationSystemSolver | ( | Component * | pParentComponent, |
| int | n ) |
Constructor for equation system solver utility.
| pParentComponent | Pointer to parent component |
| n | Number of states |
| EquationSystemSolver | ( | Component * | pParentComponent, |
| int | n, | ||
| Matrix * | pJacobian, | ||
| Vec * | pEquations, | ||
| Vec * | pVariables ) |
Constructor for equation system solver utility with additional arguments.
| pParentComponent | Pointer to parent component |
| n | Number of states |
| pJacobian | Pointer to Jacobian matrix |
| pEquations | Pointer to vector with equations (RHS) |
| pVariables | Pointer to vector with state variables |
Solves a system of equations with just one iteration (slightly faster)
| jacobian | Jacobian matrix |
| equations | Vector of system equations |
| variables | Vector of state variables |