Data output from gravity, partical speed, cordinates etc.

13 views
Skip to first unread message

Christer Eriksson

unread,
Oct 1, 2011, 11:51:53 AM10/1/11
to Gravit mailing list

Hi,

I am working on this ide I have to make a experimental electronic
music composition based on how stars in number of colliding galaxys
are moving.

Gravit just looks amazing and generate exacly the kind of inputdata I
would like to use.

But is there any way to get data about the particals out of gravit for
further processing?


Any input would be most apreciated.


Best regards,
/Christer

Gerald Kaszuba

unread,
Oct 1, 2011, 6:25:58 PM10/1/11
to gra...@googlegroups.com
Hi Christer,


On 2 October 2011 01:51, Christer Eriksson <agk...@gmail.com> wrote:
But is there any way to get data about the particals out of gravit for
further processing?

There is an option to save a simulation in Gravit, which creates a couple files that saves information and the data of the current simulation. Is this the kind of thing you're after?

Gerald

--
Gerald Kaszuba | http://geraldkaszuba.com/

   

christer eriksson

unread,
Oct 2, 2011, 7:34:45 AM10/2/11
to gra...@googlegroups.com

Hi Gerald,

I have not found that option. How do I activate that option?

/Christer
--
You received this message because you are subscribed to the Google Groups "Gravit mailing list" group.
To post to this group, send email to gra...@googlegroups.com.
To unsubscribe from this group, send email to gravit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gravit?hl=en.

Gerald Kaszuba

unread,
Oct 2, 2011, 8:05:42 AM10/2/11
to gra...@googlegroups.com
Hi Christer,


On 2 October 2011 22:34, christer eriksson <agk...@gmail.com> wrote:
I have not found that option. How do I activate that option?

Just type in "save [filename]" in the console. The instructions are in the manual: http://gravit.slowchop.com/docs/Console.php#SavingandLoading

The files saved go into different places depending on your operating system. The console log should print out the location for you, if I remember correctly.

christer eriksson

unread,
Oct 2, 2011, 11:07:07 AM10/2/11
to gra...@googlegroups.com

Thank you Gerald,

I tried the save:

save Cmd Saves the current simulation by the name you give it (eg. "save mysimulation"). If you have saved or loaded recently, you will have a "simulation name" which is shown on the top of your screen. If you have this, you don't need to specify a name to save -- it will automatically use the simulation name.

Inded I get files and some wery large, so it looks like it migh be the data I am after.

But is there any documentation over the syntax used in the info files? What is what in the file.


Best regards,
/Christer




Javier Agustìn Fernàndez Arroyo

unread,
Oct 2, 2011, 11:41:41 AM10/2/11
to gra...@googlegroups.com
Hello everyone,

i just wanted to ask a question....

im looking at the website from time to time, and i keep seeing the same gravit release (0.42) while i have recently seen work in a 0.50 beta release, or something like that...

where can i get latest packages?

thank you so much

Gerald Kaszuba

unread,
Oct 2, 2011, 5:33:53 PM10/2/11
to gra...@googlegroups.com
Christer,


On 3 October 2011 02:07, christer eriksson <agk...@gmail.com> wrote:
Inded I get files and some wery large, so it looks like it migh be the data I am after.

But is there any documentation over the syntax used in the info files? What is what in the file.

There is no documentation as such, since the data is stored as low-level C structures. The "particleDetail" file contains information of every particle within all recorded frames. The structure looks like this:


typedef struct particle_s {

    VectorNew(pos);
    VectorNew(vel);

} particle_t;

VectorNew defines 32bit floats for x, y, z. So basically, the file contains numbers for x, y, z positions and x, y, z velocities.

The "particleInfo" file tells you how many particles there are per frame, and what it's up to in recording:


typedef struct saveInfo_s {

    int particleCount;
    int historyFrames;
    int totalFrames;
    int frame;
    int historyNFrame;

} saveInfo_t;

This is all available on the github repo: https://github.com/gak/gravit/blob/master/gravit.h

Gerald

Philippe Boucher

unread,
Oct 2, 2011, 10:56:00 PM10/2/11
to gra...@googlegroups.com

32 bits floats, you’ll get crappy results my friends.  Please use at least double…

 

-----Message d'origine-----
De : gra...@googlegroups.com [mailto:gra...@googlegroups.com] De la part de Gerald Kaszuba
Envoyé : 2 octobre 2011 17:34
À : gra...@googlegroups.com
Objet : Re: [gravit] Data output from gravity, partical speed, cordinates etc.

--

Reply all
Reply to author
Forward
0 new messages