soil_cp_org

# soil_cp_org - d_dos = density of dry organic soil in kg/m^3...

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

function cp_org = soil_cp_org(f_s, f_w) % SOIL_CP_ORG is a function to calculate the specific heat of organic 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 = water fraction % f_s = soil fraction % % 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;
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 % soil_cp_org...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online