Random SSC generator.
Random SSC generator.
Yup Ive decided to do another one this time in C++...I have a small question though about generating random orbital parameters...Lets say you have a mass relitave to Sol say 2.8...And another star say a red giant with a mass of 20...Now in order to compute random orbital paremeters one would have to compensate for the size of the planet as well as the gravity of the star?
I suppose I need a rather comprehensive formula on computing orbits...How are they generally figured? Like in our solar system, orbits get wider the further out...is this only because the planets are larger?
Heres a dump of random AU based on # of planets and mass of star...
mass 3 planets 10:
Planet: 0.04054651
Planet: 0.36491860
Planet: 0.85147673
Planet: 1.13530230
Planet: 1.94623252
Planet: 2.55443018
Planet: 4.13574410
Planet: 5.06831385
Planet: 6.93345335
Planet: 8.59586029
mass 20 planets 10:
Planet: 0.23025851
Planet: 1.15129255
Planet: 3.68413615
Planet: 5.75646273
Planet: 10.59189143
Planet: 15.42732012
Planet: 20.03249031
Planet: 21.87455838
Planet: 31.31515726
Planet: 45.59118484
These values are based on a planet 1000 k in diameter...This would vary given the planet radius....possibly...
Any suggestions?
I suppose I need a rather comprehensive formula on computing orbits...How are they generally figured? Like in our solar system, orbits get wider the further out...is this only because the planets are larger?
Heres a dump of random AU based on # of planets and mass of star...
mass 3 planets 10:
Planet: 0.04054651
Planet: 0.36491860
Planet: 0.85147673
Planet: 1.13530230
Planet: 1.94623252
Planet: 2.55443018
Planet: 4.13574410
Planet: 5.06831385
Planet: 6.93345335
Planet: 8.59586029
mass 20 planets 10:
Planet: 0.23025851
Planet: 1.15129255
Planet: 3.68413615
Planet: 5.75646273
Planet: 10.59189143
Planet: 15.42732012
Planet: 20.03249031
Planet: 21.87455838
Planet: 31.31515726
Planet: 45.59118484
These values are based on a planet 1000 k in diameter...This would vary given the planet radius....possibly...
Any suggestions?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
Well does anyone know the formula Celestia uses for stellar radius?
I currently use R = (T/5860)^2 * (L)^0.5...Where R is the radius. T is the temp of the star in question and L is the luminosity of the star in question.
I currently use R = (T/5860)^2 * (L)^0.5...Where R is the radius. T is the temp of the star in question and L is the luminosity of the star in question.
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
-
- Posts: 198
- Joined: 28.07.2003
- With us: 21 years 3 months
- Location: Slartibartfast's Shed, London
Rassilon,
As far as I am aware, the fact that the spacing of the planets increases with distance is not related to their size.
Systems created with programs like ACRETE exhibit similar spacing to our solar system ('Bode's 'Law''), but I'm not sure whether thats due to a fiddle factor (ie: a calculation deliberately biased in favour of expected results).
I'm not sure whether anyone has postulated a reasonable spacing principle for orbits.
What I am sure of is that someone who knows better will undoubtedly correct my layman's statements above
As for sizes of stars, I use look-up tables rather than any calculations. This gives reasonable results if one includes a degree of random variability in radii for stellar classes Ia, Ib, II and III (supergiants and giants)
Maybe the illustrious Dr. G of the Evilness can shed some light (pardon the slight pun)
Cormoran
As far as I am aware, the fact that the spacing of the planets increases with distance is not related to their size.
Systems created with programs like ACRETE exhibit similar spacing to our solar system ('Bode's 'Law''), but I'm not sure whether thats due to a fiddle factor (ie: a calculation deliberately biased in favour of expected results).
I'm not sure whether anyone has postulated a reasonable spacing principle for orbits.
What I am sure of is that someone who knows better will undoubtedly correct my layman's statements above
As for sizes of stars, I use look-up tables rather than any calculations. This gives reasonable results if one includes a degree of random variability in radii for stellar classes Ia, Ib, II and III (supergiants and giants)
Maybe the illustrious Dr. G of the Evilness can shed some light (pardon the slight pun)
Cormoran
'...Gold planets, Platinum Planets, Soft rubber planets with lots of earthquakes....' The HitchHikers Guide to the Galaxy, Page 634784, Section 5a. Entry: Magrathea
-
- Developer
- Posts: 1863
- Joined: 21.11.2002
- With us: 21 years 11 months
That's not going to work ... have you missed out a minus sign? It should be:Rassilon wrote:I currently use R = (T/5860)^2 * (L)^0.5...Where R is the radius. T is the temp of the star in question and L is the luminosity of the star in question.
R = (T/5860)^-2 * (L)^0.5
where T is in kelvin and R and L are in solar units. L has to be the bolometric luminosity (the total energy output of the star), rather than the visual luminosity. Celestia uses visual luminosities, and converts to bolometric with a look-up table before performing a calculation similar to the above.
Grant
There is one small problem...I am unable to raise negative numbers to the power of fractions or decimals...C returns garbage...
How do I do this or better yet how did chris calculate this in Celestia?
How do I do this or better yet how did chris calculate this in Celestia?
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
-
- Developer
- Posts: 1863
- Joined: 21.11.2002
- With us: 21 years 11 months
Why would you do that? Neither the temperature nor the luminosity can sensibly be negative. You're raising the temperature component to a negative power, is all.Rassilon wrote:There is one small problem...I am unable to raise negative numbers to the power of fractions or decimals...C returns garbage...
Grant
I think Rass means C cant handle to a negative power.
Here is an equivalent method, I'm a bit rusty on my math so anyone correct me if I'm wrong.
x^-2 = 1/(x^2)
(T/5860)^-2 * (L)^0.5 = 1/((T/5860)^2) * (L)^0.5
Here is an equivalent method, I'm a bit rusty on my math so anyone correct me if I'm wrong.
x^-2 = 1/(x^2)
(T/5860)^-2 * (L)^0.5 = 1/((T/5860)^2) * (L)^0.5
Marc Griffith http://mostlyharmless.sf.net
Cripes, that's a pretty random limitation. Stengthens my resolve to continue ignoring C.marc wrote:I think Rass means C cant handle to a negative power.
That'll do it. Or you can get a more compact expression by just flipping the fraction:marc wrote:(T/5860)^-2 * (L)^0.5 = 1/((T/5860)^2) * (L)^0.5
(T/5860)^-2 * (L)^0.5 = 1/((T/5860)^2) * (L)^0.5 = (5860/T)^2 *(L)^0.5
This is the form Celestia uses in star.cpp. (Probably should have offered this originally, but I was trying to a imagine a single typing error that might have led to Rass's original mistaken rendering. Sorry.)
Grant
Nevermind NOW I see it....
boloLum = (float) exp((solarBMag - bmag) / LN_MAG);
Ive looked over that ccp file 100 times and there it was right under my nose...geez!
Thanks everyone for your help...Im sure Ill be back with more dumb questions
boloLum = (float) exp((solarBMag - bmag) / LN_MAG);
Ive looked over that ccp file 100 times and there it was right under my nose...geez!
Thanks everyone for your help...Im sure Ill be back with more dumb questions
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
-
- Developer
- Posts: 1863
- Joined: 21.11.2002
- With us: 21 years 11 months
Now that Ive gotten around most of the heavy maths...Ive come up with a rather nice random planet naming convention that will be rather nice for the real sci-fi enthuiast...
Heres a dump from the random name generator of 100 planets...
Planet: Iolovlejome
Planet: Apej
Planet: Eqisoker
Planet: Qolropr
Planet: Uuoiihroiinp
Planet: Krehras
Planet: Uiaeinooe
Planet: Nihlifliio
Planet: Opep
Planet: Upejipoiolu
Planet: Iiigeloiaoen
Planet: Oponpooopr
Planet: Jrelrue
Planet: Hruseiujo
Planet: Hruioooyukru
Planet: Iekrijr
Planet: Nohiln
Planet: Lohiquijuo
Planet: Lnouiplitz
Planet: Elno
Planet: Onip
Planet: Unrerohiku
Planet: Mjeoojruia
Planet: Oei
Planet: Eqileloxeeue
Planet: Flolile
Planet: Jitigofonop
Planet: Nrohl
Planet: Nrojimjirh
Planet: Ulne
Planet: Obafolu
Planet: Jhegeyeswisi
Planet: Eqivep
Planet: Nijrofro
Planet: Eknuquaoumokn
Planet: Eeiknyjhirh
Planet: Lnol
Planet: Hikrigisuo
Planet: Hloiijapromj
Planet: Iselrekroeusw
Planet: Yje
Planet: Hro
Planet: Ifomnioei
Planet: Ouhi
Planet: Haouswiro
Planet: Upopome
Planet: Sonpu
Planet: Ylaiiuenomo
Planet: Inigro
Planet: Oryrhobotokr
Planet: Ehlamjijo
Planet: Iiiqzerh
Planet: Ijomj
Planet: Eoupi
Planet: Efr
Planet: Oofeie
Planet: Ilnomj
Planet: Ruiefl
Planet: Erhioimerh
Planet: Qeiooukujr
Planet: Olnomemeqoli
Planet: Mokiqurihl
Planet: Froxipliqzo
Planet: Uhojolequoi
Planet: Munr
Planet: Iknoprerho
Planet: Krofihlij
Planet: Ioueukotx
Planet: Oeinr
Planet: Swosoqu
Planet: Mjoswoqipu
Planet: Aqi
Planet: Oroseouiiditz
Planet: Kofinolro
Planet: Ioiji
Planet: Kridiq
Planet: Iigomurh
Planet: Ronrorhywhi
Planet: Ogosuhrinat
Planet: Iiom
Planet: Giniquyp
Planet: Jrifamni
Planet: Eoomopoj
Planet: Pogranpo
Planet: Fukrimjeoeq
Planet: Oeisoieg
Planet: Olomjiw
Planet: Apreuitzojhu
Planet: Ukodolohr
Planet: God
Planet: Anetoqi
Planet: Ioielriienr
Planet: Jimomjirh
Planet: Ojej
Planet: Okofreplo
Planet: Dhisuoim
Planet: Uniouru
Planet: Iilrogoeiwh
Planet: Uoi
Not too bad but could always use improvement...
I will of course allow one to choose to generate random names or a set naming convention such as Alpha Centauri I II and II or the like depending on the name of the star...So you will have the choice of random names or roman numerals
Heres a dump from the random name generator of 100 planets...
Planet: Iolovlejome
Planet: Apej
Planet: Eqisoker
Planet: Qolropr
Planet: Uuoiihroiinp
Planet: Krehras
Planet: Uiaeinooe
Planet: Nihlifliio
Planet: Opep
Planet: Upejipoiolu
Planet: Iiigeloiaoen
Planet: Oponpooopr
Planet: Jrelrue
Planet: Hruseiujo
Planet: Hruioooyukru
Planet: Iekrijr
Planet: Nohiln
Planet: Lohiquijuo
Planet: Lnouiplitz
Planet: Elno
Planet: Onip
Planet: Unrerohiku
Planet: Mjeoojruia
Planet: Oei
Planet: Eqileloxeeue
Planet: Flolile
Planet: Jitigofonop
Planet: Nrohl
Planet: Nrojimjirh
Planet: Ulne
Planet: Obafolu
Planet: Jhegeyeswisi
Planet: Eqivep
Planet: Nijrofro
Planet: Eknuquaoumokn
Planet: Eeiknyjhirh
Planet: Lnol
Planet: Hikrigisuo
Planet: Hloiijapromj
Planet: Iselrekroeusw
Planet: Yje
Planet: Hro
Planet: Ifomnioei
Planet: Ouhi
Planet: Haouswiro
Planet: Upopome
Planet: Sonpu
Planet: Ylaiiuenomo
Planet: Inigro
Planet: Oryrhobotokr
Planet: Ehlamjijo
Planet: Iiiqzerh
Planet: Ijomj
Planet: Eoupi
Planet: Efr
Planet: Oofeie
Planet: Ilnomj
Planet: Ruiefl
Planet: Erhioimerh
Planet: Qeiooukujr
Planet: Olnomemeqoli
Planet: Mokiqurihl
Planet: Froxipliqzo
Planet: Uhojolequoi
Planet: Munr
Planet: Iknoprerho
Planet: Krofihlij
Planet: Ioueukotx
Planet: Oeinr
Planet: Swosoqu
Planet: Mjoswoqipu
Planet: Aqi
Planet: Oroseouiiditz
Planet: Kofinolro
Planet: Ioiji
Planet: Kridiq
Planet: Iigomurh
Planet: Ronrorhywhi
Planet: Ogosuhrinat
Planet: Iiom
Planet: Giniquyp
Planet: Jrifamni
Planet: Eoomopoj
Planet: Pogranpo
Planet: Fukrimjeoeq
Planet: Oeisoieg
Planet: Olomjiw
Planet: Apreuitzojhu
Planet: Ukodolohr
Planet: God
Planet: Anetoqi
Planet: Ioielriienr
Planet: Jimomjirh
Planet: Ojej
Planet: Okofreplo
Planet: Dhisuoim
Planet: Uniouru
Planet: Iilrogoeiwh
Planet: Uoi
Not too bad but could always use improvement...
I will of course allow one to choose to generate random names or a set naming convention such as Alpha Centauri I II and II or the like depending on the name of the star...So you will have the choice of random names or roman numerals
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
Hi Rassilon
IMHO there is something strange in the algorithm that generates random names
For italian people (like me ) there are too many consecutive wovels inside the names (an example is "Uuoiihroiinp": it seems like a finnish or danish name) and too many strange consonants: remember that in our alphabet we have no "j", "k", "w", "x" and "y". We only use them for words of foreign languages.
I'm not an expert, but I suppose that every language has a set of rules based on the frequency of vowels and consonants in the words: I would be very interested in learning more on this subject!
BTW, as an example, for us the Moon is "Luna", the sun is "sole", jupiter is "Giove" : as you can see in these few examples there is a quite complete balance between the number or vowels and consonants: I must confess that I am perplexed about the new names assigned to recent satellites (expecially Jupiter and Saturn). Those names are quite unpronunciable here in Italy!
Even the newest object in the solar system ("Sedna") for us has a very strange name: no italian word in fact contains the letters "dn" inside it.
Obviously we do accept these names!!
Some times ago I tried to build a routine to generate random names, but if I remember well, I was not satisfied at all and so I abandoned the project!
Thanks for your attention!
Pierluigi
IMHO there is something strange in the algorithm that generates random names
For italian people (like me ) there are too many consecutive wovels inside the names (an example is "Uuoiihroiinp": it seems like a finnish or danish name) and too many strange consonants: remember that in our alphabet we have no "j", "k", "w", "x" and "y". We only use them for words of foreign languages.
I'm not an expert, but I suppose that every language has a set of rules based on the frequency of vowels and consonants in the words: I would be very interested in learning more on this subject!
BTW, as an example, for us the Moon is "Luna", the sun is "sole", jupiter is "Giove" : as you can see in these few examples there is a quite complete balance between the number or vowels and consonants: I must confess that I am perplexed about the new names assigned to recent satellites (expecially Jupiter and Saturn). Those names are quite unpronunciable here in Italy!
Even the newest object in the solar system ("Sedna") for us has a very strange name: no italian word in fact contains the letters "dn" inside it.
Obviously we do accept these names!!
Some times ago I tried to build a routine to generate random names, but if I remember well, I was not satisfied at all and so I abandoned the project!
Thanks for your attention!
Pierluigi
-
- Posts: 198
- Joined: 28.07.2003
- With us: 21 years 3 months
- Location: Slartibartfast's Shed, London
I'm not sure that we would be able to even pronounce (or in some cases perceive) the names of worlds discovered or inhabited by other civilisations. Its a certainty that we will see some very weird vowel and consonant combinations even in those languages we can pronounce...
Given these facts, Rass's name generator method is as valid as any other method.
Personally I think human explorers would name planets as they saw fit no matter what they were called when they got there. Of course, its also very likely that we would know of the existence of these worlds before we got there, and the discoverer would have named them. Personally I think assigning numbers to any object in lieu of a name lacks a certain poetry.
Would Roy Batty's speech in Bladerunner have sounded so good if he'd said.. 'I've seen C-beams... glitter in the dark.... near the DM-45 2321 gate'?
In conclusion, I think naming is a matter of personal taste, but Rass's name generator allows rapid population of system names, which you'll always be able to change afterwards anyway...
Just my 1.23 pence...
Cheers,
Cormoran
Given these facts, Rass's name generator method is as valid as any other method.
Personally I think human explorers would name planets as they saw fit no matter what they were called when they got there. Of course, its also very likely that we would know of the existence of these worlds before we got there, and the discoverer would have named them. Personally I think assigning numbers to any object in lieu of a name lacks a certain poetry.
Would Roy Batty's speech in Bladerunner have sounded so good if he'd said.. 'I've seen C-beams... glitter in the dark.... near the DM-45 2321 gate'?
In conclusion, I think naming is a matter of personal taste, but Rass's name generator allows rapid population of system names, which you'll always be able to change afterwards anyway...
Just my 1.23 pence...
Cheers,
Cormoran
'...Gold planets, Platinum Planets, Soft rubber planets with lots of earthquakes....' The HitchHikers Guide to the Galaxy, Page 634784, Section 5a. Entry: Magrathea
-
- Developer
- Posts: 1863
- Joined: 21.11.2002
- With us: 21 years 11 months
The new Saturnians are Inuit and Norse names (plus a few old Celtic) and Sedna is an Inuit goddess - so it's often difficult for speakers of Latin-descended languages to know how to pronounce them. I think we're going to see more of this problem as the pool of classical Greek and Roman mythology is exhausted. Even the Greek stuff is a problem, since the IAU nomenclature commitee have deliberately dropped the vowel accents that are a guide to pronounciation - presumably to simplify the spelling a little, but I think it's a huge mistake.piellepi wrote:I must confess that I am perplexed about the new names assigned to recent satellites (expecially Jupiter and Saturn). Those names are quite unpronunciable here in Italy!
Even the newest object in the solar system ("Sedna") for us has a very strange name: no italian word in fact contains the letters "dn" inside it.
A while ago for my own use I put together a pronounciation guide for the various solar system moons, including the recently-named bodies. I could post it on the forum, if anyone's interested.
Grant
The naming convention isnt any specific language...just based around a mix of anglo-saxon language rules which should fall in the area of english, french, german and some italian and spanish...Its all based around what we as earth dwellers are familiar with in a language...If I really want to be alien in a sense I may refer to wingdings and the upper ascii table for alien hieroglyphics...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
There's a rather nifty generator at http://www.ruf.rice.edu/~pound/ which produces fairly decent results based on an input vocabulary if you're interested.
chaos syndrome wrote:There's a rather nifty generator at http://www.ruf.rice.edu/~pound/ which produces fairly decent results based on an input vocabulary if you're interested.
I found this to be quite helpful...Thanks...In those links there was a javascript based name generator for planets that I will port over to C++...as Im not happy with mine...
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!