Some people call this genre rational fiction. Personally I really liked Harry Potter: Methods of Rationality. The MC was super narcissistic and nitpicky, a true engineer. For example he was often looking for ways to create perpetual motion machines / infinite energy with magic.