Archive for the ‘ Maturarbeit ’ Category

GUI N-Body-Problem

Today I decided to start with the GUI for my N-Body-Problem because in this weeks P2-Task we had to create a GUI too.
Therefore I made a few notes what my GUI should contain.

  • Set for all parameters of all n-bodies (could be a scrollBar because add/delete would change it!)
  • Start
  • Stop
  • New
  • Save & Load (all parameters in a CSV-file, but don’t know imo)
  • Exit
  • add & delete body
  • zoom
  • show vectors
  • help
    • about
    • help
  • panel for the simulation with coords

Btw I think it could be nice to display a body’s name if a user hovers over the representation of this body. But I think this is optional imo.
I already started with coding this GUI and def. keep you up to date.

Maturaarbeit 2.0 Updates

Because I can’t post the entire code of my project (it has grown a lot!) I’m just going to create a little UML-Diagram. In this you are able to see my progress, my current project-class-design and how the classes are associated. To draw this UML-Diagram I’ll use a very nice program, it’s called “dia”. Dia is easy to install on ubuntu, just “sudo apt-get install dia”. For all the other operating system just visit dia for download.

As you can see, there are 3 classes now! I decided to create my own Point.class for all the different operations I’ll need later to calculate the new positions of the bodies. Therefore you can do a lot of things with a point. You can calculate his scalarProduct, his abs, get the same Point normed to length 1 and so on…
To go on with, a body has almost the same parameters as the old body had, but the position and the velocity are points now, because I’m going to solve this problem in 2D & 3D and therefore it is good to have “vectors”.
Finally, there is an Universe.class, this class has all the bodies used for the n-body-problem. It just has a list of all bodies and it is able to add new bodies or select and return all the bodies expect for the one who called!

Next steps to do:

  • make tests for the nextPosition()-method and then create this method correctly
  • make some GUI design by hand
  • decide how to make the GUI (SWT/AWT/GTK/Swing)
  • think about how to “draw” the program in a Panel

So that’s it for today, I’ll keep you up to date and just follow me on Twitter @D3orn for more informations.
Cheers

Maturaarbeit 2.0

This is the first class I added to my Maturaarbeit 2.0, I think it helps quite much to have one Object for all the Bodies. (see my Maturaarbeit 1.0 what I mean, a lot of variables and other things but for every body the same)
I realise how bad my “Maturaarbeit” was back then^^

public class Planet {
private final double gravitationConstant = 6.67428*Math.pow(10, -11); // N(m/kg)²
private double weight;
private double speed;
private double x_Coordinate;
private double y_Coordinate;
public double acceleration(){ return 0; }
public void nextPosition(){}
public void gravitationForce(){}

// Getter
public double getX_Coordinate(){ return x_Coordinate; }
public double getY_Coordinate(){ return y_Coordinate; }
public double getWeight(){ return weight; }
public double getSpeed(){ return speed; }

// Setter
public void setX_Coordinate(){}
public void setY_Coordinate(){}
public void setSpeed(){}
}

I'll keep you up to date, but I'll need a lot of time^^

Redoing “Matura-Arbeit”

I learned so much about OO-Programming at unibe, so I started to think of redoing my “Matura-Arbeit”. From now on, I will post my thoughts here on this blog. So first for a good Project, I have to think about the objects and possible tests. So whats important for the Three-Body-Problem?
- Object: Planet
- Object: Universe to simulate the Three-Body-Problem
- little GUI to control the simulation
- ev. little physic-library
- little research about conservation of energy

so thats it for the moment, no promise I rly have the time and the will to rly do this but I’ll keep you up to date!

27. April 2009 Maturapräsentation

Meine Präsentation meiner Maturarbeit mit dem Thema

“Simulation eines Drei-Körper-Problems anhand eines selbstentwickelten Java-Programms”

findet am 07. Mai 2009 um 18 Uhr 35

im Gymnasium Kirchenfeld im Zimmer 340 statt!

Das vollständige Programm der verschiedenen Präsentationen ist unter folgendem Link nachzusehen: vollständiges Programm

Anschliessend sind alle ab 19 Uhr 30 herzlich zu einem Apéro eingeladen!

03. April 2009 Maturaarbeit!!

Es ist geschaft! Meine Maturaarbeit ist fertig und der Druck-Auftrag ist raus!!

titelblatt

Für alle Interessierten wäre hier alles was sich auch auf der CD befindet! (bis auf die Videos und das Programm, da diese zu gross sind für mein Blog!) Bei interesse für die Videos oder meine Simulation bitte hier schreiben oder eine Mail an: dominique.rahm@hotmail.de

maturarbeit20

maturarbeit20

videobeschreibungen

programmcode

Präsentation: 07.05.2009 ab 1700 im Gymnasium Kirchenfeld (genaues Programm folgt)

02. März 2009 Maturaarbeit News

Hier wären die neusten Versionen meiner Simulation und meiner schriftlichen Arbeit.

maturarbeit

layoutfinal

zentripetalkraft

25. Februar 2009 News!

Gibt mal wieder Neuigkeiten von mir und meiner Maturaarbeit^^

Habe heute ca 3-5h an meiner Arbeit geschrieben. Dabei habe ich noch Datenmaterial gesammelt welches ich dann ausgewertet und mit einem Diagramm dargestellt habe^^ (naia war lustig 32000 Zahlen in eine CalcTabelle zu laden) Weiterhin habe ich heute meine ganze Arbeit ausgedruckt und druchgelesen und selbstverständlich vebessert. Ich nähere mich dem Abgabedatum aber damit auch dem Beenden meiner Arbeit. Es fehlt nicht mehr viel!! Die neuste Version der Arbeit werde ich in nächster Zeit mal wieder hier ins Blog laden, damit ihr interessierten auch mal wieder was zum lesen habt! Wer Fehler findet soll diese bitte an mich weiterleiten.

Donnerstags und Freitags werde ich hoffentlich auch noch Zeit finden weiter zu schreiben, denn es macht mir im Moment sehr viel Spass!

27. Januar 2009 Zeitplan

Nachfolgen wäre die neuste Version meines Zeitplans:

bis 24.02.09 Maturaarbeit fertig schreiben

24.02.09 Abgabe Erstfassung

14.03.09 – 21.03.09 Korrektur durch verschiedene Personen

bis 21.03.09 Überarbeitung des gesamten Programms

21.03.09 – 03.04.09 Korrektur und Überarbeitung der Maturaarbeit

04.04.09 – 01.05.09 Präsentation erstellen

Sobald ich wieder ein bischen mehr an meiner Maturaarbeit gearbeitet habe lade ich natürlich auch wieder eine neue Version auf mein Blog, doch im Moment komm ich nur langsam voran. Aber nächste Woche ist Sportferien da werde ich mich hauptsächlich auf mein letztens Englisch Buch “Schindler’s Ark” und meine Maturaarbeit konzentrieren. Ergebnisse seht ihr dann am 09.02.09

15. Januar 2008 Neue Version

Da ich heute morgen nur 15 Minuten Englisch Buchbesprechung hatte, welche sehr gut lief und die ich eigentlich als sehr einfach empfinde, konnte ich noch gut 1h an meiner Maturaarbeit weiter schreiben.

Hier wäre nun also die neuste Version meiner Arbeit

maturarbeit.odt

maturarbeit.doc