Model Browser User's Guide | ![]() ![]() |
Setting Up the Local Model
Setting up the local model requires that you specify the model's inputs and type.
Specifying the Local Model Input
The model you are building is intended to predict the torque generated by an engine as a function of spark angle at a specified operating point defined by the engine's speed, air/fuel ratio, and load. The input to the local model is therefore the spark angle.
To specify spark angle as the input:
Notice that the new name of the local model input now appears on the two-stage model diagram.
Specifying the Local Model Type
The type of a local model is the shape of curve used to fit the test data, for example, quadratic, cubic, or polyspline curves. In this example, you use polyspline curves to fit the test data. A spline is a curve made up of pieces of polynomial, joined smoothly together. The points of the joins are called knots. In this case, there is only one knot. These polynomial spline curves are very useful for torque/spark models, where different curvature is required above and below the maximum.
To specify polyspline as the model type:
Notice that the new name of the local model class, PS
(for polyspline) 2,2
(for spline order above and below knot) now appears on the two-stage model diagram.
![]() | Setting Up the Model | Setting Up the Global Model | ![]() |