R/sph.taildown.R

Defines functions sph.taildown

sph.taildown <-
function(dist.hydro, a.mat, b.mat, parsil = parsil, range1 = range1,
	useTailDownWeight, weight = NULL)
{
	flow.connect <- b.mat == 0
	V <- parsil*(1 - 1.5*(dist.hydro/range1) +
		0.5*(dist.hydro/range1)^3)*(a.mat < range1)*flow.connect +
		parsil*(1 - 1.5*b.mat/range1 +
		0.5*a.mat/range1)*(1 - a.mat/range1)^2*
		(a.mat < range1)*(1 - flow.connect)
	V
}

Try the SSN package in your browser

Any scripts or data that you put into this service are public.

SSN documentation built on March 7, 2023, 5:30 p.m.