Buildings.Utilities.Psychrometrics.BaseClasses.Examples

Collection of models that illustrate model use and test models

Information


This package contains examples for the use of models
that can be found in 
Buildings.Utilities.Psychrometrics.BaseClasses.

Extends from Buildings.BaseClasses.BaseIconExamples (Icon for Examples packages).

Package Content

NameDescription
DewPointTemperatureDerivativeCheck Model to test correct implementation of derivative


Buildings.Utilities.Psychrometrics.BaseClasses.Examples.DewPointTemperatureDerivativeCheck

Model to test correct implementation of derivative

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.



Modelica definition

model DewPointTemperatureDerivativeCheck 
  "Model to test correct implementation of derivative"

  Real x;
  Real y;
initial equation 
   y=x;
equation 
  x=Buildings.Utilities.Psychrometrics.BaseClasses.dewPointTemperature(T=time);
  der(y)=der(x);
  assert(abs(x-y) < 1E-2, "Model has an error");
end DewPointTemperatureDerivativeCheck;

HTML-documentation generated by Dymola Fri May 15 10:15:43 2009.