Current project: Modified Stargen (a solar system generator)

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Current project: Modified Stargen (a solar system generator)

Post #1by omega13a » 07.11.2012, 21:56

Basically what this is is a modified version of Stargen that was discussed in this topic: viewtopic.php?f=8&t=16807

The most important changes have to do with radii and densities of the planets/moons generated.

All the solid worlds are now made out of some combination of iron/rock/ice.

All the jovians and brown dwarfs now have radii that are more or less based on data I found in this research paper: http://www.ucolick.org/~jfortney/papers/Fortney07.pdf

I have hopefully solved the problem of gas dwarfs and sub-jovians having ridiculusly low densities (like 1/3 that of water) when they are located in the outer reaches of the solar system.

As I do not have the means to build binaries for Windows (I use Linux), I have only provided the source code so if anyone can build the Windows binaries for me, I will greatly apriciate it.

You can download the source code at http://fedtrek.com/staff/omega13a/stargen_2013.zip

This is still a work in progress and any feed back and improvents are welcomed.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: Current project: Modified Stargen (a solar system genera

Post #2by Reiko » 12.11.2012, 06:04

Has anyone built this for windows yet? I have no idea how to do it. :?

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #3by omega13a » 12.11.2012, 08:15

I was able sneak onto my dad's computer after he went to bed and installed cygwin and built the windows binaries. My dad is really sensitive about me using his computer. He's afraid I'll skrew it up. Truth is, he has skrewed up four computers, wrecked three calculators (all of which he borrowed from me), wrecked one networking hub, busted two sissors, infected one of his company's local network with a virus by opening a supicious email, and broke the sliding door to our patio twice simply by opening it. In short he's far more dangerous than I am. Anyways, I tested the binaries and they appear to work on my dad's computer. Don't know about anyone else's so please let me know if they don't work.

You can download the binaries at here: http://fedtrek.com/staff/omega13a/starg ... naries.zip
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: Current project: Modified Stargen (a solar system genera

Post #4by Reiko » 12.11.2012, 11:35

I cannot get it to work. It first says I need cygwin1.dll and once I have that it gives me another error code...
The procedure entry point_ctype_ptr__could not be located in the dynamic link library cygwin1.dll.

:?:

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Re: Current project: Modified Stargen (a solar system genera

Post #5by Chuft-Captain » 12.11.2012, 16:51

omega13a wrote:You can download the binaries at here: http://fedtrek.com/staff/omega13a/starg ... naries.zip
After what you've just told us about your father, I'm not going to touch anything that's come from his computer! :mrgreen: :|
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #6by omega13a » 12.11.2012, 18:50

Reiko wrote:I cannot get it to work. It first says I need cygwin1.dll and once I have that it gives me another error code...
The procedure entry point_ctype_ptr__could not be located in the dynamic link library cygwin1.dll.

:?:

I added the dlls that was in selden's mcl2stc zip file. Try it again.

Chuft-Captain wrote:After what you've just told us about your father, I'm not going to touch anything that's come from his computer! :mrgreen: :|

Don't worry, if there was a virus in the zip file, I seriously doubt the zip file would still be on my webserver after last night's virus scan.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Re: Current project: Modified Stargen (a solar system genera

Post #7by selden » 12.11.2012, 22:12

FYI: My understanding is that Cygwin's license requires that if you include their DLLs, your product must be released under the GNU license, which, among other things, requires you to provide full source code. See http://cygwin.com/licensing.html
Selden

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: Current project: Modified Stargen (a solar system genera

Post #8by Reiko » 13.11.2012, 22:04

YAY it works now, thank you. :D
Unfortunately I don't know how to use it since it's command line. :?

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #9by omega13a » 13.11.2012, 22:12

The information is in the help folder that comes in the zip package.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Re: Current project: Modified Stargen (a solar system genera

Post #10by John Van Vliet » 14.11.2012, 13:04

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 04:04, edited 1 time in total.

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #11by omega13a » 20.11.2012, 16:01

I'm slowly getting a new version ready. This next version has three new types of planets: iron, carbon, and oil (basically the same as carbon but has liquids on its surface). I need to run a few more tests due to a bug that causes rocky planets to be way more dense than iron planets... :?

MinGW? I just looked that up and apperently I can use it build windows binaries under linux. I'll try that. Hopefully it will work.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Re: Current project: Modified Stargen (a solar system genera

Post #12by Tegmine » 20.12.2012, 12:23

Will I be able to set AU limits in the modified version? I would like make some systems for binary systems.

Thanks

-M-

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #13by omega13a » 20.12.2012, 20:16

hmmm... It might be possible for me to add that though I'm going to need to make a list of letters and numbers that aren't used as arguments since most of them are currently used... I'm also thinking of added support for spectral types since the a star's spectral type appears to affect the albedo of gas giants though that would be easier if this was in C++ because I find working with strings a lot easier in C++ than in C.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #14by PlutonianEmpire » 03.07.2013, 06:19

Tegmine wrote:Will I be able to set AU limits in the modified version? I would like make some systems for binary systems.

Thanks

-M-
Hey, I've been fiddling around with the 2013 version from the OP, and while I'm sure you and others may have noticed, I think it might be interesting to note that it already does a good job for circumbinary systems with tight-knit binaries such as the latter Kepler circumbinaries, when entering the system parameters for the custom mass and luminosity. The "p1" planets are almost always given a Mercury-like orbit, with a huge gap between it and the central star or barycentre.

Case in point, I ran ten iterations for DEL Tri, and with the custom .stc file I've had for that system, the closest planet has a SMA of 0.3728 au, and the AB separation is just over 0.11146 AU, meaning p1 is over 3.34 times the AB separation from the center of the system. And as Kepler data seems to imply, a "rule of three" seems to be in play in terms of orbital stability versus p_a:AB_a ratio, and ejecting (or consuming) planets with SMA less than 3x the AB separation.

Anyways, question: I've noticed that the program can generate planets en masse around a number of fictitious star sets, such as Cham's Ring Universe. Were the source files (.c and .h files for use in stargen) generated with an utility; or were they written manually (the stars entered one by one, line by line, by hand)?
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #15by omega13a » 03.07.2013, 19:22

I made them using a utility I have laying around somewhere... As for when the next version is going to be released, I'm trying to incorporate some calculations from another research paper I found.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #16by PlutonianEmpire » 18.10.2013, 02:22

Question: I've noticed that when I include gases when generating systems, they are measured in percentage and "ipp". Is the latter a typo? If not, what does it mean and/or stand for, and is it similar to PPM, parts per million?

And how do I calculate both PPM and IPP?
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #17by omega13a » 18.10.2013, 04:19

IPP is short for inspired partial pressure. I don't know much about what it is other than it is used to determine the breathablity of the atmospheres.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #18by omega13a » 12.12.2013, 09:13

I got a new version working at least for me. Its takes into account the spectral type and temperature of stars when generating systems so the habitable zones and albedo of the gas giants will be more in line with current theories. I also managed to more or less translate selden's moon generator code from fortran into a language I'm more familiar with which allowed me to splice it into stargen so you don't have to run it separately.

I don't have any binaries for windows so you will have to compile the code for one. Anyways, here's the link to the new version:

http://www.fedtrek.com/staff/omega13a/c ... n_2014.zip
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
Topic author
omega13a M
Posts: 120
Joined: 15.10.2011
Age: 40
With us: 13 years 1 month
Location: California
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #19by omega13a » 07.01.2014, 07:43

More changes made to the program. It now takes into account the albedo of vegetation on habitable worlds. I also made the filter for habitable worlds a little more stricter by excluding any planets around type O, B, and A type stars since they don't live long enough in the real world for life to form on any of their planets based on our current understanding of things. You can still download it from http://www.fedtrek.com/staff/omega13a/c ... n_2014.zip .

As usual, please tell me of any bugs or problems you have with it and I'll see what I can do.
A fish without a bicycle cannot contemplate his navel

My Celestia Add-ons
The Omega Galaxy

Avatar
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Current project: Modified Stargen (a solar system genera

Post #20by PlutonianEmpire » 11.01.2014, 08:13

I dunno if it was changed in the new 2014 version, but my biggest issue was with the -J option, which forced jovians to be in the habitable zone. My issue with that was, the "jovians" weren't jovians at all -- they ALL were ONLY upper-level super-earths and mini-neptunes. I NEVER got anything that was truly jovian -- aka, Saturn- or Jupiter-mass or larger. The only way I could figure out to get true jovians in the habitable region was to not use any of the habitable-zone-related options, which meant simply not using -E, -H, and -2 and -3, and just crank out thousands of systems at a time into ssc files and hope to find one by pure chance.

And my other issue was, lack of support for circumbinaries, for Earthlikes and Habitables/Breathables. Best way I can think of off the top of my head, since Binaries tend to have inflated masses over the luminosities, when treating both components as a single star, would be an option that allows an exception rule for the Earthlikes and Breathables filters, so the filter doesn't mistake a 1.8 mass "sun" with a luminosity of 1.2 as being too short-lived for habitables. (Entering 1.8 Msun onto the "main sequence star" page at archive.org gives me a luminosity of over 8.6).
Terraformed Pluto: Now with New Horizons maps! :D


Return to “Add-on development”