72 lines
1.6 KiB
C++
72 lines
1.6 KiB
C++
// MediumR.cpp: implementation of the CMediumR class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "geomative.h"
|
|
#include "MediumR.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
CMediumR::CMediumR(int iAR): CMedium(iAR)
|
|
{
|
|
|
|
}
|
|
|
|
CMediumR::~CMediumR()
|
|
{
|
|
|
|
}
|
|
|
|
bool CMediumR::GenerateSptRecElecVal(int iEAmount, //电极总数---in
|
|
int* pMaxLevel, //最大层---out
|
|
int* pPtAmount, //测点总数---out
|
|
CPtrArray* pSptRecArray //脚本记录集---out
|
|
) //函数功能:生成脚本电极记录集合
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void CMediumR::CalculateSptPtLoc(int iMul, //倍数---in
|
|
CSptRecord* pSptRecord //脚本记录指针---out
|
|
) //函数功能:计算脚本测点位置
|
|
{
|
|
return;
|
|
}
|
|
|
|
int CMediumR::GenSptRecLevel(int iA, int iB, int iM, int iN)
|
|
{
|
|
return (int)VAL_ZERO;
|
|
}
|
|
|
|
int CMediumR::GenSptRecPosInLevel(int iA, int iB, int iM, int iN)
|
|
{
|
|
return (int)VAL_ZERO;
|
|
}
|
|
|
|
int CMediumR::GetMaxLevelByEAmount(int iEAmount)
|
|
{
|
|
return (int)VAL_ZERO;
|
|
}
|
|
|
|
float CMediumR::CalculateDepth(float fA, float fFactor)
|
|
{
|
|
// return (float)(fabs(fA)*fFactor);
|
|
return (float)((fabs(fA)/0.5)*fFactor);
|
|
}
|
|
|
|
float CMediumR::CalculateCESptKVal(float fA, float fB, float fX, float fY)
|
|
{
|
|
float fK = (float)VAL_ZERO;
|
|
fK = (float)(VAL_PI * fB * ((fB * fB) /(fA * fA) - 1));
|
|
|
|
return fabs(fK);
|
|
}
|