def find_ragone_properties(specific_energy, battery, energy, power): '''determines mass, from a ragone curve correlation''' find_specific_power(battery, specific_energy) initialize_from_energy_and_power(battery, energy, power) #used for a simple optimization return battery.mass_properties.mass
def find_ragone_properties( specific_energy, battery, energy, power ): #modifies battery based on ragone plot characteristics of battery find_specific_power(battery, specific_energy) initialize_from_energy_and_power(battery, energy, power) return battery.mass_properties.mass #used for a simple optimization
def find_ragone_properties(specific_energy, battery, energy, power): """determines mass of a battery based on the specific energy, energy required, and power required, works by calling find_specific_power and initialize_from_energy_and_power Assumptions: None Inputs: energy [J] power [W] battery. battery. type specific_energy [J/kg] specific_power [W/kg] ragone. constant_1 [W/kg] constant_2 [J/kg] upper_bound [J/kg] lower_bound [J/kg] Outputs: battery. max_energy [J] max_power [W] specific_energy [J/kg] specific_power [W/kg] mass_properties. mass [kg] """ find_specific_power(battery, specific_energy) initialize_from_energy_and_power(battery, energy, power) #can used for a simple optimization return battery.mass_properties.mass
def test_initialize_from_energy_and_power(battery, energy, power): initialize_from_energy_and_power(battery, energy, power) print battery return
def test_initialize_from_energy_and_power(battery,energy,power): initialize_from_energy_and_power(battery, energy, power) print battery return
def find_ragone_properties(specific_energy, battery, energy, power): #modifies battery based on ragone plot characteristics of battery find_specific_power(battery, specific_energy) initialize_from_energy_and_power(battery, energy, power) return battery.mass_properties.mass #used for a simple optimization