diff --git a/simulator/.idea/workspace.xml b/simulator/.idea/workspace.xml
index db8a0ba..577f451 100644
--- a/simulator/.idea/workspace.xml
+++ b/simulator/.idea/workspace.xml
@@ -7,11 +7,10 @@
+
-
-
-
+
@@ -23,7 +22,6 @@
-
@@ -33,11 +31,11 @@
-
+
-
-
+
+
@@ -45,11 +43,33 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -87,7 +107,6 @@
-
@@ -103,18 +122,19 @@
-
+
+
-
-
-
-
+
+
+
+
@@ -132,16 +152,7 @@
-
-
-
-
-
-
-
-
-
-
+
@@ -157,6 +168,7 @@
+
@@ -164,6 +176,10 @@
+
+
+
+
@@ -174,6 +190,10 @@
+
+
+
+
@@ -188,6 +208,10 @@
+
+
+
+
@@ -206,12 +230,15 @@
+
+
+
+
-
-
+
@@ -266,7 +293,7 @@
-
+
@@ -276,11 +303,20 @@
-
+
+
+
+
+
+
+
+
+
+
@@ -299,8 +335,17 @@
+
+
+
+
+
+
+
+
+
@@ -355,27 +400,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -450,34 +474,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -488,7 +484,7 @@
-
+
@@ -498,20 +494,11 @@
-
+
-
-
-
-
-
-
-
-
-
@@ -551,18 +538,21 @@
-
-
+
+
+
+
-
+
+
-
+
@@ -570,8 +560,9 @@
-
+
+
@@ -610,7 +601,7 @@
-
+
@@ -620,7 +611,7 @@
-
+
@@ -642,21 +633,21 @@
-
+
-
+
-
+
@@ -666,7 +657,7 @@
-
+
@@ -688,21 +679,21 @@
-
+
-
+
-
+
@@ -712,7 +703,7 @@
-
+
@@ -734,21 +725,21 @@
-
+
-
+
-
+
@@ -758,7 +749,7 @@
-
+
@@ -780,21 +771,21 @@
-
+
-
+
-
+
@@ -817,7 +808,7 @@
-
+
@@ -832,45 +823,36 @@
-
+
-
-
+
-
-
-
-
-
-
-
-
+
-
-
+
-
+
@@ -881,59 +863,39 @@
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -955,7 +917,7 @@
-
+
@@ -963,17 +925,25 @@
-
+
-
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -982,12 +952,22 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/simulator/src/com/verictas/pos/simulator/SimulatorConfig.java b/simulator/src/com/verictas/pos/simulator/SimulatorConfig.java
index d82b87b..363173d 100644
--- a/simulator/src/com/verictas/pos/simulator/SimulatorConfig.java
+++ b/simulator/src/com/verictas/pos/simulator/SimulatorConfig.java
@@ -5,7 +5,7 @@ public class SimulatorConfig {
* Time settings
*/
- public static int rounds = 2147483647; // Amount of rounds to run the simulator for // 3000000 = 250.000 jaar
+ public static int rounds = 530000*2; // Amount of rounds to run the simulator for // 3000000 = 250.000 jaar
public static double time = 60 * 60; // Time steps in seconds // 259200 = 1 month
/**
diff --git a/simulator/src/com/verictas/pos/simulator/Test.java b/simulator/src/com/verictas/pos/simulator/Test.java
new file mode 100644
index 0000000..1802c7d
--- /dev/null
+++ b/simulator/src/com/verictas/pos/simulator/Test.java
@@ -0,0 +1,17 @@
+package com.verictas.pos.simulator;
+
+import com.verictas.pos.simulator.mathUtils.AOP;
+
+import javax.vecmath.Vector3d;
+
+public class Test {
+ public static void main(String[] args) {
+ Vector3d fakePos = new Vector3d(1E20,2E20,3E20);
+ Vector3d fakeSpeed = new Vector3d(4E20,5E20,6E20);
+
+ double aop = AOP.calculate(fakePos, fakeSpeed);
+ System.out.println("END:" + fakePos);
+ System.out.println("END:" + fakeSpeed);
+ System.out.println("END:" + aop);
+ }
+}
diff --git a/simulator/src/com/verictas/pos/simulator/mathUtils/AOP.java b/simulator/src/com/verictas/pos/simulator/mathUtils/AOP.java
index 7fce378..5f3e39d 100644
--- a/simulator/src/com/verictas/pos/simulator/mathUtils/AOP.java
+++ b/simulator/src/com/verictas/pos/simulator/mathUtils/AOP.java
@@ -7,23 +7,31 @@ public class AOP {
Vector3d orbitalMomentum = new Vector3d(0,0,0);
orbitalMomentum.cross(speed, pos);
+ //System.out.println("h = " + orbitalMomentum);
+
// ACCENDING NODE VECTOR
Vector3d ascendingNode = new Vector3d(0,0,0);
ascendingNode.cross(new Vector3d(0,0,1), orbitalMomentum);
+ //System.out.println("n = " + ascendingNode);
+
// ECCENTRICITY VECTOR
- double mu = 1.32712440018E20;
+ // double mu = 1.32712440018E20;
+ double mu = 3.9860044189E14;
Vector3d upCross = new Vector3d(0,0,0);
upCross.cross(speed, orbitalMomentum);
upCross.scale(1/mu);
+ //System.out.println("r* x h * 1/mu = " + upCross);
double posLength = pos.length();
- Vector3d rightPos = pos;
+ Vector3d rightPos = new Vector3d(pos);
rightPos.scale(1/posLength);
+ //System.out.println("r/||r|| = " + rightPos);
Vector3d eccentricity = new Vector3d(0,0,0);
eccentricity.sub(upCross, rightPos);
+ //System.out.println("e = " + eccentricity);
// AOP
double aop;