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 Annex60.Utilities.Math.Functions.inverseXRegularized and its second order derivative Annex60.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 |
|---|---|---|---|
| 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
-
August 11, 2015, by Michael Wetter:
First implementation.