boundarycell.cpp

来自「qrdrls算法」· C++ 代码 · 共 33 行

CPP
33
字号
#include "boundaryCell.h"
#include "math.h"
#include "variable.h"

boundaryCell::boundaryCell()
{
	x=0;
}
void boundaryCell::caculation()
{

	double temp;

	if(Uin==0)
	{
      c=1;
	  s=0;
	  x=x*(sqrt(lamda));
	}
	else
	{
		temp=sqrt(Uin.magnitude2()+lamda*x*x);
		c=x*(sqrt(lamda))/temp; 
		s=Uin/temp;
		x=temp;
	}
}


double boundaryCell::get_x()
{
	return x;
}

⌨️ 快捷键说明

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