当前位置: 首页>>代码示例>>Python>>正文


Python Data.range方法代码示例

本文整理汇总了Python中SUAVE.Structure.Data.range方法的典型用法代码示例。如果您正苦于以下问题:Python Data.range方法的具体用法?Python Data.range怎么用?Python Data.range使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SUAVE.Structure.Data的用法示例。


在下文中一共展示了Data.range方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: evaluate_range_from_short_field

# 需要导入模块: from SUAVE.Structure import Data [as 别名]
# 或者: from SUAVE.Structure.Data import range [as 别名]
def evaluate_range_from_short_field(vehicle,mission,results):

    # unpack
    airport_short_field = mission.airport_short_field
    tofl = airport_short_field.field_lenght
    takeoff_config = vehicle.configs.takeoff

    from SUAVE.Methods.Performance import find_takeoff_weight_given_tofl

    # evaluate maximum allowable takeoff weight from a short field
    tow_short_field = find_takeoff_weight_given_tofl(vehicle,takeoff_config,airport_short_field,tofl)

    # determine maximum range based in tow short_field

    from SUAVE.Methods.Performance import size_mission_range_given_weights
    # unpack
    cruise_segment_tag = 'Cruise'
    mission_payload = vehicle.mass_properties.payload
    # call function
    distance,fuel = size_mission_range_given_weights(vehicle,mission,cruise_segment_tag,mission_payload,tow_short_field)

    # pack
    short_field = Data()
    short_field.tag            = 'short_field'
    short_field.takeoff_weight = tow_short_field
    short_field.range          = distance
    short_field.fuel           = fuel

    results.short_field = short_field

    return results
开发者ID:designToolDeveloper,项目名称:SUAVE,代码行数:33,代码来源:the_aircraft_function_EMBRAER.py

示例2: evaluate_PASS

# 需要导入模块: from SUAVE.Structure import Data [as 别名]
# 或者: from SUAVE.Structure.Data import range [as 别名]
def evaluate_PASS(vehicle,mission):
    """ Compute the Pass Performance Calculations using SU AA 241 course notes 
    """

    # unpack
    maxto = vehicle.Mass.mtow
    mzfw_ratio = vehicle.Mass.fmzfw
    sref = vehicle.Wing['Main Wing'].sref
    sfc_sfcref = vehicle.Turbo_Fan['TheTurboFan'].sfc_TF
    sls_thrust = vehicle.Turbo_Fan['TheTurboFan'].thrust_sls
    eng_type = vehicle.Turbo_Fan['TheTurboFan'].type_engine
    out = Data()

    # Calculate
    fuel_manuever = WeightManeuver(maxto)
    fuel_climb_added = WeightClimbAdded(vehicle,mission,maxto)
    reserve_fuel = FuelReserve(mission,maxto,mzfw_ratio,0)
    out.range,fuel_cruise = CruiseRange(vehicle,mission,maxto,fuel_burn_maneuever,fuel_climb_added,reserve_fuel,sfc_sfcref,sls_thrust,eng_type,mzfw_ratio)
    out.fuel_burn = (2 * fuel_manuever) + fuel_climb_added + fuel_cruise
    out.tofl = TOFL(vehicle,mission,maxto,sref,sfc_sfcref,sls_thrust,eng_type)
    out.climb_grad = ClimbGradient(vehicle,mission,maxto,sfc_sfcref,sls_thrust,eng_type)
    out.lfl = LFL(vehicle,mission,maxto,mzfw_ratio,fuel_burn_maneuever,reserve_fuel,sref,sfc_sfcref,sls_thrust,eng_type)

    return out
开发者ID:thearn,项目名称:SUAVE,代码行数:26,代码来源:evaluate_PASS.py


注:本文中的SUAVE.Structure.Data.range方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。