View source
From Jason Shankel's Wiki
for
Spore Prototype Gaslight
Jump to:
navigation
,
search
===='''Overview'''==== Gaslight simulates a process known as stochastic, [http://en.wikipedia.org/wiki/SSPSF_model self-propagating star formation], or SSPSF. The SSPSF model suggests that when stars form in nursery nebulae, the solar winds they generate compress the interstellar medium causing nearby regions of the nebula to become more dense, thereby speeding up gravitational collapse and promoting the formation of more stars, which in turn compress the interstellar medium further and promote the formation of more stars. ===Gas Simulation=== Gaslight simulates SSPSF by creating a field of cells each with a mass value, representing the amount of matter in the cell, and a temperature value. To simulate the flow of matter between cells, I apply a pressure differential formula based on the tried-and-true ideal gas law which we all learned in high school chemistry. The formula for the ideal gas law is PV = nRT, where P is pressure, V is volume, n is the number of molecules (proportional to mass), T is temperature and R is a constant. In Gaslight, V is a constant, as each cell is the same size, so we can define R' as R/V and rewrite: P = nR'T. This gives us the net pressure in a cell given mass and temperature. During simulation, each cell's pressure is compared with its neighbors and flow vectors based on the pressure differential are calculated for each neighbor. Mass is moved from one cell to another using these vectors and the temperature of the newly introduced gas is combined with the temperature of its new home cell, and so is heat propagated through the system as well. ===Star Formation=== As the mass value of a cell increases, the probability of generating a star goes up. Stars are represented by free roaming objects running a simplified version of the gravitational simulator developed for [[Spore Prototype Particle Man|Particle Man]]. This gives the stars the opportunity to drift out of their nursery nebulae. Star lifetimes are inversely proportional to mass. Larger stars emit more heat and die younger. The problem with this is that red dwarfs, which are very small, live a long, long time. To prevent the system from becoming filled with red dwarf stars, I added a red dwarf culling feature that limits the population of small stars. When most stars die, they simply blink out. But massive stars go nova, releasing large amounts of energy into the system. -- Return to [[Spore Prototypes]]
Return to
Spore Prototype Gaslight
.
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
NatterCast
IO9 Movie Reviews
IO9 Science Articles
Spore Prototypes
Toolbox
What links here
Related changes
Special pages