Yes, it is possible to define a linear magnet depending of the temperature.
The model used in Flux is “Linear magnet described by the Br module, with Br linear function of the temperature”.