A simple pump model.
The pump speed is controlled (parameter) and the resulting flow and pressure increase is determined by the components connected to the pump (the "system characteristics").
The affinity law is used to scale the pump curve (relation between flow and pressure increase) with the pump speed.