powermodel.cpp

来自「This program proposed improved adaptive 」· C++ 代码 · 共 40 行

CPP
40
字号
// power.cpp: implementation of the power class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "2level.h"
#include "powermodel.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

powermodel::powermodel()
{
	

}

powermodel::~powermodel()
{


}
double powermodel::power(int i, global x)

{
	R=x.R[i];
	double vr=x.vr[i];
	double torque=x.MM[i];
	double power;
	power=(0.2192*10E-3)*(vr/R)*torque/1.34*60*10;  //UNIT:KW;
	return power;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?