![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Numerical solver for transfer-function models. More...
#include <pimathsolver.h>
Public Types | |
| enum | Method |
| Integration method selector. | |
Public Member Functions | |
| PIMathSolver () | |
| Constructs an empty solver. | |
| void | solve (double u, double h) |
| Performs one solver step for input u and step h. | |
| void | fromTF (const TransferFunction &TF) |
| Initializes the internal model from a transfer function. | |
| void | setMethod (Method m) |
| Sets the method used by solve(). | |
| void | setTime (double time) |
| Updates stored time history used by polynomial methods. | |
| void | solveEyler1 (double u, double h) |
| Performs one step with the first-order Euler method. | |
| void | solveEyler2 (double u, double h) |
| Performs one step with the second-order Euler method. | |
| void | solveRK4 (double u, double h) |
| Performs one step with the fourth-order Runge-Kutta method. | |
| void | solveABM2 (double u, double h) |
| Performs one step with the second-order Adams-Bashforth-Moulton method. | |
| void | solveABM3 (double u, double h) |
| Performs one step with the third-order Adams-Bashforth-Moulton method. | |
| void | solveABM4 (double u, double h) |
| Performs one step with the fourth-order Adams-Bashforth-Moulton method. | |
| void | solvePA (double u, double h, uint deg) |
| Performs one step with a polynomial approximation of degree deg. More... | |
| void | solvePA2 (double u, double h) |
| Performs one step with degree-2 polynomial approximation. | |
| void | solvePA3 (double u, double h) |
| Performs one step with degree-3 polynomial approximation. | |
| void | solvePA4 (double u, double h) |
| Performs one step with degree-4 polynomial approximation. | |
| void | solvePA5 (double u, double h) |
| Performs one step with degree-5 polynomial approximation. | |
Public Attributes | |
| PIMathVectord | X |
| Current solver state vector. | |
Static Public Attributes | |
| static Method | method_global = PIMathSolver::Eyler_2 |
| Global default method used when Method is Global. | |
| static const char | methods_desc [] |
| Text description of available methods. | |
Numerical solver for transfer-function models.
| void PIMathSolver::solvePA | ( | double | u, |
| double | h, | ||
| uint | deg | ||
| ) |
Performs one step with a polynomial approximation of degree deg.
find polynom