Welcome to Jay’s Toolbox MATLAB problem-solving files. All files are stored as “.doc” files. All files are stored as true ASCII characters (only). In order to load each file into MATLAB, change the file type to “.m” after you have downloaded and verified the file.
MATLAB Tools Library: Download this PPT file for a comprehensive listing of tools and videos.
AirPropFunctions_English: Properties of the ideal gas, air, in English units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
AirPropFunctions_SI: Properties of the ideal gas, air, in SI units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
Air Compressor Operating Cost Demo — Shows how to use MATLAB to solve a traditional thermodynamics problem, using the ideal gas, air, with variable specific heat. The model uses MATLAB functions that link to the air tables for property evaluation.
Otto Cycle Analysis: User enters compression process beginning state: (P,T), compression ratio, maximum cycle temperature. Use air with variable specific heat to determine thermal efficiency and mean effective pressure.
Diesel Cycle Analysis: User enters compression process beginning state: (P,T), compression ratio, maximum cycle temperature. Use air with variable specific heat to determine thermal efficiency, cutoff ratio, and mean effective pressure.
Brayton Cycle Analysis: User enters compressor inlet (P,T), compressor outlet pressure, turbine inlet temperature, compressor and turbine efficiencies. Use air with variable specific heat to determine thermal efficiency.
IdealGasSpecificHeat_English: Specific heat values, depending on temperature, for various ideal gases, in English units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
IdealGasSpecificHeat_SI: Specific heat values, depending on temperature, for various ideal gases, in SI units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
R134aPropFunctions_English: Thermodynamic properties of Refrigerant R134a, in English units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
R134aPropFunctions_SI: Thermodynamic properties of Refrigerant R134a, in SI units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
RefrigerationCycleDemo: Demo of COP determination for a refrigeration cycle. Change file type to “.m” for use in MATLAB.
SteamWaterFunctions_English: Thermodynamic properties of water/steam (H2O), in English units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
SteamWaterFunctions_SI: Thermodynamic properties of water/steam (H2O), in SI units. Change file type to “.m” for use in MATLAB. Use as stand-alone for property evaluation, or use as a base file for function calls.
SteamTurbinePowerDemo: Demo of steam turbine power analysis. Change file type to “.m” for use in MATLAB.
Rankine Cycle Analysis Demo: Classic analysis of a Rankine steam power plant with throttle (P,T), condenser (P), turbine efficiency and pump efficiency defined by user. (English Units)
Learning Tool for Determination of H2O (water/steam) Phase. Download this user-tool to learn about phase-determination of water/steam. Exercise #1: User specify (P,T) pair. Exercise #2 User specify (P or T) and (v or u or h or s) to determine phase.
Interpolation Demo: This is the basis for the linear interpolation function calls throughout all the thermodynamic property lookup tools. The demo shows how to use the built-in MATLAB “interp1” function call to perform the linear interpolation.
********************* Fluid Mechanics Tools ****************************
Demo of calculating Reynolds Number (dimensionless) for water, given temperature, velocity, and representative dimension.
Demo of calculating Moody friction factor (f) as a function of Reynolds Number (Re) and relative roughness (e/d). Eliminates the manual use of the “Moody Diagram” for determining f in pipe flow head loss calculation: Head Loss = f L/D V^2 / (2g)
Determine the head loss in a pipe with the flow known. Demo problem is for water flowing in a steel pipe. Water properties determined via function call. Reynolds Number determined via function call.
Determine the flow in a pipe with the head loss known. Demo problem is for water flowing in a horizontal steel pipe. Water properties determined via function call. Reynolds Number determined via function call. Iterative solution for flow uses the bisection method via MATLAB function call.
********************* Heat Transfer Tools ****************************
Thermophysical properties of air that depend on temperature only: Cp (specific heat), mu (dynamic viscosity), k (thermal conductivity), Pr (Prandtl Number). Also, rho (density) using the ideal gas equation of state: rho = P / (R T).
Thermophysical properties of saturated liquid water (applies to all compressed liquid water), depending on temperature only: specific heat, dynamic viscosity, thermal conductivity, Prandtl Number, density, specific volume, and surface tension.

