From 19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 18 Aug 2010 14:38:34 +0000 Subject: Reformatted code and altered the attraction rule to something a bit more correct. Also added two tests to prove it works. --- test2.dat | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 test2.dat (limited to 'test2.dat') diff --git a/test2.dat b/test2.dat new file mode 100644 index 0000000..48b7c27 --- /dev/null +++ b/test2.dat @@ -0,0 +1,53 @@ +# For this test the two objects should orbit around the centre with the same +# acceleration, independent of their mass. +# +camera 0.0, 0.0, -1000.0, 0.0; + +enable solid; +enable lighting; +disable texture; + +collide none; + +const 0.001; + +scale 10; + + +body centre, + 100, + 0,0,0, + 0,0,0, + 1,1,1, + 0; + +light centre,1,1,1; + + +plane xy; + +radial mass1, + 1, + centre, + 300, + 90, + 1, + 1,0,0, + 0; + +radial mass2, + 2, + centre, + 300, + 270, + 1, + 0,1,0, + 0; + +look centre; +look mass1; +look mass2; + +look_at centre; + +particles 0.0001,0.0,1.0; -- cgit v1.2.3