modelSmoothBlocks
Test model for smooth min and smooth max functions
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model tests the implementation of blocks that approximate non-differentiable functions by smooth functions.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SmoothMax | smoMax | ||
| Modelica.Blocks.Math.Max | max | ||
| Modelica.Blocks.Sources.Sine | sine | ||
| Modelica.Blocks.Sources.Sine | sine1 | ||
| Diagnostics.AssertEquality | assEquMax | ||
| Buildings.Utilities.Math.SmoothMin | smoMin | ||
| Modelica.Blocks.Math.Min | Min | ||
| Diagnostics.AssertEquality | assEquMin |
Revisions
-
November 12, 2013, by Michael Wetter:
Added missing parameter value forsine1.freqHz. -
August 15, 2008, by Michael Wetter:
First implementation.