modelInverseXDerivativeCheck
Model that checks the correct implementation of the 1st 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 first order derivative IDEAS.Utilities.Math.Functions.BaseClasses.der_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 | err | Integration error |
Revisions
-
June 22, 2016, by Filip Jorissen:
Changed example such that it explicitly uses IDEAS.Utilities.Math.Functions.BaseClasses.der_inverseXRegularized. -
August 11, 2015, by Michael Wetter:
First implementation.