Shyan said:
The method is to transform the coordinates in a way that the metric becomes conformally flat in the new coordinates. Then you transform the coordinates somehow that the new coordinates in the flat part of the metric have a finite range. Then you simply draw the flat part of the metric in the new coordinates.
I don't think this is quite right. Conformal flatness is an intrinsic property of a spacetime, so a coordinate transformation doesn't change this property.
Conformal flatness is a hypothesis that must hold for the original spacetime (or it has to be spherically symmetric).
I'm not sure that there is any totally automatic process that works, but if I had to sketch one, it might be something like this:
1. Check that your spacetime has the right properties to make a Penrose diagram possible. This is basically either conformal flatness or rotational symmetry.
2. Reduce the dimensionality to 1+1, e.g., if there's spherical symmetry, reduce every 2-sphere of symmetry to a single point.
3. Try to find a single coordinate patch that covers the whole spacetime. You want this because any Penrose diagram is going to end up on a piece of paper where the paper's (x,y) coordinates cover the whole thing. But I don't think this is always possible, nor is it always trivial if it is possible (e.g., historically, people didn't realize that the event horizon of the Schwarzschild spacetime was really just a coordinate singularity). In some cases this may not be possible, but you may be able to get away with doing something like representing a torus on the paper with dashed lines indicating two lines to be identified.
4. Find a conformal transformation that shrinks your spacetime down so that it fits on the page. A conformal transformation can be represented by a change of metric from the original metric ##g## to an unphysical metric ##\Omega^2 g##, where ##\Omega## depends on the coordinates. Essentially you make ##\Omega## blow up in distant regions so that the unphysical space is finite in size.
5. Adjoin idealized points and surfaces at infinity.