Numerical Modeling And Optimization Of Thermofluid Systems: Heat Pumps, Turbocompressors, Porous Media