While digging through my old junk boxes I came across a little proram I've posted a few times in the past. It's a very simple simulation of how GHG's work and why the number of GHG molecules in the atm doesnt need to be very high to make the effect function -- in much the same way as a couple molecules thick layer of silver on the back of a mirror is enough. The program is a very small 1980s version of C. I've updated the simulation so the actual physical numbers we know from our own atm can be used and shown to make a significant difference to global temperatures. The atosphere is modelled at a square region composed of ~300x300 cells (~100k in all). Photons come in from the top "y=0" and move downward to start with. Since we're not modelling clouds they eventually hit the ground at y=3xx. Visible light doesnt interact significantly with CO2. When they hit the ground they turn from visible light into IR photons and start going up, trying to get away out to space. If on the way up they enter a cell that has a CO2 molecule, they are absorbed for a bit then re-emitted either up or down 50/50. This goes on until the IR photon EVENTUALLY escapes to space. The program fires 1 million photons from the top of the atm down to the ground. It counts how many times a photon either of visible light or IR hits the ground. The number of times is a count of the "radiation" hitting the ground. There is a well-understood simple law that turns EM radiation measurements into temperatures. But we dont care about that here. The prohram models the situation where from 28 to 56 CO2 molecules are in that 100,000 cell space. (28 in 100K cells == 280 ppmv -- pre-industrial CO2 levels on Earth). Only a few are needed to make a substantial difference to how many times a photon hits the ground. It prints out a bunch of numbers to show for each number of CO2 molecules from 28..56 how many times a photon hit the ground. You will see the number generally goes up for each additional CO2 molecule being modeled. With a bit of manipulation you can turn these "hit counts" into a temperature. We already know that "28" should produce a planet at around 300K. You can then, with your physics knowlege, calculate how much "56" makes. It will be much more than Exxon warned about in the 80s because we have only a very simple model here. No day/night. No seasons. No ice, snow, clouds. The Earth in the model is flat, no round. Light just goes up and down and not at angles influenced by latitude. By tinkering -- adding maybe 10 lines of additional code -- you can make it a more realistic model. But the point remains -- a little dab of CO2 will obviously produce greenhouse warming of the magnitude expected in the 1970s and not much different from values produced with hardly any data between 185x and 1900. PROGRAM------------------ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> char co2[316*316]={0}; //100k cells void init(int nco2) { bzero(co2,sizeof(co2)); for(int i=0; i<nco2; i++){ int j=random()%(316*316); co2[j]=1; } } void doit(int nco2) { int hit=0; // fire 100k photons into the top of the atm for(int ph=0; ph<100000; ph++) { init(nco2); //random arrangement of co2 int x=random()%316; //start photon in random pos at top of atm int y=0; int dir=1; //going toward the surface int ir=0; //ir==1->IR photon otherwise vis light while(1) { y+=dir; //photon moves one step if(y<0) break; //bounced back out to space if(y>=316) { //hit the ground ir=1; //becomes IR photon dir= -1; //bounce hit++; //count hits continue; } const int pos=y*316+x; if(ir && co2[pos]) { //randomly up or down dir=1; if(random()%2) dir=-1; } } } printf("%d %g\n",nco2,hit/1e5); } int main() { //280ppmv to 560ppmv puts("nco2 hitratio"); for(int nco2=28;nco2<=2*28;nco2+=1) { doit(nco2); } return 0; } /*** output: nco2 hitratio -- roughly factor to adjust 1850s Earth temp of ~300K 28 1.08839 29 1.0905 30 1.09557 31 1.10015 32 1.09941 33 1.1048 34 1.10658 35 1.11157 36 1.1155 37 1.11727 38 1.12349 39 1.12209 40 1.12843 41 1.12868 42 1.13148 43 1.13582 44 1.14296 45 1.14118 46 1.14377 47 1.14943 48 1.15559 49 1.15564 50 1.1597 51 1.16157 52 1.16129 53 1.16923 54 1.17037 55 1.17448 56 1.17426 ***/