Welcome, Guest. Please Login.
Gravity Simulator
11/18/17 at 06:13:58
News: Registration for new users has been disabled to discourage spam. If you would like to join the forum please send me an email with your desired screen name to tony at gravitysimulator dot com.
Home Help Search Login


Pages: 1
Send Topic Print
GS File Format (Read 8627 times)
Titov
YaBB Newbies
*


it's not my real
name ;)

Posts: 1
GS File Format
11/11/05 at 14:51:01
 
Tony,
thank you very much for such a funny program,
that's great!
 
I am sorry that I couldn't locate the detailed description of a GSIM File Format.
 
Could you please help.
 
Kind Regards
Alex
Back to top
 
 
View Profile   IP Logged
Tony
YaBB Administrator
*****




Posts: 1049
Gender: male
Re: GS File Format
Reply #1 - 12/10/05 at 10:43:44
 
Sorry for not responding sooner.  I saw your message a few weeks ago and forgot about it  Sad
 
GSIM file format is a text format with an extension of .gsim.
The data is divided up into stuff relative to the whole program, such as background color, zoom level, etc.
Then there is a section that stores every object's vectors, mass, color, etc.
And there is a section that stores autopilot commands.
 
I haven't published a list of what each piece of data means.  I find it easier to edit them by just saving them using Gravity Simulator, rather than trying to use a text editor.  Is this what you mean?
Back to top
 
 
Email View Profile WWW   IP Logged
nphillips
Uploader



I love YaBB 1G -
SP1!

Posts: 3
Re: GS File Format
Reply #2 - 12/10/06 at 12:24:35
 
Ironically, the same question comes up a year later Wink
 
Has anything been posted that details what's inside of the .gsim files?
 
I'd like to be able to compare systems between one time to the next, as well as simply be able to tweak my details in excel and just export the data to a new gsim file to load up. (obviously the importing and exporting in excel would be my job)
 
Thanks!
Back to top
 
 
View Profile   IP Logged
Tony
YaBB Administrator
*****




Posts: 1049
Gender: male
Re: GS File Format
Reply #3 - 12/10/06 at 15:13:19
 
If you will be importing and exporting to Excel, you'd be happier with the latest Beta version.  I'll send one to your private inbox.
 
Consider the following simulation:  http://orbitsimulator.com/gravity/simulations/gsim.gsim
 
Here's what's in the .gsim file
Code:
<GrAVITY> 'The capitalization tells the program what version created it.  Version 1.0 used Gravity instead of GrAVITY
<Distance Boxes> 'beginning of distance box data.  These are the boxes created when you choose View > Add Distance and Velocity Box
  
 210 'x position in twips
 4440 'y position in twips
Sun 'object in first dropdown list
Earth 'object in second dropdown list
 1 'reference number of first object (in this simulation Sun = 1, Earth = 2, Moon = 3)
 2 'reference number of second object
  
 270 'second instance of a distance box.
 6285 
Moon
Earth
 3 
 2 
</Distance Boxes> 'End of Distance Box Data
<Orbit Boxes> 'Beginning of Orbital element boxes.  These are the boxes you get when you choose View > Add Orbital Elements Box
 
 840 'x position in twips
 8655 'y position in twips
Moon 'object in first dropdown list
Earth 'object in second dropdown list
 3 'reference number of first object
 2 'reference number of second object
 
 3660 'second instance of Orbital Elements Box
 8715 
Earth
Sun
 2 
 1 
</Orbit Boxes> 'End of Orbital Elements Box data
<SData> 'Simulation data
 1.73415299158326E-09 'display scalepixel
 425544 'seconds elapsed since January 1, 0000
 1 'time step
 2.40543082114449E-08 'screen offset x-axis
-6.25892422078525E-08 'screen offset y-axis
 1 'focus object
 3 'number of objects in the simulation
False 'not used 
False 'not used
 0 'not used
-10000 'value of vertical scroll bar (controls viewing angle)
C:\Documents and Settings\Owner\Desktop\gsim.gsim 'current simulation file name and path
False 'Rotating Frame
 2489252.02339429 'Period of rotating frame
True 'Time forward.  From the Time > Time Forward menu
 0 'background color
 2 'window state (0=sized, 1=minimized, 2=maximized)
-60 'Top position of display
-60 'left position of display
 24120 'Width of display
 18120 'Height of display
True 'Title bar visible (invisible in full screen mode.  Press ESC to toggle between modes)
False 'Exaggerated Object Sizes
 1 'Minimum Object Size (From Preferences menu)
 10 'Exaggerated Object Size (From Preferences menu)
True 'Focus on object rather than barycenter.  Use the A/F button on the Graphics Options window to toggle between modes
False 'Labels on
True 'Trails on
True 'Plot / Don't plot mode, True=plot
C:\Documents and Settings\Owner\Desktop 'simulation directory
C:\Documents and Settings\Owner\Desktop\gsim.gsim 'simulation name and path
False 'Auto Save enabled
 0 'Auto Save period (in seconds)
 0 'Auto Save count
 0 'Auto Save Maximum saves
 0 'Next Autosave moment
Beta Version next 4 lines: screen scale indicator: visible, width, backcolor, left, top
</SData> 'end of this segment of simulation data
<Command Buttons>
 690 'Screen Scale Window top (-1 if not loaded)
 0			    ' left
 1350 'Time step top
 0		'  left
 2010 'Focus Object window top
 0				'left
 2670 'Time and Date window top
 0				 'left
 3330 'Graphics Options window top
 0				  ' left
</Command Buttons>
<Captions>
 'Caption Text
MS Sans Serif 'Font Name
 12 'Font Size
 16711680 'Font Color
False 'bold
False 'Italic
False 'Strikethru
False 'Underline
 0 'top
 0 'left
 1 'height
 1 'width
' Next caption text
MS Sans Serif
 13.5 
 255 
False
False
False
False
 0 
 0 
 1 
 1 

MS Sans Serif
 8.25 
 65280 
False
False
False
False
 0 
 0 
 1 
 1 

MS Sans Serif
 8.25 
 16711680 
False
False
False
False
 0 
 0 
 1 
 1 
</captions>
<Thrust Box>
 
 11475 'top in twips
 6705 'left
    'Thrust box azimuth (not active in this simulation)
    'Thrust box altitude
 3 'Thrust object
 2 'Reference object
</Thrust Box>
<Objects>
  'Intentional blank line
Floating 'object name (in this case the invisible floating object the program uses internally.  not a real object.  Jump down one object for descroptions
 0 

 0 
 0 
 0 
 0 
 0 
 0 
 0 
 0 
-1 
-7.615603E+33 
 0 
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
 
Sun 'Name
 332983.460559796 'mass in Earth masses
    'Reference object (in the case of the Sun, there is none)
 65535 'color
 1392000000 'diameter in meters
 13.8709262263439 'x position in meters
-36.0921109680809 'y position in meters
 0 'z position in meters
 4.23406988261737E-04 'x velocity * time step
-1.09455051316522E-03 'y velocity * time step
 0 'z velocity * time step
 0 'x direction (used for thrusting the object)
 0 'y direction
 0 'z direction
Reserved for future use 'In Beta, used for Continuous Orientation Reference Object
Reserved for future use
Reserved for future use
Reserved for future use
 
Earth
 1 
Sun
 16711680 
 12756000 
 54885895541.8604 
-139165588951.052 
 0 
 27709.1986771063 
 10928.3063074845 
 0 
 0 
 0 
 0 
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
 
Moon
 0 
Earth
 12632256 
 0 
 54731390224.9483 
-138814005777.376 
 0 
 26775.9148601246 
 10519.7635321946 
 0 
 0 
 0 
 0 
Reserved for future use
Reserved for future use
Reserved for future use
Reserved for future use
</Objects>
<Auto Pilot>
 1 'number of autopilot comands
 
"01 05 1	  21 46 04 Pause		   " 'Autopilot command string (note: autopilot is not yet compatible between version 2.0 and beta version)
 32046364 'time of autopilot command
(in seconds past 1/1/0000)
</Auto Pilot>
</GrAVITY>
 

Back to top
 
 
Email View Profile WWW   IP Logged
nphillips
Uploader



I love YaBB 1G -
SP1!

Posts: 3
Re: GS File Format
Reply #4 - 12/11/06 at 19:20:04
 
Oh, wow.
 
You weren't kidding about the new output format.
 
Most excellent, Tony!
Back to top
 
 
View Profile   IP Logged
Tony
YaBB Administrator
*****




Posts: 1049
Gender: male
Re: GS File Format
Reply #5 - 12/11/06 at 21:00:37
 
Make sure to come back often and post simulations, screenshots, and excel graphs.
Back to top
 
 
Email View Profile WWW   IP Logged
frankuitaalst
Ultimate Member
*****


Great site

Posts: 1507
Gender: male
Re: GS File Format
Reply #6 - 04/14/07 at 06:53:59
 
One question about the gsim Format :  
 
Sun 'Name
 332983.460559796 'mass in Earth masses
    'Reference object (in the case of the Sun, there is none)
 65535 'color
 1392000000 'diameter in meters
 13.8709262263439 'x position in meters
-36.0921109680809 'y position in meters
 0 'z position in meters
 4.23406988261737E-04 'x velocity * time step
-1.09455051316522E-03 'y velocity * time step
 0 'z velocity * time step

 
if i want to copy the position of a new body  in an existing gsim file , i have to multiply the real velocity with the time step , is this correct ? Or divide ? I presume the latest time step is the time step mentionned ?  
Back to top
 
 
Email View Profile   IP Logged
Tony
YaBB Administrator
*****




Posts: 1049
Gender: male
Re: GS File Format
Reply #7 - 04/14/07 at 13:54:55
 
yes, multiply the real velocity by the time step.  Time step should be included in the gsim file.
Back to top
 
 
Email View Profile WWW   IP Logged
Pages: 1
Send Topic Print