soil_cp_org - % d_dos = density of dry organic soil in...

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

View Full Document Right Arrow Icon
function cp_org = soil_cp_org(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_org = specific heat of moist organic soil in J/kg-K % f_w = fraction water % f_s = fraction soil % % Constants % sh_dms = specific heat of dry organic soil in J/kg-K sh_dos = 500; % 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_dos = density of dry organic soil in kg/m^3 d_dos = 1400; % 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_org is the specific heat, J/kg-K, of organic 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_org = ((sh_w*f_w*d_w)+(sh_dos*f_s*d_dos))/((f_w*d_w)+(f_s*d_dos)); c end...
View Full Document

Ask a homework question - tutors are online