Hey guys,So the ability to do arbitrary mixed transform spaces (i.e. ‘gcg’) has been replaced by the layout system, which in effect allows only for spaces along one “transform path” (i.e. ‘ccc’ -> ‘ccg’ -> ‘cgg’ -> ‘ggg’), since it really simplifies the memory and transform management when parallelized.The way to do this type of thing now is to use the functional operators I’ve started implementing (so far there is only integration, but I can add interpolation at a specific point in space):So doing something likeu_int = Integrate(u, ‘z')u_center = Interpolate(u, ‘z’, 0.5)will produce new fields that Dedalus knows internally defined on the (x, y) subspace of the domain (they have internal flags specifying that there are constant along z).What I’m currently implementing in the analysis framework is that when you save such a field, it will only be saved over the relevant subspace (i.e. as a shape (nx, ny, 1) array). So you could save u_int / u_center in grid / coeff layout to get the vertical integral on the (x, y) grid, or the horizontal spectrum at z=0.5 on the (kx, ky) grid, respectively.-KeatonOn Feb 19, 2014, at 2:45 PM, Daniel Lecoanet <dlec...@berkeley.edu> wrote:I think you can do this by usingu['cg']The way I understand it, u['c'] is just shorthand for u['cc'].DanielOn Wed, Feb 19, 2014 at 11:43 AM, Ben Brown <bpb...@gmail.com> wrote:
Given velocity u, computing the powerspectrum would look something like this:Keaton & Daniel,And analysis question for you two. I'd like to extract a power spectrum at some particular depth in a dedalus sim, e.g, the powerspecturm of velocity fluctuations at mid-depth.
Power = u['c']*np.conj(u['c'])This gives what I want in coeff space. Is there a way to now extract this only at one depth? e.g., to be in a mixed-coeff/grid space configuration?
In particular, I'd be happy to do a horizontal coeff space and vertical grid space. It would be fine to do the powerspectrum only over the horizontal coeff dimension as well, e.g.,
Power_x = u['c_x']*np.conj(u['c_x'])
where here 'c_x' means "be in coeff space for x but not z".Can we do this already?--Ben