コード例 #1
0
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 
コード例 #2
0
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
コード例 #3
0
ファイル: find_ragone_properties.py プロジェクト: michK/SUAVE
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 
コード例 #4
0
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
コード例 #5
0
def test_initialize_from_energy_and_power(battery, energy, power):
    initialize_from_energy_and_power(battery, energy, power)
    print battery
    return
コード例 #6
0
ファイル: battery.py プロジェクト: michK/SUAVE
def test_initialize_from_energy_and_power(battery,energy,power):
    initialize_from_energy_and_power(battery, energy, power)
    print battery
    return
コード例 #7
0
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