modelInverseXDerivative_2_Check
Model that checks the correct implementation of the 2nd order derivative of InverseXRegularized
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model validates the implementation of IDEAS.Utilities.Math.Functions.inverseXRegularized and its second order derivative IDEAS.Utilities.Math.Functions.BaseClasses.der_2_smoothTransition. If the derivative implementation is wrong, the simulation will stop with an error.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gain | 4 | Gain for computing the mass flow rate |
| Real | delta | 0.7 | Smoothing coefficient |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| IDEAS.Utilities.Diagnostics.CheckEquality | cheEqu1 | Block for checking integration error | |
| IDEAS.Utilities.Diagnostics.CheckEquality | cheEqu2 | Block for checking integration error | |
| Real | x | Independent variable | |
| Real | y_comp | Comparison value | |
| Real | y | Dependent variable | |
| Real | der_y_comp | 1st order derivative of comparison value | |
| Real | der_y | 1st order derivative of dependent variable | |
| Real | err | Integration error | |
| Real | der_err | Integration error |
Revisions
-
January 12, 2017, by Thierry S. Nouidui:
Added blocks for checking integration errors. This is needed for the JModelica verification tests. -
August 11, 2015, by Michael Wetter:
First implementation.