functionPerformanceCurve

Information

Pump-characteristic copy of TRANSFORM.Math.PerformanceCurve. See that function for the math, argument meaning and the analytic-derivative pattern.

Both copies must be kept in sync. This local copy exists so that the PumpCharacteristics closure-relation models can reference a function within their own sub-package; the implementation, default for d, and derivative annotation are identical.

Inputs

TypeNameDefaultDescription
RealxValue of interest
Real[:]x_curve
Real[size(x_curve, 1)]y_curve
Real[size(x_curve, 1)]dTRANSFORM.Math.splineDerivatives(x = x_curve, y = y_curve, ensureMonotonicity = TRANSFORM.Math.isMonotonic(x = y_curve, strict = false))Derivatives at the support points (precomputed; default keeps backward compatibility)
Realr_NRelative revolution, r_N=N/N_nominal
Realdelta0.05Small value for switching implementation around zero rpm

Outputs

TypeNameDefaultDescription
RealyOutput at x