[yt-dev] yt for lagrangian hydro
Sam Skillman
samskillman at gmail.com
Wed Aug 8 10:54:20 PDT 2012
Hi Matt,
That helps a lot to clarify things. Unfortunately it also makes it clear
that right now I think (and others could chime in) that this would be
difficult to get full functionality out of yt for your data. Right now yt
is only capable of handling particle or rectangular solid zones (elements,
cells), and doesn't know how to handle complicated mesh geometries. This
means that things like slices, projections, and volume renderings would be
difficult to get going.
However, I think you might be able to get minimal functionality for things
like profiles. You would need to over-ride how x,y,z positions are
calculated, but you could then do things like
http://yt-project.org/doc/cookbook/simple_plots.html#simple-phase-plots
Anyways, I think this would be difficult right now until yt handles meshes
in a more explicit fashion. Does anyone else have thoughts on this?
Best,
Sam
On Wed, Aug 8, 2012 at 11:37 AM, Matt Terry <matt.terry at gmail.com> wrote:
> The basic ideas is that you have a simple x,y,z mesh with logical
> indexes i,j,k. The Lagrangian part is that the spatial grid moves
> with the fluid flow. Logically Cartisian meas that an i, j, k index
> makes sense. If you make several of these meshes, you can stitch them
> together to make a mesh where a global i, j, no longer makes sense.
> My mesh looks like this:
>
> http://visitusers.org/images/4/44/Enhanced_reduced.jpg
>
> The boundary between blocks 012 has reduced connectivity. The 12345
> boundary has enhanced connectivity.
>
> > 1. By "logically rectangular", do you mean that each computational
> element
> > has 6 neighbors that share a face, but the element itself can have a
> > deformed shape?
>
> Yes. In 3D cartesian, each zone (volume defined by 8 mesh mesh
> vertexes) shares faces with 6 other zones. The zones are generally
> strangely shaped. Aspect ratios (assuming a vaguely rectangular
> shape) can of order dy/dx ~ 100. Generally smaller, but can be
> larger.
>
> > 2. Does reduced/enhanced connectivity zones mean one element can share a
> > face with, say, 4 elements? This would make it behave a bit like and
> > adaptive mesh refinement setup, which shouldn't be too bad.
>
> A single zone (element?) will always have 6 neighbors, however more
> (or less) than 6 zones may share a vertex.
>
> > If the shapes of the elements change, I think it might be a little bit
> > tricky, but if they are all geometrically rectangular then it would be
> > easier.
>
> Geometrically rectangular zones are novel.
>
> > Another big determinant of how easy this will be to implement is what the
> > data format looks like. Is there a method paper or other reference that
> > explains a bit more of the code/data structure?
>
> Data structures are very simple. Each block is effectively a 3d
> numpy.ndarray. On disk, each block is contained within a single
> binary file. Multiple blocks may reside in the same file.
>
> Hope that helps. Happy to answer more questions.
>
> -matt
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20120808/d251e625/attachment.html>
More information about the yt-dev
mailing list