from dtk import bicycle # local dependencies try: f = open('Whipple.py', 'r') except IOError: from altk import alparse alparse.alparse('Whipple', 'Whipple', code='Python') else: f.close() del f from Whipple import Whipple # create the Whipple model (with my parameters) whip = Whipple() # load the benchmark parameters pathToData='/media/Data/Documents/School/UC Davis/Bicycle Mechanics/BicycleParameters/data/' benchmark = bp.Bicycle('Benchmark', pathToData) benchmarkPar = bp.io.remove_uncertainties(benchmark.parameters['Benchmark']) # convert to my parameter set moorePar = bicycle.benchmark_to_moore(benchmarkPar, oldMassCenter=False) # set the parameters whip.parameters = moorePar # set the initial conditions to match Meijaard2007 speedNaught = 4.6 rollRateNaught = 0.5 pitchAngle = bicycle.pitch_from_roll_and_steer(0., 0., moorePar['rf'], moorePar['rr'], moorePar['d1'], moorePar['d2'], moorePar['d3'])
from dtk import bicycle # local dependencies try: f = open('Whipple.py', 'r') except IOError: from altk import alparse alparse.alparse('Whipple', 'Whipple', code='Python') else: f.close() del f from Whipple import Whipple # create the Whipple model object whip = Whipple() # load the benchmark parameters pathToData='/media/Data/Documents/School/UC Davis/Bicycle Mechanics/BicycleParameters/data/' benchmark = bp.Bicycle('Benchmark', pathToData) benchmarkPar = bp.io.remove_uncertainties(benchmark.parameters['Benchmark']) # convert to my parameter set moorePar = bicycle.benchmark_to_moore(benchmarkPar, oldMassCenter=False) # set the parameters whip.parameters = moorePar whip.constants() # make sure the constants are recalculated with the new parameters # load the input values specified in table one of Basu-Mandal2007 basuInput = bicycle.basu_table_one_input()
from dtk import bicycle # local dependencies try: f = open('Whipple.py', 'r') except IOError: from altk import alparse alparse.alparse('Whipple', 'Whipple', code='Python') else: f.close() del f from Whipple import Whipple # create the Whipple model object whip = Whipple() # load the benchmark parameters pathToData = '/media/Data/Documents/School/UC Davis/Bicycle Mechanics/BicycleParameters/data/' benchmark = bp.Bicycle('Benchmark', pathToData) benchmarkPar = bp.io.remove_uncertainties(benchmark.parameters['Benchmark']) # convert to my parameter set moorePar = bicycle.benchmark_to_moore(benchmarkPar, oldMassCenter=False) # set the parameters whip.parameters = moorePar whip.constants( ) # make sure the constants are recalculated with the new parameters # load the input values specified in table one of Basu-Mandal2007