linearinterp.py
- class openconcept.utilities.linearinterp.LinearInterpolator(**kwargs)
Bases:
ExplicitComponent
Create a linearly interpolated set of points including two end points
- Inputs:
start_val (float) – Starting value (scalar; units set from “units” option)
end_val (float) – Ending value (scalar; units set from “units” option)
- Outputs:
vec (float) – Vector of linearly interpolated points (scalar; units set from “units” opt)
- Options:
units (str, None) – Units for inputs and outputs
num_nodes (int) – Number of linearly interpolated points to produce (minimum/default 2)