soil_cp_min - d_dms = 1400 % d_w = density of water in...

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: % % Variable Dictionary % cp_min = specific heat of moist mineral soil in J/kg-K % f_w = fraction water % f_s = fraction soil % % 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 % d_dms = density of dry mineral soil in kg/m^3
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 = 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_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 numerator = (sh_w*f_w*d_w)+(sh_dms*f_s*d_dms)) ((f_w*d_w)+(f_s*d_dms)); ( end...
View Full Document

This note was uploaded on 09/28/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

Ask a homework question - tutors are online