modelSpliceFunctionDerivativeCheck
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example checks whether the function derivative is implemented correctly. If the derivative implementation is not correct, the model will stop with an assert statement.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | delta | 0.2 | Smoothing area |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | deltax | Smoothing area as a function of x | |
| Real | x | Independent variable | |
| Real | y | Approximate function value | |
| Real | y_comp | Approximate function value | |
| Real | err | Error | |
| Real | d1y | First derivative | |
| Real | d2y | Second derivative | |
| Real | d3y | Third derivative |
Revisions
-
October 13, 2021, by Michael Wetter:
Added new output for higher order derivatives.
This is for IBPSA, issue 1531. -
August 17, 2015 by Michael Wetter:
Updated regression test to have slope that is different from one. This is for issue 303. -
May 20, 2008, by Michael Wetter:
First implementation.