text
stringlengths
1
330k
Then you can predict the history of the star from a big blob of mostly Hydrogen onward. If your model is accurate enough you can predict how much of various nuclei get produced, and when, and possibly even where these nuclei wind up. For example, in a super nova a large amount of material is blasted away from the s...
And that gives us some hints as to how to test these models. By looking at super nova fragments, and the other ejected materials, we can get an idea of the relative fractions of various nuclei in actual stars. Or their remnants and ejected matter at any rate.
And that is the interesting thing. By studying the nuclear isotope ratios on Earth, we can get some ideas as to stellar evolution.
4. Jun 15, 2015 #3
Thanks for replying.
I don't really want to create a model that accurate, you see, I'm doing this because I'm currently creating a game like Elite: Dangerous or No Man's Sky, and because of that I need to make the algorithms as simple as possible in a way that it delivers the best experience, in a way I don't really need to simulate ev...
Right now a star is formed by picking a position in space and mass randomly, not by getting hydrogen atoms together, once I know the mass I can calculate the star radius using the mass-radius relation:
R = M0.738
After that I calculate the Luminosity, which is needed to calculate the temperature, with that I determine the color of the star:
T = L☉ ∜(LR⁻²)
(The color of the star is calculated using a little more comples algorithm which outputs color in RGB form)
Now I can effectively draw the star knowing it's radius and color. After that, the time that the star spends in the main-sequence is calculated using this fomula:
lifetime = M/L * 1010
The reason I want to know what elements are created by the star is because gradually the star, once it ends the main sequence, will release part of it's core elements to space due to bubbles that mix it's outer layer with the elements on it's core, this combined with the helium flashes will populate the surrounding...
All that I need is a simple, very basic and might not even be scientifically accurate,yet it needs to create the illusion of real time star simulation.
Maybe a table that categorises star masses and core composition is available somewhere.
5. Jun 15, 2015 #4
Stars with sufficient mass can fuse atoms as far as producing Iron and Nickel and energy is released as a result of the fusion.
More massive stars end their lives as supernova and that is the only known source of heavier elements. Fusion of heavy elements is a process which absorbs energy instead of releasing it, (which hastens the stars core collapse prior to the explosion.)
The majority of stars are only sufficiently massive to fuse elements as far as the lighter elements like oxygen and carbon before ceasing fusion and becoming a white dwarf.
The rare cases of extremely massive stars don't emit much of anything before they collapse to become either a neutron star or black hole.
Last edited: Jun 15, 2015
6. Jun 15, 2015 #5
I've just read about that too, a giant (or bigger) only produces heavier elements when they blow up to supernovas because that's when the r-process occurres, this process gives energy to the star which will react with the iron core and in the instance of the explosion, the core will have sufficient energy to start ...
Found a nice table that catalogues everything until silicon fusion.
Now that I know, all that's left is to know when the star produces each element given the mass of the star and the time passed since "birth".
7. Jun 15, 2015 #6
User Avatar
Staff: Mentor
You are aware that stars take millions to billions of years to go through their main sequences, right? What is your time scale for this game? If I play for an hour, will 15 million years pass?
8. Jun 15, 2015 #7
More or less like that, a sun like star would probably go through it's main sequence in about an year or half a year, so 10 billion years would equal 365 days or half more, a star with 60 times the mass of the sun would go through it's life in a little more than 10 days. That's 3 million years = 10 days, 1 million ...
Now I need to know the composition of the core given it's mass and time that has passed since the star was created. Basicly I would feed the mass of a star and it's age into a function and that function would output the star's core, this would influence the composition of the surrounding space and the surrounding p...
9. Jun 15, 2015 #8
User Avatar
Staff: Mentor
The planet's atmosphere should be composed solely of elements that existed at the time the star formed, minus any material lost over time (like how the Earth lost all of its helium billions of years ago). The only time the core composition is going to have an effect is at the very end of the star's life, and even t...
10. Jun 15, 2015 #9
Planets will not be effected then, but when a star goes supernova it does release a whole bunch of elements into space in a form of a nebula, this will be available for harvest if the player feels like it. The outer layer of the star will be hydrogen mixed with all the core's elements due to the bubbles that are fo...
Last edited: Jun 15, 2015
11. Jun 16, 2015 #10
User Avatar
Science Advisor
Gold Member
Iron is the heaviest element a star can create. Elements heavier [with more protons] than iron can only be created by supernova, to the best of our knowledge.
12. Jun 16, 2015 #11
User Avatar
Science Advisor
Education Advisor
The s-process is thought to occur in massive AGB stars. http://iopscience.iop.org/0954-3899/35/1/014007
ETA: In fact, it's thought to mostly occur in AGB stars, not supernovae.
Last edited: Jun 16, 2015
13. Jun 16, 2015 #12
r-process, s-process.. It all depends on the mass of the star, the s-process occures in stars from 0.6-10 solar masses and the r-process occurres in supernove explosion in stars that have mass ~>= 8 solar masses.
So a star that has ~>= 8 solar masses will be able to fuse iron into uranium once the star "blows up" and then the surrounding space will contain little bits of uranium, and the s-process will only work in the inert carbon core and will only produce elements up to bismuth, any higher then that will produce unstable...
All stars begin with 70-75% hydrogen and 25-30% helium (with other small percentages of heavier elements) and then they go through the main sequence which will consist of the fusion of four hydrogen atoms (~1*4 atomic weight) to create one helium atom (~4 atomic weight), this will happen until the core of the star ...
After that, it all depends on the mass of the star, here's the table of elements that a star can fuse ( see the last tables ).
As the star's core gets hotter it grows bigger, until it doesn't have enought mass to generate gravity to compress itself to electron degeberacy or it reaches a dense iron core, it's impossible to fuse iron while the star is "alive" because the only way fuse iron is to use energy and all the other elements before i...
Once a star reached either of these points it will "blow up" as a planetary nebula, supernova or the infamous balck hole, depending on it's mass:
Stars with [0.4, 8[ times the mass of the sun will turn into planetary nebula due to the fast gas and energy emissions that originate solar winds that leave the surrounding space rich with the elements that the star has fused, this will happen repeatidly originating nebulas like the cat's eye nebula, and a white dw...
Stars with [8, 20[ times the mass of the sun will collapse on themselfs because they can no longer produce energy to balance the gravity and so they can no longer achieve hydrostatic equilibrium; when the star was healthy, it pushed it's outer layer outward which balanced with the gravity that pushed all mass inwar...
What's left is just a nebula composed of all the elements that the star was made of, from hydrogen to uranium, iron is usually more present in this nebula due to the dense iron core that all stars which are this massive have. Iron marks the end of all stars, this has already been explained but uranium is created fr...
Sometime there might be an absence of hydrogen and helium in the nebula, this is because the star was so hot that it had completly burned all the hydrogen and helium it had, this happens in blue stars.
Stars with [20,+inf(or 150)[ times the mass of the sun will live the shortest, because their core is so hot that they burn through hydrogen in just a few thousands of years, once they stop producing energy, their mass will collapse on itself but since these stars are so massive they never really blow into supernova...
(I got all this from searching on the web, so please correct everything that might not be scientifically correct)
Now, with all that information, I can build a table of elements that a star creates through it's life time, the problem is to know how much of each element the star has in a given point in time.
All that's left is an algorithm that calculates the percentage of each element present in the core of a star knowing that every star stars with 70-75% hydrogen and 25-30% helium, and H + H + H + H = He; He + He + He = C; C + He = O; O + He = Ne; C + C = Mg; O + O = S, and I don't really know how the iron is formed....
Last edited: Jun 16, 2015
14. Jun 16, 2015 #13
User Avatar
Staff: Mentor
The problem is that there are multiple reactions going on in the core of a star during any point in its life. For example, the Sun gets most of its energy through the Proton-Proton chain, which is:
H + H = Deuterium (D)
D + H = 3He
3He + P = 4He
But it also gets a non-trivial amount of energy from the CNO cycle. The CNO cycle starts at higher temperatures than the PP chain, but the reaction rate rises much faster. Stars a bit more massive than the Sun generate most of their energy from this cycle.
Each time the core starts a new burning process (IE helium burning, oxygen burning, silicon burning, etc) there are new sets of side reactions going on in addition to the 'main' one. This is compounded by the fact that most online sources don't go into depth about all of these processes and typically only give the ...
At some point you're probably either going to have to 'fudge' the numbers, or become an astrophysicist. :biggrin:
15. Jun 16, 2015 #14
I'd love to become an astrophysicist but if I became one then I wouldn't be programming a game anymore, I'd be programming a stellar evolution model and that's no fun for the average guy that just wants to play a nice sci-fi game o0)
As for the fuging the numbers part, there are two types of variables in my algorithms: the intermediate variables and the terminal variables, terminal variables are the variables that have visible impact on the game and intermediate variables are the ones that don't and they are subdivided into two subtypes: essent...
H + H = Deuterium (D)
D + H = 3He
3He + P = 4He
Is the same thing as:
H + H + H + H = He
In tearms of visuals there's no need for anything else and since there are less procedures involved then the code is able to run faster.
In conclusion, yes, I'm going to to 'fudge' the numbers together but the problem is to get the right numbers and to come up with the "right" equation.
For exemple, imagine that a star was randomly generated and it had the following propriaties:
Position = {0,0} (Don't mind this variable, terminal)
Mass = 8 (in solar units, intermediate essential)
Radius = 80.738 (in solar units, terminal)
Luminosity = 1887.78317097 (in solar units I think, intermediate essential)
Temperature = 17684.8148276 (in kelvin, intermediate essential)
Color = Blue (simple algorithm that turns kelvin into RGB color code, terminal)
Lifetime = 8/1887.78317097 (in solar units, terminal)
Composition = { hydrogen = 75, helium = 25 } (in percentage, intermediate essential)
Age = 0
As time goes on, the 'Age' variable will go up, once the player comes closer to this star, the game will calculate the core's composition and then it destributes the surrounding space with elements.
To calculate this, all I need to do is to calculate how much hydrogen the star transformes to helium per year, multiply that by 'Age'(=hydBurned, how much hydrogen was used since it was born),