<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi!<br>Thank you, it's working!<br>I'll e-mail you if I have other questions, but for the time it worked :)<br>Ari<br><br><div>> From: matthewturk@gmail.com<br>> Date: Wed, 30 Jul 2014 14:41:06 -0500<br>> To: yt-users@lists.spacepope.org<br>> Subject: Re: [yt-users] Unstructured grid yt supportþþ -question<br>> <br>> Hi Ari,<br>> <br>> Sorry for the delay!  Have had a crazy couple days.<br>> <br>> Basically, yes, you are right.  xdmf_points_000*.dat gives the "x" and<br>> "y" coordinates.  But, for the most part, that's not the important<br>> part -- in fact, I apologize for having given such a complex example.<br>> <br>> The basics you want are identical to "loading particle data" here:<br>> <br>> http://yt-project.org/docs/dev-3.0/examining/loading_data.html#generic-particle-data<br>> <br>> That's all that the script I was doing did, up until the point where<br>> it has the "ds" object.  At that point, you can and should be able to<br>> do whatever you need to.  I would recommend doing it like so:<br>> <br>>  * Either decide on loading in vertex or centered data<br>>  * Add in scalar fields for volume, if you have them, for the FEM mesh<br>>  * Use IDW weighting (also in the script) for visualization<br>> <br>> As a note, there are places where yt will build its own mesh and<br>> indexing system; these may give incorrect results.  So once you have<br>> it loaded in and have made a few projections, let's figure out what<br>> the next steps are, and how we can make sure your results are<br>> high-fidelity.<br>> <br>> -Matt<br>> <br>> On Wed, Jul 23, 2014 at 7:12 PM, Ariadna Murguia <doggies012@hotmail.com> wrote:<br>> > Hi!<br>> > I have some other questions: I'm guessing that in the xdmf_points_0000.dat<br>> > and xdmf_points_0001.dat the number 0 or 1 refers to the x coordinate and y<br>> > coordinate, but what about the other variables, do they refer to the<br>> > component x and y of the variable? If so, what happens when dealing with a<br>> > scalar?<br>> ><br>> > Thank you!<br>> > Ari<br>> ><br>> >> From: matthewturk@gmail.com<br>> >> Date: Mon, 21 Jul 2014 20:36:46 -0500<br>> ><br>> >> To: yt-users@lists.spacepope.org<br>> >> Subject: Re: [yt-users] Unstructured grid yt supportþþ -question<br>> >><br>> >> Hi Ariadna,<br>> >><br>> >> On Mon, Jul 21, 2014 at 8:30 PM, Ariadna Murguia <doggies012@hotmail.com><br>> >> wrote:<br>> >> > Hi!<br>> >> > I was looking at the unstructured grid script and the data, and I had a<br>> >> > question. What is the field "abs", "z", and "s"?<br>> >><br>> >> abs was my data field -- in this case, the absolute value of the<br>> >> displacement. s was my radius, and z the cylindrical axis coordinate.<br>> >><br>> >> > Thank you!<br>> >> > Ariadna<br>> >> ><br>> >> > ________________________________<br>> >> > From: doggies012@hotmail.com<br>> >> > To: yt-users@lists.spacepope.org<br>> >> > Date: Thu, 17 Jul 2014 11:39:11 -0500<br>> >> ><br>> >> > Subject: Re: [yt-users] Unstructured grid yt supportþþ -question<br>> >> ><br>> >> > Hi!<br>> >> > Ok, tomorrow at 10AM PDT :)<br>> >> > Ariadna<br>> >> ><br>> >> >> From: matthewturk@gmail.com<br>> >> >> Date: Thu, 17 Jul 2014 07:15:30 -0500<br>> >> >> To: yt-users@lists.spacepope.org<br>> >> >> Subject: Re: [yt-users] Unstructured grid yt supportþþ -question<br>> >> >><br>> >> >> Hi Ariadna,<br>> >> >><br>> >> >> How about tomorrow at 10AM PDT?<br>> >> >><br>> >> >> -Matt<br>> >> >><br>> >> >> On Wed, Jul 16, 2014 at 11:43 AM, Ariadna Murguia<br>> >> >> <doggies012@hotmail.com> wrote:<br>> >> >> ><br>> >> >> > Hi!<br>> >> >> > Don't worry, I'm thankful for your help. My data is a vtk legacy file<br>> >> >> > for<br>> >> >> > unstructured grid. The coordinates are of the vertex, but the values<br>> >> >> > of<br>> >> >> > the<br>> >> >> > variables are cell-center. I'm available on thursday and on friday<br>> >> >> > before<br>> >> >> > noon (PDT). Are you available?<br>> >> >> > Ariadna<br>> >> >> ><br>> >> >> ><br>> >> >> >> Hi Ariadna,<br>> >> >> >><br>> >> >> >> Sorry for the delay in my reply. I think that there might need to be<br>> >> >> >> a slight modification to the script I sent to get it working for<br>> >> >> >> your<br>> >> >> >> data. Ultimately, none of the reshaping/loading/etc matter -- the<br>> >> >> >> end<br>> >> >> >> result, where you supply particle_position_x, particle_position_y,<br>> >> >> >> and<br>> >> >> >> particle_position_z is the important part. Do you think that it<br>> >> >> >> would<br>> >> >> >> be feasible to do that with your data? And, are your data values<br>> >> >> >> vertex defined or cell-center defined? If the former, the technique<br>> >> >> >> I<br>> >> >> >> showed should work, but if the latter, there is likely a much easier<br>> >> >> >> technique to use.<br>> >> >> >><br>> >> >> >> Today I'm going to have limited availability, but perhaps we could<br>> >> >> >> set<br>> >> >> >> up a time on Thursday or Friday to go over this in our IRC channel,<br>> >> >> >> with lower latency responses?<br>> >> >> >><br>> >> >> >> -Matt<br>> >> >> >><br>> >> >> >> On Tue, Jul 15, 2014 at 12:58 PM, Ariadna Murguia<br>> >> >> >> <doggies012@hotmail.com> wrote:<br>> >> >> >> > Hi!<br>> >> >> >> > My data has 3 coordinates (cylindrical), although the angle is<br>> >> >> >> > cero<br>> >> >> >> > (so<br>> >> >> >> > it<br>> >> >> >> > is a 2D simulation). I changed it to 3, but still vals.size/3 is<br>> >> >> >> > not<br>> >> >> >> > an<br>> >> >> >> > integer. Can you tell me the order of your data? In the<br>> >> >> >> > simulations<br>> >> >> >> > I'm<br>> >> >> >> > using the first numbers correspond to the 3 coordinates of each of<br>> >> >> >> > the<br>> >> >> >> > cells<br>> >> >> >> > vertex. Then, there is a number for the shape of the mesh (4 in<br>> >> >> >> > the<br>> >> >> >> > case<br>> >> >> >> > of<br>> >> >> >> > squares), followed by the list of vertex. After that, it has the<br>> >> >> >> > values<br>> >> >> >> > of<br>> >> >> >> > the variables inside the square.<br>> >> >> >> > Thank you for your help,<br>> >> >> >> > Ariadna<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> >> Are you doing 3D visualization? The simulation I was using when I<br>> >> >> >> >> wrote that script was 2D -- if yours is 3D, you will likely need<br>> >> >> >> >> to<br>> >> >> >> >> change it to 3, rather than 2, in that line. If you give a bit<br>> >> >> >> >> more<br>> >> >> >> >> info about the data (shape for instance) I can try replicating it<br>> >> >> >> >> here.<br>> >> >> >> >><br>> >> >> >> >> -Matt<br>> >> >> >> >><br>> >> >> >> >> On Mon, Jul 14, 2014 at 2:51 PM, Ariadna Murguia<br>> >> >> >> >> <doggies012@hotmail.com><br>> >> >> >> >> wrote:<br>> >> >> >> >> > Hi!<br>> >> >> >> >> > I wrote a while back asking to visualize a dataset in an<br>> >> >> >> >> > unstructured<br>> >> >> >> >> > grid<br>> >> >> >> >> > with AMR and a vtk output file. I was given a script that could<br>> >> >> >> >> > do<br>> >> >> >> >> > simple<br>> >> >> >> >> > visualizations: http://paste.yt-project.org/show/4879/ .<br>> >> >> >> >> > I tried altering it in order to visualize my data but (line<br>> >> >> >> >> > 39),<br>> >> >> >> >> > the<br>> >> >> >> >> > number<br>> >> >> >> >> > of elements in my vals array is odd, making the reshape become<br>> >> >> >> >> > an<br>> >> >> >> >> > error.<br>> >> >> >> >> > Is<br>> >> >> >> >> > there a way around it?<br>> >> >> >> >> > Thank you very much<br>> >> >> >> >> > Ariadna Murguia Berthier<br>> >> >> >> >> ><br>> >> >> >> >> > _______________________________________________<br>> >> >> >> >> > yt-users mailing list<br>> >> >> >> >> > yt-users@lists.spacepope.org<br>> >> >> >> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> >> >> >> ><br>> >> >> >> >> _______________________________________________<br>> >> >> >> >> yt-users mailing list<br>> >> >> >> >> yt-users@lists.spacepope.org<br>> >> >> >> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> >> >> ><br>> >> >> >> > _______________________________________________<br>> >> >> >> > yt-users mailing list<br>> >> >> >> > yt-users@lists.spacepope.org<br>> >> >> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> >> >> ><br>> >> >> >> _______________________________________________<br>> >> >> >> yt-users mailing list<br>> >> >> >> yt-users@lists.spacepope.org<br>> >> >> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> >> ><br>> >> >> > _______________________________________________<br>> >> >> > yt-users mailing list<br>> >> >> > yt-users@lists.spacepope.org<br>> >> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> >> ><br>> >> >> _______________________________________________<br>> >> >> yt-users mailing list<br>> >> >> yt-users@lists.spacepope.org<br>> >> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> ><br>> >> > _______________________________________________ yt-users mailing list<br>> >> > yt-users@lists.spacepope.org<br>> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> ><br>> >> > _______________________________________________<br>> >> > yt-users mailing list<br>> >> > yt-users@lists.spacepope.org<br>> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> ><br>> >> _______________________________________________<br>> >> yt-users mailing list<br>> >> yt-users@lists.spacepope.org<br>> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> ><br>> > _______________________________________________<br>> > yt-users mailing list<br>> > yt-users@lists.spacepope.org<br>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> ><br>> _______________________________________________<br>> yt-users mailing list<br>> yt-users@lists.spacepope.org<br>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></div>                                           </div></body>
</html>