modelInverseXRegularized
Test problem for function that replaces 1/x around the origin by a twice continuously differentiable function
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example tests the implementation of Buildings.Utilities.Math.Functions.inverseXRegularized.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | delta | 0.5 | Small value for approximation |
| Real | deltaInv | 1/delta | Inverse value of delta |
| Real | a | -15*deltaInv | Polynomial coefficient |
| Real | b | 119*deltaInv^2 | Polynomial coefficient |
| Real | c | -361*deltaInv^3 | Polynomial coefficient |
| Real | d | 534*deltaInv^4 | Polynomial coefficient |
| Real | e | -380*deltaInv^5 | Polynomial coefficient |
| Real | f | 104*deltaInv^6 | Polynomial coefficient |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Independent variable | |
| Real | y | Function value | |
| Real | xInv | Function value | |
| Real | dy_dt | First derivative of y with respect to t | |
| Real | d2y_dt2 | Second derivative of y with respect to t |
Revisions
-
March 8, 2013, by Michael Wetter:
First implementation.