Beispiel #1
0
def set_sim_parameters():
    sim_params = Parameters()
    sim_params.t0 = 0
    sim_params.tf = 10
    sim_params.dt = 0.04
    sim_params.x0 = [0, 0, 0]
    return sim_params
Beispiel #2
0
def get_traj_parameters():
    sim_params = get_sim_parameters()

    traj_params = Parameters()
    traj_params.t0 = sim_params.t0 + 1
    traj_params.tf = sim_params.tf - 1

    # boundary conditions for y1
    traj_params.Y1A = np.array([sim_params.x0[0], 0])
    traj_params.Y1B = np.array([sim_params.xf[0], 0])

    # boundary conditions for y2
    traj_params.Y2A = np.array([sim_params.x0[1], tan(sim_params.x0[2]), 0])
    traj_params.Y2B = np.array([sim_params.xf[1], tan(sim_params.xf[2]), 0])

    return traj_params