What materials can a star produce before dying?

In summary: Helium.In summary, a star can produce Helium up until the point where it reaches the end of the main sequence. It is possible to model the density, temperature, and reactions of a star to calculate the energy released and update the other data. The fate of a star depends on its mass and core composition. The more massive a star is, the more elements it can produce.
  • #1
Ranguna
13
0
Is it possible to calculate how much Helium a star can produce when it reaches the end of the main-sequence, right before it starts burning Helium ( given if it has enough mass to do so) ?

And if it is possible then is it also possible to calculate how many materials a star can produce given it's mass ?

I'm kind of starting my journey into physics so forgive me if I write anything that might not be scientifically correct.
Thanks for reading.
 
Astronomy news on Phys.org
  • #2
Welcome to the forum.

It is possible to model these things. Then, depending on the fate of the star, there are some interesting data points to test those models.

Basically, it requires knowing what interactions are possible, and the cross sections for each possible interaction. If these are known very accurately then what you need to do is, in outline with lots of steps left out, the following.

First, you model the density and temperature of the star. You need to take into account, at a minimum, the gravity of the star, and the reaction rates at each temperature and density. That let's you estimate the energy released, which let's you update the other stuff. You then have to evolve the thing over time to model how much of what kinds of nuclei are produced.

This is by no means an easy task. At this naïve level I have not talked about modeling things like rotation of the star, magnetic fields, and things like motion of star material. Stars are not solid objects and their material can move around in interesting fashion.

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 star. Some other forms of star will eject material into space in much less violent fashion.

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.

http://www.poetryloverspage.com/poets/blake/to_see_world.html
 
  • #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 everything atom by atom, instead I just need to make it look real.

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 space with elements which the player can harvest, say if a star can fuse iron then the player will be able to harves iron form around the star, or even uranium or helium (or even denser elements).
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.
 
  • #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:
  • #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 iron nuclear fusion and will produce uranium.

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".
 
  • #6
Ranguna said:
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.

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?
 
  • #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 years = 3 days, 333,333 years = 1 day, 13888 years = 1 hour ( more or less )
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 planets too, if a planet with an atmospher was near the star then that planet's atmoshphere would be influenced by the star's core's composition.
 
  • #8
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 then not all stars will eject material from their cores into space.
 
  • #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 formed when the stars' shape gets all convective, once the layer is released then the surrounding space will be populated with materials from hydrogen to iron and maybe even a little bit or uranium.
 
Last edited:
  • #10
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.
 
  • #11
Chronos said:
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.

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:
  • #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 nuclei which have a very fast decay time. (source, the last two paragraphs of the page)

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 reaches a point where it is mainly composed of hydrogen burning in a thin shell around a helium core; once this happens, the outer layer of a star will star to grow outward due to the high temperature of the core caused by the electron degeneracy, this will cause the core to ignite helium which will cause the star to flash, marking the end of the main sequence. This will happen to stars with a minimum weigh of 0.4 solar masses, if the star is not massive enough then it will never reach the degenerate point to fuse helium and we don't really know what happens after that because the universe isn't old enought to have stars this small that have evolved out of their main sequence, for the sake of the game let's just assume that the helium core will get so big that the star will not be able to fuse hydrogen anymore and it will turn into a black dwarf.. probably..
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 iron created energy instead.
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 dwarf will also be left behind, this white dwarf was the core the star, so it's probably made out of a shell burning hydrogen, a shell burning helium and a core with carbon and/or oxygen, this white dwarf will follow the steps described before.

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 inward, but once it stops its production of energy, gravity gets the upper hand and pushes everything inward, this causes the layer to hit the dense core with such a speed that it will bounce back and it'll completely destroy the core in the process, just like when you throw a rock agains a wall, the rock bounces back and if you throw it with enough speed, the wall breaks ( or the rock does, either way you get the point )
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 from fusing iron, this is possible because once the r-process occurres in the moment of the supernova, there's enough energy to fuse the iron and so we get uranium ash.
Sometime there might be an absence of hydrogen and helium in the nebula, this is because the star was so hot that it had completely 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 supernovas but instead thire mass collapses into this point with infinite density that we call a black hole.

(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. With all that information I think it's possible to create an equation that outputs how much of each element is present in the core of a star in a given time.
 
Last edited:
  • #13
Ranguna said:
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. With all that information I think it's possible to create an equation that outputs how much of each element is present in the core of a star in a given time.

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 initial reactants and final products, skipping many of the intermediate stages. Another example is the Silicon burning process, which has at least 8 reaction steps.

At some point you're probably either going to have to 'fudge' the numbers, or become an astrophysicist. :biggrin:
 
  • #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: essential and nonessential, the essential subtype is the kind of variable that is needed to calculate a terminal variable and the nonessential subtypes isn't needed or addes little accuracy to calculate a terminal value, these can be excluded from the equations as a means to optimize the code and to make user experience more enjoyable by allowing higher FPS to be achieved. The intermediate reactions of the fusion of atoms are intermediate nonessential variables because every time a reaction occurres, the same intermediate reaction happens, so calculating what you've said:
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),
Do (8*0.75 - hyd)/8 (how much hydrogen is still present in the core in percentages)
And then 1 - (8*0.75 - hyd)/8 ( how much helium is present in the core in precentages)
The space around the star will be "filled" with energy and some kg? of helium and hydrogen (due to gas emission)?.
As you can see, I didn't need to calculate intermediate reaction to come up with this conclusion, it might not be accurate but it's good enough for a game :wink:
The question now is how to calculate how much hydrogen a star fuses to helium per year. Maybe this can be solved by using E = mc2 ? We know the stars luminosity, that's E.. now what ?
 
Last edited:
  • #15
Here's a quick, roughly approximate way to do it:

Find on the wiki the total energy production in a single instance of fusion (the 4H->He mass defect), should be somewhere in the fusion or the p-p chain article.
Calculate how many hydrogen atoms get fused into helium atoms per second to maintain the luminosity. You'll have to convert between units.
And voilà. You have a function that converts hydrogen into helium per time unit.

It's not going to win you any awards for accurate modelling, but maybe it'll do for your particular needs.

Let us know should you get stuck.
 
  • #16
Ranguna said:
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.

Oh, my mistake. That's not what I meant by a 'side reaction'. Those are the actual steps in the P-P chain. For what you're wanting I don't think they even need to be calculated now that I think about it.

Ranguna said:
The space around the star will be "filled" with energy and some kg? of helium and hydrogen (due to gas emission)?.

It depends on the star and the cycle of its life its in. Space certainly isn't filled with energy unless your just talking about the light output. Most stars have some sort of stellar wind, and high mass/post main sequence stars can eject immense amounts of material: https://en.wikipedia.org/wiki/Stellar_wind

Post-main-sequencestars nearing the ends of their lives often eject large quantities of mass in massive (
89598b72950903093a9bba3f6c6bd790.png
solar masses per year), slow (v = 10 km/s) winds. These include red giants and supergiants, and asymptotic giant branch stars. These winds are understood to be driven by radiation pressure on dust condensing in the upper atmosphere of the stars.


Stellar winds from main-sequencestars do not strongly influence the evolution of lower mass stars such as the Sun. However, for more massive stars such as O stars, the mass loss can result in a star shedding as much as 50% of its mass whilst on the main sequence: this clearly has a significant impact on the later stages of evolution.
 
  • #17
Drakkith said:
Oh, my mistake. That's not what I meant by a 'side reaction'. Those are the actual steps in the P-P chain. For what you're wanting I don't think they even need to be calculated now that I think about it.
Right. Theres no need to to calculate all that since the output is always the same.

Drakkith said:
It depends on the star and the cycle of its life its in. Space certainly isn't filled with energy unless your just talking about the light output. Most stars have some sort of stellar wind, and high mass/post main sequence stars can eject immense amounts of material: https://en.wikipedia.org/wiki/Stellar_wind
Found a powerpoint explaining all that, but I don't understand half of it, but no worries, I don't need that yet.

Bandersnatch said:
Let us know should you get stuck.
I got stuck just by reading your comment.. I don't even know how to convert between units, I'm an economics student programming a scientific game so excuse me if I don't understand most of the scientific calculationso0).
I found this article on the forum but I don't understand some parts either, I believe that Garth's replay has everything I need but I don't know how to apply my data on it.
 
Last edited:
  • #18
O.k., let me help you along.

One full p-p or CNO chain fuses 4 H nuclei into a He nucleus with the release of 26 MeV (mega electronvolts) of energy.

A star has luminosity L (your input variable). Luminosity uses units of power, so it's energy/second.
To maintain it, N number of fusion chains must be completed per second so that:

##L =N * 26 MeV / 1 sec##

You need to match the units of energy there, so covert whatever you get the luminosity in into MeV (or the other way around). If you get L in Watts, divide it by 1.6*10^-13. If you get L in terms of solar luminosity (L☉), multiply it by 3.85*10^26 to get Watts, then convert to MeV as before.

Taking the Sun as an example, L☉=1

##\frac{1*3.85*10^{26}}{1.6*10^{-13}}=N*26##

##N \approx 9*10^{37}## reactions every second.

Every second 4*N hydrogen atoms turn into N helium atoms.

If you take every star to be born with 75% H and 25% He by mass, the initial number of available atoms of each of the elements is just a function of mass.
You'll then have a function that each second reduces the number of H by 4N and adds 1N of He. You just need to find out how many atoms of H and He are there in the first place:
Take the mass of a star M. If in units of solar mass, convert to grams by multiplying by 2*10^33. In each gram there will be approximately NH atoms of hydrogen:

##N_H / 1 g = 3/4*N_A/A_{rH}##

where NA is the Avogadro's constant and ArH is the atomic weight of hydrogen.
For helium, correspondingly:

##N_{He} / 1 g = 1/4*N_A/A_{rHe}##

Multiply those by the total mass in grams to get the total number of atoms. The atomic weights may just as well be taken to be 1 for H and 4 for He here.

(somebody care to check for cock-ups, be my guest)

You start with those numbers and deduct/add 4N/1N every second.

Notice how both the number of atoms and luminosity are functions of mass, so that in the end that is the sole variable which determines the evolution of composition over time.

Let me know if something's not clear.
 
Last edited:
  • #19
This will take me a while to understand, I'll post back once I test all this.
 
  • #20
Note there was a mistake in the last two equations. Now corrected.

Don't hesitate to ask for clarifications. It's not terribly well presented as it is.
 
  • #21
Forgive me, but I'm not sure what you're trying to do actually matches reality. The only time the content of the core might matter is during the final phases of the stars life when it is ejecting massive amounts of material into space. But that seems like it would involve the elements produced in shell burning, not in the core. If your players are going to be moving between stars to gather materials, it seems more appropriate that the composition of the available material is decided when the star is created. Once the star is post-main sequence and ejecting material, then the composition is a mix of the old material plus the new material. But that new material is going to be solely in the form of gas and ionized particles, unlike the initial composition which forms planets, asteroids, etc.
 
  • Like
Likes e.bar.goum
  • #22
Drakkith said:
Forgive me, but I'm not sure what you're trying to do actually matches reality. The only time the content of the core might matter is during the final phases of the stars life when it is ejecting massive amounts of material into space. But that seems like it would involve the elements produced in shell burning, not in the core. If your players are going to be moving between stars to gather materials, it seems more appropriate that the composition of the available material is decided when the star is created. Once the star is post-main sequence and ejecting material, then the composition is a mix of the old material plus the new material. But that new material is going to be solely in the form of gas and ionized particles, unlike the initial composition which forms planets, asteroids, etc.

Right. And the amount of mixing between the burning core and the envelope of an AGB star (which is where you do get core-photosphere mixing to a decent amount) is an important variable. The elements in the core don't reflect the distribution in the photosphere. See http://www.mso.anu.edu.au/~akarakas/Kodai_Lecture4.pdf .

Any simple calculation like the above isn't going to give you answers that are worth the time. I think the easiest, "least wrong" thing you could do, Ranguna, is just the solar chemical abundance found here http://www.astro.washington.edu/courses/astro557/asplund.pdf as a good average value and just be done with it.
 
  • #23
Drakkith said:
The only time the content of the core might matter is during the final phases of the stars life when it is ejecting massive amounts of material into space.
So a star doesn't eject any mass whilst in the main sequence ?

Drakkith said:
But that seems like it would involve the elements produced in shell burning, not in the core
e.bar.goum said:
The elements in the core don't reflect the distribution in the photosphere
I thought that the Mixing length Model "provided" an explanation as to why core elements could be found in the photosphere, that "bubbles" are formed within the star, these bubbles travel from the core to the outer layer and as a result, the star's outer layer will be composed of some core elements.

Drakkith said:
But that new material is going to be solely in the form of gas and ionized particles, unlike the initial composition which forms planets, asteroids, etc.
I see, well let's assume that all the mass that is ejected from a star can be used for everything, for exemple: if a player harvested helium from a star's surroundings, the player could use it to fill ballons.. Maybe I could implement some kind of "raw helium" which couldn't be used for anything and then the player could do some kind of precess which would transform it into "Usable helium" or just "helium". Maybe even a helium or hydrogen fueld spaceship that fuels itself by extracting hydrogen from stars and then transforms it into fuel, that's be a nice gameplay element, but nevermind that.

e.bar.goum said:
"least wrong" thing you could do, Ranguna, is just the solar chemical abundance found here
I could use that but what happens when a star has not the same mass as the sun ? That paper describes the abundace of chemicals in a sun-like star, not in all kinds of stars.
 
  • #24
Ranguna said:
So a star doesn't eject any mass whilst in the main sequence ?
Only in the form of solar wind. That's a tiny fraction of its mass, and by all counts the space filled with solar wind counts as at least laboratory-grade vacuum.

Ranguna said:
I thought that the Mixing length Model "provided" an explanation as to why core elements could be found in the photosphere, that "bubbles" are formed within the star, these bubbles travel from the core to the outer layer and as a result, the star's outer layer will be composed of some core elements.
The interiors of stars behave very differently depending on a number of factors, most notably mass. There are stars with no convective mixing whatsoever, stars with convective layers and stars with fully convective interiors.
But since the only stars with full convective mixing are on the lowest-mass end of the spectrum (the least massive red dwarfs), they also never leave the main sequence, and never expel their outer layers, nor explode. They just die out quietly.
(at least according to current hypotheses - due to the mixing their life span is way longer than the age of the universe, on the order of trillions of years, so they've never been observed)

In any other star, you should not expect core material being dredged up to the surface.
 
  • #25
Ranguna said:
So a star doesn't eject any mass whilst in the main sequence ?

That depends on the star. Very, very massive stars, near the maximum mass limit, will expel large amounts of their mass (up to several solar masses) in the form of a solar wind over their lifetime. More modest stars like the Sun only expel a very fraction of their mass as a solar wind.
 
  • #26
Bandersnatch said:
Only in the form of solar wind. That's a tiny fraction of its mass
Drakkith said:
That depends on the star
Is there a relation between star mass and solar wind mass ejection ?
The quantity of mass that is ejected throught solar wind depends on the mass, so there might be a relation between the two.

Bandersnatch said:
The interiors of stars behave very differently depending on a number of factors, most notably mass
If it depends on the mass then is there a way to know some kind of "convective factor" or "mixing factor" of a star given it's mass, the higher the mass the more convective the star is and the more elements are present in the outer layer, or maybe it doesn't work this way ?

Bandersnatch said:
NH/1g=3/4∗NA/ArHN_H / 1 g = 3/4*N_A/A_{rH}
Bandersnatch said:
NHe/1g=1/4∗NA/ArHeN_{He} / 1 g = 1/4*N_A/A_{rHe}
What are the 3/4 and 1/4 for ?
 
  • #27
One way you could go instead of trying to calculate all this stuff on the fly for all the stars in your universe, would be to put together a database for the known characteristics and composition of different star types at various stages in their evolution, then populate your universe with stars from the database of various types and stages of development as required.
 
  • #28
There are a lot of types of stars, how do you propose to do this ?
I mean, the characteristics of stars depends on the mass and the mass of stars range from 0.08 to 150+..
 
  • #29
Yes there are a lot of star types so it would need to be quite a big database, but there are generic types such as say a typical yellow dwarf star, all within a definable range of mass, they exist for a predictable amount of time, go through the same stages, and produce similar stuff more or less.
I was just suggesting this as a way to get best use of your processor by not having it repeatedly do essentially the same calculation for similar star types.
 
  • #30
Ranguna said:
There are a lot of types of stars, how do you propose to do this ?
I mean, the characteristics of stars depends on the mass and the mass of stars range from 0.08 to 150+..

Find an 'average' range for a particular type of star and then when you create the star in-game just randomize the properties within this range. You could also weight some of the properties to vary more or less if the mass of the star is more or less than the average within that range.
 
  • #31
Ranguna said:
If it depends on the mass then is there a way to know some kind of "convective factor" or "mixing factor" of a star given it's mass, the higher the mass the more convective the star is and the more elements are present in the outer layer, or maybe it doesn't work this way ?
The point is, the convective layer in all but the least massive stars doesn't extent down towards the core until the star leaves the main sequence. There is no appreciable dredging-up of the fusion products until then. It's also worth noting that the eventually dredged up material is mostly helium and nitrogen. You don't get deep core materials in the ejecta until a supernova.
And the least massive stars with fully convective interiors never fuse anything heavier than helium, nor do they expel their material in any way apart from solar wind - a minuscule effect.

Ranguna said:
What are the 3/4 and 1/4 for ?
The 75 and 25% initial composition. In each gram, 3/4 is made of this and 1/4 of that.I have to say, this whole scooping of elements idea might be a bit of a stretch. Why would players want to fly around through AUs and AUs of space to scoop from around stars heavy elements, that even in a planetary nebula will constitute only a few percent fraction of the few thousand (at best!) atoms per cubic centimetre you can find there, and will not be terribly different from the composition of a regular cloud of gas in the interstellar space?
Why not make use of materials already compacted by gravity into asteroids instead?

Perhaps sticking to 'scooping hydrogen fuel' from stars and gas giants with some thingamajigar like you could in the old Elite games would be enough?
 
Last edited:
  • Like
Likes e.bar.goum
  • #32
rootone said:
Yes there are a lot of star types so it would need to be quite a big database
No that I don't of it, maybe a database isn't even needed, I'll just use average data and then randomize the star's propriaties.. a lot.
rootone said:
I was just suggesting this as a way to get best use of your processor by not having it repeatedly do essentially the same calculation for similar star types.
My game has about 3,489,013,663 but the algorithms will only calculate one star, the star that the player is close to, and so as of yet there is no problem with the processor usage.

Drakkith said:
Find an 'average' range for a particular type of star and then when you create the star in-game just randomize the properties within this range. You could also weight some of the properties to vary more or less if the mass of the star is more or less than the average within that range.
Yeah that's probably what I'm going to do.

Bandersnatch said:
I have to say, this whole scooping of elements idea might be a bit of a stretch. Why would players want to fly around through AUs and AUs of space to scoop from around stars heavy elements, that even in a planetary nebula will constitute only a few percent fraction of the few thousand (at best!) atoms per cubic centimetre you can find there, and will not be terribly different from the composition of a regular cloud of gas in the interstellar space?
Why not make use of materials already compacted by gravity into asteroids instead?
Well the player isn't actualy going to fly around space, he can jump from one star to the other. Hmmm... mining asteroids, that's a good idea.

Bandersnatch said:
The 75 and 25% initial composition. In each gram, 3/4 is made of this and 1/4 of that.
Oh right, right

Bandersnatch said:
Perhaps sticking to 'scooping hydrogen fuel' from stars and gas giants with some thingamajigar like you could in the old Elite games would be enough?
Yeah, that's probably going to be the only use that the star is going to have, that and the ability to heat planets and to destroy them too.Final question, is there a way to know how much a star will grow once it leaves the main sequence ?
 
  • #33
Hey, if you are calculating the star processes in such detail, why not go for broke and try and account for the doppler effect? Like if you land on an asteroid moving fast away from the star, it looks red, if you are on an asteroid heading straight for it, it looks more blue.
 
  • #34
Yes there is, if a star's mass is large enough to start fusing helium nuclei, then it will become a red supergiant, and typically, the larger the mass of a main sequence star, the larger a red supergiant will be. If the star is unable to fuse helium, it becomes a red giant - but with an edge, instead of just continuing to exist in that form (as does a red supergiant) the burning gas on the outside start to drift away - you could make this into a cool effect btw - especially if two red giants are being phased into white dwarfs (the white hot centre left behind after a red giant phase) next to each other, their gravity will pull the gaseous matter into swirls, and the two dying stars will orbit each other, in a dance of death. Poetic. You can of course use computer models and simulations to adjust for exact sizes, and influences (gravitational effects etc.) but you said you just wanted a rough, rule of thumb type idea before.
 
  • #35
I would have asked if you mean by "fusing helium" the process that starts with helium, or ends with it, but you also appear to be confused about the difference between a red giant and a red supergiant, so I'm not sure if it is worth pursuing. We can agree that there are interesting possibilities to pursue in the end stages of the evolution of stars, depending on what kinds of processes the gamers wish to include.
 
Last edited:
<h2>1. What are the main elements a star can produce before dying?</h2><p>A star can produce a wide variety of elements before dying, but the most common ones are hydrogen, helium, carbon, nitrogen, oxygen, and iron. These elements are created through nuclear fusion reactions in the star's core.</p><h2>2. Can a star produce heavier elements before dying?</h2><p>Yes, a star can produce heavier elements such as gold, silver, and uranium before dying. These elements are created through fusion reactions in the later stages of a star's life, when the core is no longer able to sustain nuclear reactions.</p><h2>3. How do stars produce elements?</h2><p>Stars produce elements through nuclear fusion, which is the process of combining lighter elements to form heavier ones. This process occurs in the star's core, where the extreme temperatures and pressures allow for nuclear reactions to take place.</p><h2>4. Are all elements produced by stars?</h2><p>No, not all elements are produced by stars. Elements heavier than iron, such as lead and uranium, are created through processes such as supernova explosions or collisions between neutron stars.</p><h2>5. Can a star produce elements after it dies?</h2><p>Yes, a star can continue to produce elements after it dies. This can happen through processes such as supernova explosions, where the intense energy and pressure can create new elements, or through the fusion of elements in the outer layers of the star as it expands and cools down.</p>

Related to What materials can a star produce before dying?

1. What are the main elements a star can produce before dying?

A star can produce a wide variety of elements before dying, but the most common ones are hydrogen, helium, carbon, nitrogen, oxygen, and iron. These elements are created through nuclear fusion reactions in the star's core.

2. Can a star produce heavier elements before dying?

Yes, a star can produce heavier elements such as gold, silver, and uranium before dying. These elements are created through fusion reactions in the later stages of a star's life, when the core is no longer able to sustain nuclear reactions.

3. How do stars produce elements?

Stars produce elements through nuclear fusion, which is the process of combining lighter elements to form heavier ones. This process occurs in the star's core, where the extreme temperatures and pressures allow for nuclear reactions to take place.

4. Are all elements produced by stars?

No, not all elements are produced by stars. Elements heavier than iron, such as lead and uranium, are created through processes such as supernova explosions or collisions between neutron stars.

5. Can a star produce elements after it dies?

Yes, a star can continue to produce elements after it dies. This can happen through processes such as supernova explosions, where the intense energy and pressure can create new elements, or through the fusion of elements in the outer layers of the star as it expands and cools down.

Similar threads

  • Astronomy and Astrophysics
Replies
10
Views
662
Replies
14
Views
1K
  • Astronomy and Astrophysics
Replies
11
Views
806
  • Astronomy and Astrophysics
Replies
5
Views
2K
  • Astronomy and Astrophysics
Replies
3
Views
1K
Replies
42
Views
3K
  • Astronomy and Astrophysics
Replies
21
Views
1K
  • Astronomy and Astrophysics
Replies
7
Views
2K
Replies
11
Views
2K
Back
Top