Skip to content
Snippets Groups Projects
Commit 80556a3a authored by Words Hua's avatar Words Hua
Browse files

Add Trajectory Analyzer

parent ac7b6e86
No related branches found
No related tags found
No related merge requests found
File moved
# geometry.py
from constant import M_PER_MM
# Tube geometry
D_WIDE = 24.39 * M_PER_MM # [m] diameter
L_WIDE = 57.952 * M_PER_MM # [m] length
D_GLASS = 18 * M_PER_MM # [m] diameter
L_GLASS = 201 * M_PER_MM # [m] length
D_CELL = 27 * M_PER_MM # [m] diameter
L_CELL = 114 * M_PER_MM # [m] length
......@@ -3,6 +3,7 @@
from simulation import Simulation
import numpy as np
from scipy.optimize import minimize
from geometry import D_WIDE, L_WIDE, D_GLASS, L_GLASS, D_CELL, L_CELL
def objective(params, N, temperature_x, temperature_y):
v0x_center, v0y_center, x_tube_rescale, y_tube_rescale = params
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment