Functions
Moritz Lauster edited this page Oct 7, 2016
·
3 revisions
Use the smoothOrder
annotation if a function is differentiable.
If a function is invertible, also implement its inverse function and use the inverse
annotation. See Annex60.Fluid.BaseClasses.FlowModels
for an example.
If a model allows a linearised implementation of an equation, then implement the linearised equation in an equation
section and not in the algorithm
section of a function. Otherwise, a symbolic processor cannot invert the linear equation, which can lead to coupled systems of equations. See Annex60.Fluid.BaseClasses.FlowModels
for an example.
-
Basics
-
Modelica Guidelines
-
How to ...
-
Continuous Integration