[S0042] 走行モードを定義した効率マップを作成する

効率マップは、回転数とトルクの組み合わせごとに効率を示すことができます。走行モードを与えることで、このマップを用いて時間で変化する運転状態における性能を評価できます。選択または作成した走行モードに基づき、駆動用モータの走行時の効率や損失を評価することが可能です。
このスクリプトでは、効率マップの定義と走行モードを設定します。

前提条件

  • 効率マップ解析スタディが1つ以上作成されていること
    このスクリプト例では、プロジェクトツリー上でアクティブなスタディに対して実行している

スクリプトにおける設定内容

  • インバータ定格の最大電圧、最大電流、電圧制限を設定する
  • トルクとして電磁トルクを指定する
  • モータ制御を最大出力 / 最大効率に指定する
  • モードをモータ+発電と指定する
  • 車両パラメータを設定する
  • 車速の時間変化を点列で設定する
  • 機械損の損失係数、計算点の分割数を設定する
# Copyright (c) 2026 JSOL CORPORATION
#
# 本スクリプトはMITライセンスのもとで公開しています。
# ライセンス全文は以下を参照してください。
# https://www.jmag-international.com/jp/scriptlibrary/jmag_script_library_mit/

app = designer.GetApplication()

def createEfficiencyMap(study, effMapName, pointArray):
    """走行モード:車速の効率マップ定義オブジェクトの作成"""
    effMap = study.CreateEfficiencyMapDefinition(effMapName)
    effMap.SetMaxVoltage(600)
    effMap.SetMaxCurrent(250)
    effMap.SetVoltageLimitType(u"fundamental")
    effMap.SetTorqueType(u"electromagnetic")
    effMap.SetMotorMode(u"generation")
    effMap.SetClusterPoints(6)
    effMap.SetDriveCycleUseVehicleParameters(True)
    effMap.SetDriveCycleTireDiameter(700)
    effMap.SetDriveCycleGearRatio(5)
    effMap.SetDriveCycleAirDensity(1.3)
    effMap.SetDriveCycleDragCoefficient(0.5)
    effMap.SetDriveCycleCrossSectionalArea(3.2)
    effMap.SetDriveCycleRollingResistance(0.001)
    effMap.SetDriveCycleTotalWeight(1800)
    effMap.SetDriveCycleGravity(9.9)
    effMap.SetDriveCycleUseVehicleSpeedTable(True)
    effMap.SetDriveCycleVehicleSpeedTable(pointArray)
    effMap.SetMechancialLossFactor(20)
    effMap.SetYAxisDivisions(40)

def getDriveCycleVehicleSpeedTableArray():
    """車速の点列データ(2次元配列)取得"""
    pointArray = [[0 for i in range(2)] for j in range(5)]
    pointArray[0][0] = 0
    pointArray[0][1] = 0
    pointArray[1][0] = 10
    pointArray[1][1] = 20
    pointArray[2][0] = 20
    pointArray[2][1] = 50
    pointArray[3][0] = 30
    pointArray[3][1] = 30
    pointArray[4][0] = 40
    pointArray[4][1] = 20
    return pointArray

study = app.GetCurrentStudy()
effMapName = u"EM3-1"
pointArray = getDriveCycleVehicleSpeedTableArray()
createEfficiencyMap(study, effMapName, pointArray)

Download Python source code

ファイルご利用の注意点
JMAGスクリプトライブラリをご利用されるに際し、以下をよくお読みいただき、ご同意の上ご利用くださるようお願い申し上げます。
絞込み検索
  • カテゴリー 一覧

JMAG-Express Online
An engineer's diary