search for: rho_y_t

Displaying 1 result from an estimated 1 matches for "rho_y_t".

Did you mean: rho_x_t
2006 Sep 22
4
Creating Movies with R
...ero # density at wall rho_y<-function(y,expect_position,sigma_pos) { 1/sqrt(2*pi*sigma_pos)*exp(-1/2*(y-expect_position)^2/sigma_pos)- 1/sqrt(2*pi*sigma_pos)*exp(-1/2*(y+expect_position)^2/sigma_pos) } newy<-seq(ymin,ymax,len=nx) # grid along y with the same # of points as the one along x rho_y_t<-matrix(ncol=nx,nrow=tsteps-1) for (i in 2:tsteps) {mypar<-c(exp_y[i],sig_yy[i]) myrho_y<-do.call("rho_y",c(list(y=newy),mypar)) rho_y_t[ i-1, ]<-myrho_y } rho_y_t_scaled<-matrix(ncol=nx,nrow=tsteps-1) for (i in 2:tsteps) {mypar<-c(exp_y[i],sig_yy[i]) myrho_y<-do.cal...