soil_cp_min

soil_cp_min - d_dms = density of dry mineral soil in kg/m^3...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function cp_min = soil_cp_min(f_s, f_w) % SOIL_CP_MIN is a function to calculate the specific heat of mineral soil, % given the fractions of dry soil and water in the soil sample % % BEE 1510: Introduction to Computer Programming % Laboratory Exercise 03: Soil Specific Heat % Timothy Lin % TA: Celina % % Original Code: September 18, 2008 % Last Revision: September 23, 2008 % % Variable Dictionary % cp_min = specific heat of moist mineral soil in J/kg-K % f_w = water fraction % f_s = soil fraction % % Constants % sh_dms = specific heat of dry mineral soil in J/kg-K sh_dms = 760; % sh_w = specific heat of water in J/kg-K sh_w = 4180;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % d_dms = density of dry mineral soil in kg/m^3 d_dms = 2600; % d_w = density of water in kg/m^3 d_w = 1000; d %Inputs % f_s is the fraction of soil in the soil sample, 0.3 to 0.8 % f_w is the fraction of water in the soil sample, 0 to 0.4 % % Output Parameter % cp_min is the specific heat, J/kg-K, of mineral soil, calculated as the % weighted average of dry soil and water fractions. The calculation % assumes the air fraction of the soil contributes negligibly to the % specific heat % % Calculations cp_min = ((sh_w*f_w*d_w)+(sh_dms*f_s*d_dms))/((f_w*d_w)+(f_s*d_dms)); c end % soil_cp_min...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online