示例#1
0
文件: Model.cpp 项目: hjunqq/FemMain
void Node::SetStrain(FloatArray &NodeStrain)
{
	for (int i = 0; i < NodeStrain.GetSize(); i++)
	{
		Strain.at(i) += NodeStrain.at(i) / Count;
	}
}
示例#2
0
文件: Model.cpp 项目: hjunqq/FemMain
void Node::SetDisplacement(FloatArray &NodeDisplacement)
{
	for (int i = 0; i < NodeDisplacement.GetSize(); i++)
	{
		Displacement.at(i) = NodeDisplacement.at(i);
	}
}
示例#3
0
文件: Model.cpp 项目: hjunqq/FemMain
void Node::SetStress(FloatArray &NodeStress)
{
	for (int i = 0; i < NodeStress.GetSize(); i++)
	{
		Stress.at(i) += NodeStress.at(i) / Count;
	}
}
示例#4
0
文件: Model.cpp 项目: hjunqq/FemMain
// 节点初始化
void Node::Init(int Index, FloatArray & Coordinate)
{
	this->Index = Index;
	int size;
	size = Coordinate.GetSize();
	Coordinates = Coordinate;
}