{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Lab03 - f_s = fraction soil ii Define Constants[sh_dms =...

This preview shows pages 1–2. Sign up to view the full content.

Tim Lin BEE 1510: Introduction to Computer Programming Laboratory Exercise 03: Soil Specific Heat Algorithm 9/18/08 [ ---- ] is put into code depending on which function 1. Enter Comments BEE 1510: Introduction to Computer Programming Laboratory Exercise 03: Soil Specific Heat Timothy Lin TA: Celina Input Arguments 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 2. Inputs i. Define Variables [cp_min = specific heat of moist mineral soil in J/kg-K] [cp_org = specific heat of moist organic soil in J/kg-K] f_w = fraction water

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f_s = fraction soil ii. Define Constants [sh_dms = specific heat of dry mineral soil in J/kg-K] [sh_dms = 760] [sh_dos = 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 [d_dms = density of dry mineral soil in kg/m^3] [d_dms = 1400] [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 iii. Define Inputs ask user for fraction soil (f_s) ask user for fraction water (f_w) echo inputs for fraction soil and fraction water 3. Calculations i. [cp_min = ((sh_w*f_w*d_w)+(sh_dms*f_s*d_dms))/((f_w*d_w)+(f_s*d_dms))] ii. [cp_org = ((sh_w*f_w*d_w)+(sh_dos*f_s*d_dos))/((f_w*d_w)+(f_s*d_dos))]...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

Lab03 - f_s = fraction soil ii Define Constants[sh_dms =...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online