This function models the transport of a single particle through a spatially variable, windy, turbulent atmosphere with gravity. It allows 4D-varying atmospheric wind and density. Currently, only Rayleigh drag (low Re) is permitted.
Tephra3d(vx0, vy0, vz0, x0 = 0, y0 = 0, z0 = 0, t0 = 0,
rho_r = 2000, r = 1, dt = 0.01, Cd = 0.6, verbose = FALSE,
rho_a = NULL, zt = NULL, wx = 0, wy = 0, wz = 0, mindist = 0,
TOPO = NULL, Kh = 0, Kz = 0, eddy_timescale = 60, g = 9.80665)initial x component of velocity [m/s]
initial y component of velocity [m/s]
initial z component of velocity [m/s]
initial easting [m]
initial northing [m]
initial elevation [m]
initial time [s]
density of tephra particle [kg/m^3]
rock radius [m]
model time interval [s]
drag coefficient [unitless]
logical: print runtime info to screen?
scalar or function(x,y,z,t) or function(z) giving atmospheric density [kg/m^3]. If NULL, use a variable-density isothermal atmosphere (T = 0 deg C)
function(x,y) giving topographic height [m]
scalar or function(x,y,z,t) or function(z) giving component of wind to the east [m/s]
scalar or function(x,y,z,t) or function(z) giving component of wind to the north [m/s]
scalar or function(x,y,z,t) or function(z) giving upward component of wind [m/s]
minimum distance a particle must travel before simulation can stop. This is to prevent early model ends due to spurious collision with crater.
DEM: list containing vectors x and y and matrix z with dimensions (length(x), length(y))
horizontal eddy diffusivity [m^2/s]
vertical eddy diffusivity (often neglected) [m^2/s]
1/e decay time of turbulent eddies [s]
gravitational acceleration [m/s^2]
# NOT RUN {
Tephra3d(vx0 = 40, vy0 = 0, vz0 = 40, z0 = 0)
# }
Run the code above in your browser using DataLab