Utilities¶
Smooth functions (after Buildings.Utilities.Math.Functions) and parameter computations
FastSmoothBuildings.Utilities, package (source)
| Class | Description |
|---|---|
| regStep | Once continuously differentiable step from y2 (x < -x_small) to y1 (x > x_small) |
| smoothMax | Once continuously differentiable approximation of max(x1, x2) |
| smoothMin | Once continuously differentiable approximation of min(x1, x2) |
| smoothLimit | Once continuously differentiable limitation of x to [l, u]: exactly l below l - deltaX and u above u + deltaX, x between l + deltaX and u - deltaX, quadratic blends in between that never leave [l, u] |
| smoothLimitInside | Once continuously differentiable limitation of x to [l + deltaX, u - deltaX], strictly inside [l, u] (for arguments of functions singular at the bounds, as acos at -1 and 1) |
| positivePart | Smooth max(x, 0): 0.5*(x + sqrt(x^2 + delta^2)) |
| naturalConvection | Heat flow from a surface to the air q = Ac |
| convectionCoefficient | Natural convection coefficient of Buildings for a surface tilt: wall 1.3, ceiling 0.76/1.51, floor 1.51/0.76 |
| polynomialFit | Least-squares quartic c[1] + c[2]x + ... + c[5]x^4 through 10 points (x, y) |
| equalPercentage | Equal-percentage valve characteristic with leakage (Buildings.Fluid.Actuators.BaseClasses.equalPercentage): linear below delta0/2, R^(y-1) above 1.5*delta0, a cubic Hermite joining them |
| valveConductance | Conductance m_flow/dp of a valve with a fixed resistance in series, its flow law linearized as Buildings does (linearized=true): m_flowm_flow_nominal = k^2dp, 1/k^2 = 1/kFixed^2 + 1/(phi*Kv)^2 |
| quadraticFlow | Flow through a quadratic resistance (m_flow_nominal at dp_nominal), regularized below deltaM*m_flow_nominal |
| timeOfDay | Seconds since midnight, without events |
| occupancy | 1 between the pairs of instants of a day schedule {on, off, on, off, ...} [s] (Buildings OccupancySchedule with firstEntryOccupied), each change a smooth step over dt |
| dayTable | Linear interpolation in a day table [time of day (s), value], repeated daily |
| polynomial | c[1] + c[2]x + ... + c[n]x^(n-1) |
| Validation | Validation models of the package |
Smooth functions after Buildings.Utilities.Math.Functions, schedules without events, convection laws, valve characteristics and parameter computations.