Magnetic systems depending on three or two variables; thermodynamic analysis and some existing and possible applications