Showing posts with label general relativity. Show all posts
Showing posts with label general relativity. Show all posts

Saturday, August 2, 2008

Mathematical Basis of RTC7683

Download RTC7683 here

Problem Description

I had made an attempt to do the math for relativistic rocket in my previous blog post. However it turns out that the calculations in said post turns out to be wrong. I got to know why it is wrong when I looked for information from Yahoo!Answer, Physic Forum and Adam Getchell. I initially planned to used the information for upgrading RTC7681 to RTC7682. It turns out that in the previous post, I ignored conservation of linear momentum and thus the whole mathematic attempt is wrong. I will have to redo the calculation, this time including Conservation of Linear Momentum.

Anyway, this is the problem description :

A Spaceship with empty ress mass of MShip have fuel capacity of MFuel. The Ship's engine is capable of burning some amount of the fuel per unit time ( FBT ), turning them into kinetic energy per mass unit ( EPM ). The Spaceship is assumed to use Photon Drive as suggested in Baez Relativistic Rocket FAQ.

Actually I want to make SRF Exhaust Velocity variable, but it turns out to be more complex than I had initially thought. It is easier to assume that the SRF Exhaust Velocity to be c, as lightspeed is frame invariant. Anyway if anyone who read this post know how, I will be more than thankful if you want to tell me.



Conservation of Mass-Energy and Conservation of Linear Momentum

To calculate anything about rocket, we have to consider both Conservation of Mass-Energy and Conservation of Linear Momentum. Anything else about the rocket can be derived, if we can model how Mass-Energy and Linear Momentum is conserved in our model.




Equation RTC7683-1.Conservation of Mass-Energy



Equation RTC7683-2.Conservation of Linear Momentum


To get rid of EXE ( Exhaust Energy ), we would use equation RTC7683-2 to derive what EXE is equal to.



Equation RTC7683-3.Exhaust Energy Equation



Equation RTC7683-4.Equations derived from both Conservation



Function v(t) and t(v)

To get the IRF Velocity of the ship over time, we have to turn Equation RTC7683-4 into Quadratic Equation over v.




Equation RTC7683-5A.Quadratic Equation on v



Equation RTC7683-5B.The a,b,c part of
Quadratic Equation in Equation RTC7683-5A




Equation RTC7683-5C.Velocity as Function of Time


For the program RTC7683, we are going to need calculating the time required to reach certain velocity in order to calculate the time required for deceleration.



Equation RTC7683-6A.Quadratic Equation on t



Equation RTC7683-6B.The a,b,c part of
Quadratic Equation in Equation RTC7683-6A




Equation RTC7683-6C.Time as Function of Velocity



Coordinate and Proper Acceleration

Coordinate Acceleration is the second derivative of displacement as observed in a reference frame over time.



Equation RTC7683-7.Coordinate Acceleration


Proper Acceleration is the amount of acceleration an accelerometer inside the ship would measure.



Equation RTC7683-8.Proper Acceleration


Download RTC7683 here

Tuesday, May 13, 2008

RTC7681 Graph Plotting


The mathematic detail of calculation provided by RTC7681 is provided here.

This post will focus on what kind of graphs RTC7681 is capable to produce. In short, RTC7681 is a calculator that calculate in detail the value of various variables involved in a relativistic travel. Instead of simply relating the maximum speed to various variables, RTC7681 also take the fact that the mass of fuel used to provide acceleration decrease over time during both acceleration and deceleration phase into consideration. The consideration about fuel mass depletion during both acceleration and deceleration phase is intended to provide more detail about the nature of relativistic travel, since there seems to be statistically significant percentage of people ( including me in the past ), who have wrong impression about the mass dilation as mass increase from nowhere. The mass increase during relativistic travel, actually did not come from nowhere, it come from the potential energy stored initially in the ship as fuel.

The examples of the graph below depicts the change in several variables value during relativistic travel for a spaceship massing 1 metric tons, carrying 10 metric tons of fuel, with engines capable of burning 0.08 kilograms of fuel per second and convert the fuel mass into kinetic energy at 0.1 efficiency ( 8.987551 1015 Joule / kg = 0.1 c2 ).

Changes in Velocity over time

The spaceship's velocity during a relativistic travel is not always constant. During both the acceleration and deceleration phases, the velocity changes as the spaceship accelerate or decelerate. The mass dilation effect increase the total mass, while burning the fuel for acceleration decrease the mass. Since the amount of fuel burned during both acceleration and deceleration phase is assumed to be constant, the change in mass affect the change in the amount of acceleration the engines are capable to provide.


Changes in Velocity over time
( Fuel Burned during Acceleration Phase 50%)


Changes in Velocity over time
( Fuel Burned during Acceleration Phase 76.833%)

 

Changes in Acceleration over time

The amount of fuel burned during both acceleration and deceleration phase are assumed to be constant. However since the total mass of the spaceship changes due to loss of mass by fuel and dilation of mass due to relativistic effect, the spaceship's acceleration provided by the engine do change over time during both acceleration.


Changes in Acceleration over time
( Fuel Burned during Acceleration Phase 50%)


Changes in Acceleration over time
( Fuel Burned during Acceleration Phase 76.833%)

IRF Distance Travelled over time

IRF Distance Travelled, is the distance travelled by the spaceship over time, as observed by an observer in an Inertial Reference Frame (IRF). Said observer in Inertial Reference Frame could be in the origin or in the destination point. The distance travelled by the spaceship is the result of finite integration of its velocity function over time.


Distance Travelled over time
( Fuel Burned during Acceleration Phase 50%)



Distance Travelled over time
( Fuel Burned during Acceleration Phase 76.833%)


IRF Ship's Mass over time

IRF Ship's Mass is the mass of spaceship as observed by an observer in an Inertial Reference Frame (IRF). Said observer in Inertial Reference Frame could be in the origin or in the destination point. Since the velocity of the ship change during both acceleration and deceleration phase, observers in Inertial Reference Frame are going to observe change in the amount of mass dilation during these both phases.


IRF Ship's Mass over time
( Fuel Burned during Acceleration Phase 50%)


IRF Ship's Mass over time
( Fuel Burned during Acceleration Phase 76.833%)


SRF Fuel Mass over time

SRF Fuel Mass is the amount of fuel available in the spaceship over time, as observed by observers inside the Ship's Reference Frame (SRF). Since the amount of fuel burned per unit time is assumed to be constant in this model, we should not expect anything other than two linear graphs with equal gradient, separated by a horizontal line.


SRF Fuel Mass over time
( Fuel Burned during Acceleration Phase 50%)


SRF Fuel Mass over time
( Fuel Burned during Acceleration Phase 76.833%)


IRF Total Mass over time

IRF Total Mass is the mass of the ship added with the mass of fuel still available in the ship, as observed by observers in an Inertial Reference Frame. Said observer in Inertial Reference Frame could be in the origin or in the destination point. Preservation of energy will make it impossible for the spaceship to gain mass without losing its fuel mass.


IRF Total Mass over time
( Fuel Burned during Acceleration Phase 50%)


IRF Total Mass over time
( Fuel Burned during Acceleration Phase 76.833%)


Monday, May 12, 2008

Mathematical Basis of Relativistic Travel Calculator RTC7681

Problem Description




Relativistic Travel Calculator RTC7681 is a software intended to calculate various variables and graph various function over time related to relativistic travel. The variables used in this blog entry are :

- MShip :The rest empty mass of the spaceship intended to be used.
- MFuel :The rest mass of the fuel provided for the spaceship.
- FBT :Amount (mass) of fuel burned per unit time.
- EPM :The amount of energy provided per unit mass of fuel burned.
- DistanceOfDestination :The distance between spaceship's destination and its origin.

The calculation done in RTC7681, assumes that :
- The spaceship travel in linear trajectory.
- The spaceship always use the same engine capacity for both acceleration and deceleration.
- Friction with interstellar medium is ignored.
- The total rest mass of the spaceship is decreasing as the spaceship engine burn the fuel.

Below are the definition of several terms used in this blog entry :

- IRF :Inertial Reference Frame, any IRF values are measured by observers in the origin.
- SRF :Ship's Reference Frame, any IRF values are measured by observers inside the ship.
- Acceleration Time :The time required by the spaceship to accelerate to an intended maximum IRF velocity.
- Acceleration Distance :Distance travelled by the ship during Acceleration Time.
- Deceleration Time :The time required by the spaceship to decelerate to zero IRF velocity.
- Deceleration Distance :Distance travelled by the ship during Deceleration Time.

Function of Velocity, Time, Distance and Acceleration


In order to find the function that relate these variables, we have to remember a concept called energy preservation. To gain kinetic energy, something have to lose its potential energy. The potential energy of the ship is stored as mass of fuel, while the kinetic energy of the ship as a whole depend on the total mass of the ship and fuel, multiplied by the square of its velocity, dilated by the mass dilation caused by relativistic velocity. From the equivalence between ship's potential and kinetic energy, we got we got :


Equation RTC7681-0. Energy Preservation

Equation RTC7681-1. Energy Preservation

To Solve this for v and t, we have to do the following steps :


Equation RTC7681-2. Energy Preservation


Equation RTC7681-3. Energy Preservation


Equation RTC7681-4. Quadratic Equation relative to v


Since equation RTC7681-4 is a Quadratic Equation relative to v, we can use any technique used to solve a Quadratic Equation , to solve it for v. Assuming that v is positive, we got the function of v over t below :



Equation RTC7681-5. Function of velocity over time



function TForm1.CalculateVelo(const EPMA,FBTA,MS,MF,t : double ) : double;
var P1,P2,PL,t2,FBT2,EPM2 : double;
begin
   FBT2:=FBTA*FBTA;
   EPM2:=EPMA*EPMA;
   t2:=t*t;
   PL:=((2*EPMA*FBTA*t*c2*(MF+MS))-(2*FBT2*EPMA*t2*c2)+(FBT2*EPM2*t2));
   P1:=sqrt(abs(PL));
   P2:=c2*(MF+MS)+FBTA*(EPMA-c2)*t;
   CalculateVelo:=P1*c/P2;
end;


Equation RTC7681-5 in Delphi Code

By turning equation RTC7681-4 to it's alternative form below, we can easily see that equation RTC7681-4 is a Quadratic Equation relative to t.


Equation RTC7681-4B. Quadratic Equation relative to t

So assuming that t is positive, we got the function of t over v below :



Equation RTC7681-6. Function of time over velocity



function TForm1.CalculateTime(const EPMA,FBTA,MS,MF,v : double ) : double;
var P1,P2,P3,v2,EPM2 : double;
begin
   v2:=v*v;
   EPM2:=EPMA*EPMA;
   P2:=c2*EPM2*(c2-v2);
   P1:=EPMA*(c2-v2)+v2*c2-sqrt(P2);
   P2:=c2*(MS+MF);
   P3:=((v2*EPM2)+(v2*c2*c2)-(c2*EPM2)+(2*c2*c2*EPMA)-(2*v2*EPMA*c2))*FBT;
   CalculateTime:=P1*P2/P3;
end;



Equation RTC7681-6 in Delphi Code

Acceleration and Deceleration Distance over time can be calculated using numerical integration below of the equation below :



Equation RTC7681-7. Function of Acceleration Distance over Time



function Torm1.CalculateDist(const EPMA,FBTA,MS,MF,t0,t1 : double ) : double;
var Acc,DT,Y0,Y1,lt : double;
    hi : cardinal;
begin
   DT:=(t1-t0)/400;
   lt:=t0;
   Y0:=CalculateVelo(EPMA,FBTA,MS,MF,t0);
   Acc:=0;
   for hi:=1 to 400 do begin
      lt:=lt+DT;
      Y1:=CalculateVelo(EPMA,FBTA,MS,MF,lt);
      Acc:=Acc+0.5*(Y1+Y0);
      Y0:=Y1;
   end;
   Acc:=Acc*DT;
   CalculateDist:=Acc;
end;

Equation RTC7681-7 in Delphi Code

While the amount of acceleration and deceleration over time is the differentiation result of v over t.


Equation RTC7681-8. Function of Acceleration over time

Maximum Amount of Fuel Expended during Acceleration Time


The amount of fuel expended during acceleration time should never exceed a certain value or the ship will not be have enough fuel later during deceleration time. The maximum mass of fuel expendeable during acceleration will be called MPF here on. To find the value of MPF, remember that the proportion between the amount of fuel required to accelerate an object and the mass of the object, is always the same for the same velocity. Which means :




So, if the spaceship is intended to stop in its destination, the amount of fuel expended during acceleration should never be greater than MPF.

Exception in Acceleration Distance


Sometimes after some calculation, amount of fuel required to be expended during both acceleration and deceleration phase are not as great as we first intended them to be. In such situation, the amount of fuel required to be expended must be recalculated. The recalculation will involve solving equation RTC7681-9 for t0 and t1 :



Equation RTC7681-9. Exception Handling Formula

The variables in the equations above are :

- t0 :Length of Acceleration Phase.
- t1 :Length of Deceleration Phase.
- MFuel0:Initial amount of fuel when the spaceship start accelerating.
- MFuel1:Initial amount of fuel when the spaceship start decelerating.

We also have to mind the fact that the Initial amount of fuel when the spaceship start decelerating is equal with the Initial amount of fuel when the spaceship start accelerating subtracted with the amount of fuel burned during Acceleration Phase.

MFuel1 = MFuel0 - FBT t0

Friday, March 21, 2008

What will happen if moon have its own moon ?

There was a question back in Yahoo!Answer, which catch my interest. The question was, what will happen if the Moon have a moon. Actually there can be more than one answer to this question, or may be there are unlimited number of answer to this question, since there are so many possibilities on the mass, the initial position vector and the initial velocity vector of the moon of the Moon.


For the sake of simplicity lets assume, that the name of the moon of Moon is Usagi( うさぎ , means rabbit, refering to old belief that there are rabbits in the moon ), which mass is 2.3221E20 kg, or about 3.88688E-5 Earth Mass. Then we can predict what is going to happen by using NCGS or PPNCGS Gravity Simulator


Stable moon of Moon

For Usagi to orbit Moon in stable orbit, it may not be too far from the Moon, or Earth gravity field is going to disrupt the orbit.




For example, if the distance of Usagi and Moon is about 24544 km, and the orbital velocity of Usagi is 447.559 m/s, the orbit of Usagi around Moon is going to be stable.



Geocentric orbit path



Lunacentric orbit path


Unstable moon of Moon (Newtonian Simulation)

1. Geocentric Trajectory

But if Usagi is too close to Earth, then Moon is not going to have its own moon for a long time, since the orbit of Usagi is not going to be stable.




For example, if the distance of Usagi and Moon is about 64544 km, and the orbital velocity of Usagi is 275.991595 m/s, the orbit of Usagi around Moon is going to be unstable.




Usagi is going to escape it's Lunacentric orbit right away, since earth have higher mass and thus, stronger gravity field. Between time 0 until month 8 day 22, Usagi will orbit Earth twice in not so eccentric orbit, and twice in highly eccentric orbit.




Then between month 8 day 22 to year 1 month 7 day 5, Usagi will orbit Earth several time, inside the Earth-Lunar space, then move to higher orbit, and orbiting earth 5 times.




During the period between year 1 month 7 day 5 to year 2 month 9 day 22, Usagi will continue to orbit earth chaotically, moving between orbits in Earth-Lunar space.




During the period between year 2 month 9 day 22 to year 3 month 5 day 20, Usagi will orbit earth, as high as the Moon itself.


2. Lunacentric Trajectory

In order to gain more understanding about what is happening, we should see it from different point of view, that is why we need to see the orbit of Usagi, from Moon's point of view.




As we could see, Usagi is going to be pulled right away by earth gravity, form its Lunacentric orbit. Notice that the path of Usagi is chaotic since the first time, up to month 2, until it escape to higher orbit, with higher eccentricity.




Since between month 2 and month 8, Usagi didn't orbit Moon anymore, but orbit Earth in highly eccentric orbit, while the Moon continue to orbit Earth as if nothing happened, the path of Usagi relative to Moon, show retrograde motions, just like the path of any bodies relative to other bodies in a celestial sisterhood.




The path of Usagi relative to Moon, during month 8 to month 12, take my interests, since the plot result of Usagi's motion, somehow draw a face in the space between moon and earth. Looks like the face of a cute dog to me.




Between month 12 and year 1 month 11, Usagi orbit earth in relatively stable orbit. In that period, the path of Usagi relative to Moon, show common retrograde motion.






Instability begin to occur in Usagi's path after year 1 month 11. During the period between year 1 month 11 and year 3 month 5, Usagi continue to exhibit chaotic movement, sometimes dangerously close to Moon.


Unstable moon of Moon (Post-Parameterized Newtonian Simulation)

After trying to simulate what is going to happen using NCGS, I am curious abuot what is going to happen if I use my other Gravity Simulator, the PPNCGS which take relativistic effect into account.




Just link the simulation result of NCGS, the PPNCGS simulation result also shows, that Usagi is going to "take off" to higher Geocentric orbit, in month 2.




But the simulation result after that predict different movement of Usagi. PPNCGS simulation result, predicts that Usagi is going to orbit Earth in highly eccentric orbit, for about 5 times, during the period of time between month 2 to year 1 month 3.




Then PPNCGS simulation result, predicts that Usagi is going to orbit Earth in close orbit, during the period of time between year 1 month 3 to year 1 month 7, Moon gravity field, throw Usagi away from its orbit.




Between year 1 month 7 and year 2 month 9, Usagi is going to occupy different orbit, around Earth, changing its path as it encounter Moon in close distance, and being thrown by Moon's gravity field.




After year 2 month 9, Usagi is going to orbit earth in close distance, until the 2.3221E20 kg object finally collide with Earth in year 3 month 3.