internal.energy: Internal energy function (Joules)

Description Usage Arguments Details Value Author(s) Examples

Description

Calculates the internal energy of the water column with temperature and hypsography

Usage

1
internal.energy(wtr, depths, bthA, bthD)

Arguments

wtr

a numeric vector of water temperature in degrees C

depths

a numeric vector corresponding to the depths (in m) of the wtr measurements

bthA

a numeric vector of cross sectional areas (m^2) corresponding to bthD depths

bthD

a numeric vector of depths (m) which correspond to areal measures in bthA

Details

Internal energy is the thermal energy in the water column, which is calculated by multiplying the specific heat of water (J kg-1 K-1) by the temperature and mass of the water in the lake.

Value

internal energy in Joules m-2. (Currently not vectorized..)

Author(s)

Jordan S. Read

Examples

1
2
3
4
5
6
7
8
bthA  <-	c(1000,900,864,820,200,10)
bthD	<-	c(0,2.3,2.5,4.2,5.8,7)

wtr	<-	c(28,27,26.4,26,25.4,24,23.3)
depths	<-	c(0,1,2,3,4,5,6)

cat('Internal Energy for input is: ')
cat(internal.energy(wtr, depths, bthA, bthD))

clairervh/GLEON documentation built on May 12, 2019, 2:04 p.m.