Skip to content
jmoeckel edited this page Nov 5, 2015 · 1 revision

Guidelines regarding the use of functions.

5.1 SmoothOrder

Use the smoothOrder annotation if a function is differentiable.

5.2 Inverse

If a function is invertible, also implement its inverse function and use the inverse annotation. See Annex60.Fluid.BaseClasses.FlowModels for an example.

5.3 Linearised Equation

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.