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 Buildings.Utilities.Math.Functions.inverseXRegularized and its second order derivative Buildings.Utilities.Math.Functions.BaseClasses.der_2_smoothTransition. If the derivative implementation is wrong, the simulation will stop with an error.

Parameters

TypeNameDefaultDescription
Realgain4Gain for computing the mass flow rate
Realdelta0.7Smoothing coefficient

Components

TypeNameDefaultDescription
Buildings.Utilities.Diagnostics.CheckEqualitycheEqu1Block for checking integration error
Buildings.Utilities.Diagnostics.CheckEqualitycheEqu2Block for checking integration error
RealxIndependent variable
Realy_compComparison value
RealyDependent variable
Realder_y_comp1st order derivative of comparison value
Realder_y1st order derivative of dependent variable
RealerrIntegration error
Realder_errIntegration 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.