MarekMatejak / Physiolibrary

Modelica library for Physiology
BSD 3-Clause "New" or "Revised" License
34 stars 19 forks source link

smooth(ep, ...) is not correct Modelica #11

Closed adrpo closed 9 years ago

adrpo commented 9 years ago

Modelica specification says for smooth(p, expr): The argument p should be a scalar integer parameter expression. In this case is not as "ep" is defined as: Types.Pressure ep; which is not integer and not a parameter!

https://github.com/MarekMatejak/Physiolibrary/blob/master/Physiolibrary/Hydraulic.mo#L1288

MarekMatejak commented 9 years ago

The pressure in elestic compartment should be only continuous function (zero as first parameter of smooth), so more orders of continuous derivations are not needed there. Thanx m.