Behaviour of twist-bend nematic structure under a uniform magnetic field