.IDEAS.Utilities.Math.Functions.regNonZeroPower

Information

Function that approximates y=|x|n where n > 0 so that

This function replaces y=|x|n in the interval -δ...+δ by a 4-th order polynomial that has the same function value and the first and second derivative at x=± δ.

A typical use of this function is to replace the function for the convective heat transfer coefficient for forced or free convection that is of the form h=c |dT|n for some constant c and exponent 0 ≤ n ≤ 1. By using this function, the original function that has an infinite derivative near zero and that takes on zero at the origin is replaced by a function with a bounded derivative and a non-zero value at the origin. Physically, the region -δ...+δ may be interpreted as the region where heat conduction dominates convection in the boundary layer.

See the package Examples for the graph.

Interface

function regNonZeroPower
  extends Modelica.Icons.Function;
  input Real x "Abscissa value";
  input Real n "Exponent";
  input Real delta = 0.01 "Abscissa value where transition occurs";
  output Real y "Function value";
end regNonZeroPower;

Revisions


Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos