Gravity Simulator
http://www.orbitsimulator.com/cgi-bin/yabb/YaBB.pl
General >> Discussion >> Create Object Interface suggestion
http://www.orbitsimulator.com/cgi-bin/yabb/YaBB.pl?num=1365961687

Message started by EDG on 04/14/13 at 10:48:07

Title: Create Object Interface suggestion
Post by EDG on 04/14/13 at 10:48:07

Is it at all possible to improve the way way that bodies are entered into the system? Having to enter each body one by one is a pain - could the Create Objects not be turned into more like a "table" instead, with all the parameters for each body on a single row? That way we can just enter all the bodies at the same time.

Title: Re: Create Object Interface suggestion
Post by Tony on 04/14/13 at 15:32:29

I tried that once, and there's lots of info for a table-like interface.
Make and image of what you're thinking of, and I'll consider making it.

Title: Re: Create Object Interface suggestion
Post by EDG on 04/14/13 at 16:36:42

Like this (see attached):

At least this way you don't have to keep hit Create Objects seven times to make the system - you just enter it all into the table and submit it, then you're done.

Even better would be a way to just read a tab or space delimited text file containing that table and then have it convert it into gsim format from that.

Title: Re: Create Object Interface suggestion
Post by Tony on 04/15/13 at 09:34:06


EDG wrote:
...Even better would be a way to just read a tab or space delimited text file containing that table and then have it convert it into gsim format from that.

I like that idea better than creating an interface.  Bug me in late May after the semester has ended :)

Title: Re: Create Object Interface suggestion
Post by EDG on 04/16/13 at 21:14:45

If we can also set the starting time and timestep like this, that would be nice too. e.g. I usually prefer to start my sims at a date/time of "1 1 0 00:00:00", and a very low timestep (e.g. 0.0000001) - starting off with time Paused would be ideal, but it doesn't show anything onscreen when paused.

Title: Re: Create Object Interface suggestion
Post by EDG on 05/19/13 at 13:36:34


Tony wrote:
[quote author=EDG link=1365961687/0#2 date=1365982602] ...Even better would be a way to just read a tab or space delimited text file containing that table and then have it convert it into gsim format from that.

I like that idea better than creating an interface.  Bug me in late May after the semester has ended :)[/quote]

Is it late enough in May yet to start bugging you about this? ;)

Title: Re: Create Object Interface suggestion
Post by Tony on 05/19/13 at 17:53:13


EDG wrote:
Is it late enough in May yet to start bugging you about this? ;)

Early May:  May 1 - May 9
Mid May:  May 10-May 20
Late May: May 21-May 31

For bugging me a day too early, I shall have to assess a 5-day penalty. >:(  On a more serious note, late May for me doesn't officially begin until Friday, an hour after my semester ends and all my papers are graded!  I love the idea.  It's much better than re-inventing the wheel and trying to put a spreadsheet inside Gravity Simulator.  So stay-tuned.  I'll do it soon.

Title: Re: Create Object Interface suggestion
Post by EDG on 05/19/13 at 18:02:55

Eh, I was close enough ;). I've just been kinda antsy waiting for this, then I could get back into doing stuff with gravsim!  :)

But seriously, your work comes first. I will bate my breath a little longer, but it's good to know that you're keen on the idea! :)

Title: Re: Create Object Interface suggestion
Post by EDG on 05/30/13 at 22:31:39

I think the five-day penalty should have passed by now... ;)

Title: Re: Create Object Interface suggestion
Post by Tony on 06/02/13 at 16:45:54

Does your version of Windows use commas or decimal points in numbers?  i.e. is pi 3.14 or 3,14?

Title: Re: Create Object Interface suggestion
Post by EDG on 06/03/13 at 01:49:39


Tony wrote:
Does your version of Windows use commas or decimal points in numbers?  i.e. is pi 3.14 or 3,14?


Decimals points (it's the canadian english version).

Title: Re: Create Object Interface suggestion
Post by Tony on 06/03/13 at 08:16:41

Any idea how people using European Windows can read csv files when the commas as decimal points would ruin the structure?

Title: Re: Create Object Interface suggestion
Post by frankuitaalst on 06/03/13 at 11:02:24

Normally Excel gives us the opportunity to read decimals as a point or as a comma .

Title: Re: Create Object Interface suggestion
Post by EDG on 06/03/13 at 18:59:36


Tony wrote:
Any idea how people using European Windows can read csv files when the commas as decimal points would ruin the structure?


you could always just make it a tab-separated file instead of a comma-separated one? Those would still be readable.

Title: Re: Create Object Interface suggestion
Post by Tony on 06/03/13 at 20:41:34

Frank, are you a comma person?  I'm currently coding this thing for decimal people.  But once its finished and debuged (the harder part), I can always switch to tabs to include the comma people too.  We are one world!

Title: Re: Create Object Interface suggestion
Post by frankuitaalst on 06/03/13 at 22:32:04

I use points as decimals I see .

Title: Re: Create Object Interface suggestion
Post by EDG on 06/22/13 at 11:05:27

Any more news about this?

Title: Re: Create Object Interface suggestion
Post by EDG on 06/22/13 at 11:06:07

Any more news about this?

Title: Re: Create Object Interface suggestion
Post by Tony on 06/22/13 at 15:19:37

I've written it, but debugging is harder than coding.  I'll see if I can post something in the next week.

Title: Re: Create Object Interface suggestion
Post by EDG on 06/22/13 at 22:53:47


Tony wrote:
I've written it, but debugging is harder than coding.  I'll see if I can post something in the next week.


OK, thanks. Wasn't rushing you, just wondered what was going on :)

Title: Re: Create Object Interface suggestion
Post by EDG on 07/11/13 at 08:15:56

Any further update?

Title: Re: Create Object Interface suggestion
Post by EDG on 07/21/13 at 23:53:22

Anyone? Bueller? Bueller?

Title: Re: Create Object Interface suggestion
Post by Tony on 07/22/13 at 17:49:28

I worked on it today.  Still debugging.  Sorry for the slow-go.

Title: Re: Create Object Interface suggestion
Post by Tony on 07/25/13 at 15:47:13

http://orbitsimulator.com/gravity/beta/csv.csv
http://orbitsimulator.com/gravity/beta/GravitySimulatorAlpha2013July24_3.0.exe

Here is the latest beta with Mal's spreadsheet suggestion.  There's a very good chance you'll find bugs in this, but it works with the attached csv.  Try it out and report any bugs to me.

Instructions for importing objects from spreadsheet.

1. Pause simulation
2. Delete all existing objects using Objects > Delete Objects menu. (see note below)
3. Open "Create Objects" dialog box.
4. Press Import button.
5. Navigate to your csv file.

note: If you are importing objects onto an existing system, you do not need to delete the existing objects, but every object in your spreadsheet needs to have a ref obj.  In the attached csv file, Ixtab has no reference object, so this spreadsheet needs to be imported into a system with no existing members.

CSV file:
Follow the format of the attached csv file exactly.
Format all your spreadsheet cells as text, and save it as a csv file.
In Ref Obj, if you add 'b' to the reference object name, it is the same as choosing the barycenter option on the Create Objects interface. You must put single quotes around the b so gravity simulator doesn't consider the b to be part of the name.
Mass: Add S for sun, E for Earth, J for Jupiter, kg for kilograms.  If you put nothing, default is Earth mass.
Color: At the moment, the only options are red, black, green, yellow, blue, magenta, cyan, white.  If you want more colors, tell me the hexidecimal color code and name for each additional color.
SMA: Add  m, km, AU, LY for units

Distribution:
Use a dash for a range.  For example if you create 3 objects (first column) and put 1-3 AU, you will get an object at 1, 2, and 3 AU
Use ~ for +/- percent.
Use @ for standard deviation

The attached csv file will create a system centered around Ixtab.  
Akabna has definite values for all its parameters.  
Balamna will have an inclination of 2 degrees +/- 100 % (i.e. a random value between 0 and 4 degrees)
Balamna's LAN, Per, and MA will be 180 +/- 100% (i.e. a random value between 0 and 360 degrees)
The asteroids' eccentricity will be chosen by a random gaussian distribution centered on 0.1 with a standard deviation of 0.01.  Be careful. This can generate negative numbers which might crash the simulation.
The Kuipers will have a size of 10 km +/- 50% (i.e. a random number between 5 and 15 km)
The Kuipers eccentricities will have a linear distribution from 0 to 0.1 (i.e. 0, 0.05, 0.1)

Title: Re: Create Object Interface suggestion
Post by Tony on 07/25/13 at 16:36:40

I don't know why the "Last Post" isn't updating anymore.

Title: Re: Create Object Interface suggestion
Post by Tony on 07/26/13 at 22:00:20

testing

Title: Re: Create Object Interface suggestion
Post by EDG on 07/26/13 at 22:01:40

Sweet! Thanks for doing this, I'll try to give it a go in the weekend!

Title: Re: Create Object Interface suggestion
Post by Tony on 07/28/13 at 11:08:05

testing again.

Gravity Simulator » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.