Changes between Version 6 and Version 7 of Shape/ExternalData


Ignore:
Timestamp:
06/16/15 11:57:39 (10 years ago)
Author:
madams
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Shape/ExternalData

    v6 v7  
    44As we know very well, AstroBEAR generates simulations in HDF5 (Hierarchical Data Format), i.e. Chombo, files. As far as we know Shape has not yet been developed to import HDF5. Currently it accepts ASCII files. Therefore the simulations you want to visualize will need to be in ASCII form.
    55
    6 Shape can read and visualize 3D simulations. However make sure that the columns in your ASCII file are converted to a 3D Cartesian coordinate system. You will need a minimum of 7 columns, of the form: {{{px, py, pz, vx, vy, vz, n}}}. Where all {{{pi}}} are the positions in {{{(x, y, z)}}}, all {{{vi}}} are the respective velocities, and {{{n}}} is the density. One can also have a column for temperature {{{T}}}. Unlike VisIt, where you visualize the time evolution of a simulation frame-by-frame, Shape will only require one frame to be visualized. In Shape, you can rotate it and study the morphology at that instant. It may be best to visualize with VisIt first, pick your frame, and then convert it to ASCII. See the '''Before Starting''' section for more on this.
     6Shape can read and visualize 3D simulations. However make sure that the columns in your ASCII file are converted to a 3D Cartesian coordinate system. You will need a minimum of 7 columns, of the form: {{{px, py, pz, vx, vy, vz, n}}}. Where all {{{pi}}} are the positions in {{{(x, y, z)}}}, all {{{vi}}} are the respective velocities, and {{{n}}} is the density. One can also have a column for temperature {{{T}}}, and pressure {{{P}}}. Unlike VisIt, where you visualize the time evolution of a simulation frame-by-frame, Shape will only require one frame to be visualized. In Shape, you can rotate it and study the morphology at that instant. It may be best to visualize with VisIt first, pick your frame, and then convert it to ASCII. See the '''Before Starting''' section for more on this.
    77
    88Remember that Shape's goal is to be a software that reduces restrictions on physical assumptions so that astronomers can make a realistic reconstruction of an astrophysical object's morphology. Thus the software is useful for defining 3D structural elements to create a model that can be optimized to fit an observation. Here, by importing external data, we are approaching from the opposite angle. We are using a code to generate a simulation of an object, or phenomena, that is comparable to actual astrophysical objects. In Shape we can then visualize, and compare these simulations more easily with observation. Expect the animations you make with Shape to not look as defined as those one could make in VisIt with the same simulation, as they are meant to look like emission maps.
     
    1616== Before Starting ==
    1717
    18 1. Make sure you simulation is in ASCII form. Hopefully you will find this [https://astrobear.pas.rochester.edu/trac/wiki/chombo2ascii guide] on how to convert HDF5 to ASCII helpful.
     181. Make sure your simulation is in ASCII form. Hopefully you will find this [https://astrobear.pas.rochester.edu/trac/wiki/chombo2ascii guide] on how to convert HDF5 to ASCII helpful.
    1919
    20 2. The basic format you will want for your ASCII file
     202. ('''Currently Subjected to Testing''') The basic format you will want for your ASCII file is a series of 7 columns minimum. They will be of the form: {{{px,py,pz,vx,vy,vz,n}}}, the Cartesian coordinates of position, velocity and the density.
     21
     223. Import the data into excel. Take the averages of all of the columns. You can open the file in terminal and scroll to the bottom to determine how many lines there are. You will use these values later to ''center'' your data.
     23
     24[[Image(Screen Shot 2015-06-16 at 11.47.22.png)]]
    2125
    2226== 3D Module ==