placeParticlesOnIsopycnal
places Lagrangian particles along a specified isopycnal
Declaration
zIsopycnal = placeParticlesOnIsopycnal(x,y,z)
Parameters
xarray of particle x positionsyarray of particle y positionszarray of z location of target isopycnal in the no-motion profile
Returns
zIsopycnalparticle depth
Discussion
Given particle position (x,y), zNoMotion is used to determine the target
isopycnal using the no-motion density,
targetRho = wvt.rhoFunction(zNoMotion);
and a minimization algorithm is used to find zIsopycnal such that
zIsopycnal = rho(targetRho);
where rho is the current total density field of the fluid.
Note that the density is not necessarily monotonic, so the answer is not necessarily unique.