CalculateRightHandSide

From KratosWiki
Jump to: navigation, search
void LinearElement::CalculateRightHandSide(VectorType& rRightHandSideVector, ProcessInfo& rCurrentProcessInfo)

	{

		//calculation flags

		bool CalculateStiffnessMatrixFlag = false;
		bool CalculateResidualVectorFlag = true;
		MatrixType temp = Matrix();
		CalculateAll(temp, rRightHandSideVector, rCurrentProcessInfo, CalculateStiffnessMatrixFlag,  CalculateResidualVectorFlag);

	}

And the other form available matrix RHS is

 virtual void CalculateRightHandSide(MatrixType& rRightHandSideMatrix, ProcessInfo& rCurrentProcessInfo)
	{
		if(rRightHandSideMatrix.size1()!=0)
			rRightHandSideMatrix.resize(0,0);
	}
Personal tools
Categories