18 January 2013

Science in the most common words

My friend Dave linked me to this text editor which restricts you to the 1000 most commonly used words in the English language, as inspired by Randall Munroe's Up Goer Five. I wrote up a summary of my research:

There are some tiny but heavy stars that are left over after normal stars die. Imagine our whole sun---hundreds of hundreds of our worlds---forced down to fit inside a city. We don't know exactly what's inside the tiny stars because the stuff there is pretty weird, but we have some ideas. 

Sometimes two of these tiny stars go around each other, like our world goes around the sun. When they go around really fast and close together they make waves in space and time that we try to see from our world. As the waves go out the stars move closer and closer together until they hit each other. 

The stuff inside the stars gets moved around when they're close together, so different kinds of stuff make different waves. Also, when they hit each other, sometimes they make a new star and sometimes they fall in to nothing (falling into nothing is another cool story). If we see these waves, the way they look at the end will tell us something about the weird stuff inside these tiny stars.

29 August 2012

Gravitational-wave emission and shifts in time


There's some recent buzz about a new indirect measurement of gravitational waves in Rapid Orbital Decay in the 12.75-minute WD+WD Binary J0651+2844. It presents a measurement the period decrease in a binary system of two white dwarfs which orbit each other every 13 minutes:

Summary figure from phys.org: on the top is the accumulated shift in eclipse time, and on the bottom are some light curves of eclipse measurements.

The shifting eclipse time agrees with the general-relativistic prediction, where gravitational waves carry away some of the energy and the two stars slowly fall together as they orbit.

In the comments on the associated Phys.org news post there was some confusion on how exactly the six second time shift over 380 days translated into the two objects merging in two million years. And I have seen (and experienced) similar confusions when looking at the canonical Hulse-Taylor plots for example the one on the Cardiff Gravitational Physics Tutorial on the Hulse-Taylor pulsar , which show cumulative shift in the periastron time of the orbits:
Figure (from Weisberg and Taylor (2004) via the Cardiff site) showing the accumulating shift in periastron time over years of measurements. 

This plot is often presented as showing "decrease in the period due to gravitational-wave emission." But the period decrease is approximately constant over the times considered in both these systems, and then seeing plots of the quadratic accumulation of time shifts can be confusing. So here's how that works (also worked out in Kepler et all 1991 as cited in the WD+WD paper):

If we want to estimate the time taken by some number of orbits $n$, if the time per orbit is a slowly varying function, we can approximate by Taylor expanding:

$$ t_n = t_0 + \frac{dt}{dn} (n- n_0) + \frac{1}{2} \frac{d^2t}{dn^2} (n - n_0)^2 +... $$

The period $P$ of the orbit is then $\frac{dt}{dn}$ in this notation, and

$$ \begin{aligned}
\frac{d^2t}{dn^2} &= \frac{d}{dn}\left( \frac{dt}{dn} \right) \\
&= \frac{dt}{dn} \frac{d}{dt} \left(\frac{dt}{dn}\right) \\
&= P \dot{P}
\end{aligned} $$

where $\dot{P} = dP/dt$ and we throw infinitesimals around like physicists. This means that we have after $n$ orbits:

$$ t_n = t_0 + P (n- n_0) + \frac{1}{2} P \dot{P} (n - n_0)^2 $$

compared to the constant period estimate,

$$ t_n^{\text{no-GW}} = t_0 + P (n- n_0) $$

so the accumulated time shift $T$ over $N$ orbits is quadratic in $N$:
$$ T = \frac{1}{2} P \dot{P} N^2 $$

In the case of the WD-WD system, we have $T \simeq - 6$ seconds, $ P \simeq 13$ minutes, and

$$ N  \simeq \frac{380 \text{ days}}{13 \text{ minutes} / \text{ orbit}} = 42000 \text{ orbits} $$

therefore

$$\begin{aligned}
\dot{P} &= \frac{2 T}{P} \frac{1}{N^2} = \frac{ 2 T} { (P N) N }\\
&\simeq 2 (- 6 \text{ seconds}) / (380 \text{ days}) / (42000 \text{ orbits}) \\
&= - 8.7 \times 10^{-12} \text{ s / s} = - 0.27 \text{ ms / year} \\
\end{aligned}$$

with some Google unit conversions, which is almost the same as the result in the paper abstract. If we just keep extrapolating this with a constant $\dot{P}$, we will have a period of $0$ minutes in

$$\frac{0 - 13 \text{ minutes} }{- 0.27 \text{ ms / year}} = 3 \text{ million years} $$

which is pretty soon, astronomically speaking.

This white dwarf system would be a powerful "verification binary," detectable in a future space-based gravitational-wave telescope like LISA or eLISA; Antoine Petiteau on the LISA Facebook group estimated signal-to-noise ratios of 40-70 in LISA and 20 in eLISA based on their current designs. The frequency is too low for the ground-based detectors to see, since Earth's seismic noise and gravity-gradient noise get in the way.

22 August 2012

New Blogger: Starting Teaching

So, I've recently started a new faculty position and I'd like to get back into some sort of blogging. Enter the New Math Blogger Initiative! Now, I'm not exactly a math blogger, but I think teaching physics will have similar features - especially after my conversation with some of the new math faculty at my institution.

I'm going to shortly answer two of the blog prompts this week:


Where does the name of your blog originate? Why did you choose that? (Bonus follow up: Why did you decide to blog?)

My blog address I addressed in one of my first posts: Making Science, along with some thoughts about why I originally started blogging. The title of my blog, "I will do science to it," was inspired by the webcomic Dresden Codak - specifically the one that inspired this shirt - so I should credit that! The webcomic is full of neat science fiction, a bit of philosophy, and other such delights, and I occasionally identify with the protagonist despite a much more normal and stable upbringing.

If you are a new teacher, what are two specific things you plan on doing this year?

The course I will teach this year is Introduction to Astronomy, and I am incredibly lucky in being able to build off and alongside an experienced faculty member who is teaching the course again this semester and sharing notes. This means I get to incorporate all sorts of things like pre/post conceptual tests to measure the course impact on student learning, lecture tutorials, paper clickers, without the overhead of developing the material for the course myself. My goal, though, is to make it my own. To make this specific for myself, I'll break it in to two goals. 

First, I want to be able to clearly justify each form of class activity and explain to students how we know it will help them learn, especially for the activities that will take extra effort on their part.  I'm reading a great book on Learner-Centered Astronomy Teaching, Strategies for Astro 101, which has tons of explanations of this sort of thing.

Second, I want to actually walk the walk about learning goals that are required by the university policies. Also spurred by the book mentioned above, this is a general pattern I'm trying to implement: In both reasearch and teaching, I'm trying to take things that might be considered "overhead" (e.g. grant-writing in research) seriously as an opportunity to improve my understanding of the work and build long-term effective project management. So I want to link activities to learning goals, with serious reflection rather than a vague "close enough" (which, I have already found, is tempting). This may be over-ambitious for my first semester teaching. So let me consider this successful if I make a link for at least one thing each class.

04 January 2011

It works! IT WORKS!!

Here is a pdf of an eighth
import processing.pdf.*;

int segments = 8;
int radii = 20;
float radiispacing = 20;

float horizon = 80;

float horizondistance(float rf) {
return sqrt(rf*(rf - horizon)) 
    + 0.5* horizon * log(rf) - 0.5 * horizon * log(horizon) 
    + horizon * log(1 + sqrt(1 - horizon/rf));
}
float sqrt_grr(float rf){
  return 1.0 / sqrt(1 - horizon/rf);
}



void setup()
{ 
  size(400,600,PDF, "filename.pdf");
//  size(400,600);
  background(255);
  
}
  
void draw(){
  translate(width/2,height-radiispacing);
  noFill();  
  line(-PI/segments*horizon,0,PI/segments*horizon,0);
  for(float radius = horizon + radiispacing;
            radius < horizon + radii*radiispacing; 
            radius += radiispacing) {
    println(radius + " " + horizondistance(radius) + " " + radius*sqrt_grr(radius));
    ellipseMode(RADIUS);
    //ellipse(0,radius*sqrt_grr(radius)-horizondistance(radius),2,2);
    //ellipse(0,
    //    radius*sqrt_grr(radius)-horizondistance(radius),
    //    radius*sqrt_grr(radius),
    //    radius*sqrt_grr(radius));
    arc(0,
        radius*sqrt_grr(radius)-horizondistance(radius),
        radius*sqrt_grr(radius),
        radius*sqrt_grr(radius),
        -PI/2.0-PI/segments/sqrt_grr(radius),
        -PI/2.0+PI/segments/sqrt_grr(radius)
        );
   }
  exit();
}

03 January 2011

Making better science

Three quotes from an article html-titled "The Decline Effect and the Scientific Method": The Truth Wears Off in the New Yorker. In light of my musings last night, a few quotes stood out particularly:

1.

The situation is even worse when a subject is fashionable. In recent years, for instance, there have been hundreds of studies on the various genes that control the differences in disease risk between men and women. [...] But the most troubling fact emerged when he looked at the test of replication: out of four hundred and thirty-two claims, only a single one was consistently replicable.
2.
He notes that nobody even tries to replicate most science papers—there are simply too many. (According to Nature, a third of all studies never even get cited, let alone repeated.)
3.
In a forthcoming paper, Schooler recommends the establishment of an open-source database, in which researchers are required to outline their planned investigations and document all their results. “I think this would provide a huge increase in access to scientific work and give us a much better way to judge the quality of an experiment,” Schooler says. “It would help us finally deal with all these issues that the decline effect is exposing.”
4.
The disturbing implication of the Crabbe study is that a lot of extraordinary scientific data are nothing but noise. [...] The problem, of course, is that such dramatic findings are also the most likely to get published in prestigious journals, since the data are both statistically significant and entirely unexpected. Grants get written, follow-up studies are conducted. The end result is a scientific accident that can take years to unravel.

Peer review is obsolete

In a provocative mood of evening musings:

I don't think peer review is working particularly well for showcasing the best work in higher-ranking journals. I suspect there are common flaws in duplications of work, overstatements, etc. A small number of overworked reviewers with little immediate feedback will inevitably let things slip through - especially for more interdisciplinary papers, which have a broader range of things that might go wrong outside the reviewers' specialties.

Having a reviewer check work is terrible efficiency, now that typesetting programs allow for more intermediate steps to be easily incorporated, print page limitations are no longer an issue, and the background code can be bundled along with things. And papers should be "living" - corrected and updated continuously, rather than just in one early cut.

What do we need? Central storage repositories for projects that can be trusted to be long term resources as academics migrate from post to post or leave for different fields entirely. Filtering based on citations and references - what is actually used? The ability for social network style "liking" of papers if they explain things cleanly.

Go deeper - can we have people sign their names to checking a particular derivation, reproducing a result? Then there is public attribution of those who have checked things carefully and staked their names on it. "Liked" "Used" and "Reproduced" can all be done based on interest. Good work should rise by all three attributes.

Still useful are editors (professional as well as impromptu) to collect sets of "most interesting" papers in particular subjects and curate histories of topics. Most interesting are not necessarily the most recently created - new shifts in subject matter can bring renewed interest to decades-old work.

01 January 2011

Papercraft spacetime: An equatorial slice through Schwarzschild

Take a sheet of paper and ignore it's thickness. Welcome to a slice of flat spacetime! It's even persisting through time, so we have three of the dimensions in the paper. We've only ignored one.

Now think about a equatorial slice through Schwarzschild. There's curvature: the usual coordinates use a circumferential radius coordinate, so r is the distance around a circle at that point divided by 2π. On the flat paper, if we draw a bunch of concentric circles around a point, each one has a distance r to the centre and a circumference 2πr. And then the distance between a circle at r1 and a circle at r2 is r1-r2. But in Schwarzschild it's different: the distance between two circles is

which is longer than r1-r2, by a little bit far away from the center, increasing toward the horizon.

So let's make a slice of schwarzschild out of paper!

Version 1: This is not perfect, but I thought that the programming environment Processing would be good for this and some other little ideas I have.

I figured that I would divide the spacetime slice around the centre like a pie and figure out the shape of each chunk, then tape them together. So the first step was to figure out how I might draw a slice in flat spacetime:

void setup()
{
  size(400,400);
  background(255);
  smooth();

  int segments = 16;
  int radii = 10;
  int centrex = 200;
  int centrey = 350;
  float spacing =30;
  stroke(128);
  for(int  i= radii; i>0; i--){
    arc(centrex,centrey,2 * spacing *i,2* spacing*i,-PI/2 - PI/segments,-PI/2+ PI/segments);
    line(centrex-spacing*(i-1)*sin(PI/segments),
    centrey-spacing*(i-1)*cos(PI/segments),
    centrex-spacing*i*sin(PI/segments),
    centrey-spacing*i*cos(PI/segments));
    line(centrex+spacing*(i-1)*sin(PI/segments),
    centrey-spacing*(i-1)*cos(PI/segments),
    centrex+spacing*i*sin(PI/segments),
    centrey-spacing*i*cos(PI/segments));
  }
}
And then, keep the arcs to make the same circumference of circle, but add extra linear spacing so that they follow the Schwarzschild relationship (note: math needs to be double checked)
void setup()
{
  size(400,800);
  background(255);
  smooth();

  int segments = 8;
  int radii = 20;
  int centrex = 200;
  int centrey = 700;
  float basespacing =20;
  float horizon = 80;
  stroke(128);
  float oldx = centrex-(horizon+ radii * basespacing) * sin(PI/segments);
  float oldy = centrey-(horizon+ radii * basespacing)*(cos(PI/segments));
  for(float  radius = horizon + radii*basespacing; radius >= horizon; radius = radius - basespacing){
    // The spacing is modified to shift circumference 
    // circles up so they are the appropriate distance from the horizon
    float horizondist = sqrt( radius * (radius - horizon) )- 0.5*horizon*log(horizon/radius) 
        + horizon * log(1 + sqrt(1-horizon/radius));
    println(radius + " "+(radius-horizon) + " "+(horizondist));
    arc(centrex,centrey-horizondist+radius,2 *radius,2*radius,-PI/2 - PI/segments,-PI/2+ PI/segments);
    float newx = centrex - radius * sin(PI/segments);
    float newy = centrey-horizondist+radius - radius * cos(PI/segments);
    line(oldx,oldy,newx,newy);
    line(-oldx+2 *centrex,oldy,-newx+2*centrex,newy);
    oldx = newx;
    oldy = newy;
  }
}
But this isn't quite right, because the lowest arc, which is the horizon, at which point the proper distance between two radial coordinates blows up - doesn't need to be an arc. The paper will be curved down into a funnel shape here, and a flat bottom of the paper will curve around with all the pieces stuck together. So some of the arc-ness is coming from the change in angle of the sides in the curved space time, and I need to take that into account.