.Buildings.Utilities.Math.Functions.powerLinearized

Information

Function that approximates y=xn where 0 < n so that

For x < x0, this function replaces y=xn by a linear function that is continuously differentiable everywhere.

A typical use of this function is to replace T = T4(1/4) in a radiation balance to ensure that the function is defined everywhere. This can help solving the initialization problem when a solver may be far from a solution and hence T4 < 0.

See the package Examples for the graph.

Interface

function powerLinearized
  extends Modelica.Icons.Function;
  input Real x "Abscissa value";
  input Real n "Exponent";
  input Real x0 "Abscissa value below which linearization occurs";
  output Real y "Function value";
end powerLinearized;

Revisions


Generated at 2024-12-04T19:25:49Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos