26 lines
544 B
Python
Executable File
26 lines
544 B
Python
Executable File
#!/usr/bin/python
|
|
# -*- coding:utf-8 -*-
|
|
from sys import exit as sysexit
|
|
import numpy as np
|
|
from lib.integrator import frogleap
|
|
|
|
def main():
|
|
#initialisation
|
|
m = np.array([100, 2, 2])
|
|
|
|
x1 = np.array([0, 0, 0])
|
|
x2 = np.array([1, 0, 0])
|
|
x3 = np.array([10, 0, 0])
|
|
q = np.array([x1, x2, x3])
|
|
|
|
v1 = np.array([0, 0, 0])
|
|
v2 = np.array([1, 0, 0])
|
|
v3 = np.array([1, 0, 0])
|
|
p = m*np.array([v1, v2, v3])
|
|
|
|
q, p = frogleap(10, 1, m, q, p, display=True)
|
|
return 0
|
|
|
|
if __name__ == '__main__':
|
|
sysexit(main())
|